Migrating to ASP.NET 2.0

  • Thread starter Thread starter shuhed.khan
  • Start date Start date
S

shuhed.khan

Having problem running web application when setting it to run from
Visual Studio Development Server. I get CustomPrinciple error. I would
appreciate if anyone encounter this problem can kindly share me their
views and any solutions.

Shuhed
 
Hi Mark,

Here is the error i get:

Type is not resolved for member
'IDPMWeb.Components.Security.CustomPrincipal,IDPMWeb,
Version=1.8.4.31280, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Runtime.Serialization.SerializationException:
Type is not resolved for member
'IDPMWeb.Components.Security.CustomPrincipal,IDPMWeb,
Version=1.8.4.31280, Culture=neutral, PublicKeyToken=null'.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.


Stack Trace:


[SerializationException: Type is not resolved for member
'IDPMWeb.Components.Security.CustomPrincipal,IDPMWeb,
Version=1.8.4.31280, Culture=neutral, PublicKeyToken=null'.]
Microsoft.VisualStudio.WebHost.Connection.ReadRequestBytes(Int32
maxBytes) +0
Microsoft.VisualStudio.WebHost.Request.ReadEntityBody(Byte[] buffer,
Int32 size) +73
System.Web.HttpRequest.GetEntireRawContent() +560
System.Web.HttpRequest.GetMultipartContent() +56
System.Web.HttpRequest.FillInFormCollection() +264
System.Web.HttpRequest.get_Form() +65
System.Web.HttpRequest.get_HasForm() +57
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean
dontReturnNull) +2025201
System.Web.UI.Page.DeterminePostBackMode() +60
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+133


I would really appreciate if you can help me with this.
 
Here is the error i get:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
I would really appreciate if you can help me with this.

Firstly, you need to use exception handling in your code i.e. try...catch

Then, step through the code in debug mode until you find the line which
throws the exception - then you'll know what the problem is...
 
Back
Top