Merge pull request #1179 from ludovic-henry/pr25-threadpool
[mono.git] / mcs / class / System.Web / System.Web.Security / MembershipPasswordException.cs
index 767a46a9594807674bff72de79695eba26adacee..69c3315d0e76014bd86a9f3866dd5c666a5a41ae 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-namespace System.Web.Security {
-       public class MembershipPasswordException : HttpException {
+using System;
+using System.Runtime.Serialization;
+using System.Runtime.CompilerServices;
+
+namespace System.Web.Security
+{
+#if NET_4_0
+       [TypeForwardedFrom ("System.Web, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+#endif
+       [Serializable]
+       public class MembershipPasswordException : Exception
+       {
                public MembershipPasswordException () : base () {}
                public MembershipPasswordException (string message) : base (message) {}
                public MembershipPasswordException (string message, Exception innerException) : base (message, innerException) {}
+               
+               protected MembershipPasswordException (SerializationInfo info, StreamingContext context): base (info, context)
+               {
+               }
        }
 }
-#endif
+