Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ASP.NET Development Server Not Loading Locally Referenced Assembly
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mct  
View profile  
 More options Nov 29 2005, 10:38 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: mct <m...@discussions.microsoft.com>
Date: Tue, 29 Nov 2005 07:38:15 -0800
Local: Tues, Nov 29 2005 10:38 am
Subject: ASP.NET Development Server Not Loading Locally Referenced Assembly
Environment
---------------
Visual Studio 2005
.NET 2.0
Windows XP SP2

Scenario
----------
TCLibrary (Class Library)
•     Contains MyIdentity and MyPrincipal classes that implement the IIdentity
and IPrincipal interfaces respectively.

TCWebFile (File-system web site)
•     The TCLibrary.dll assembly is referenced using a local reference (.refresh
file in the bin folder.)
•     The site is using forms authentication.
•     The Application_AuthenticateRequest method in the Global.ascx sets the
current HttpContext.User property equal to a new instance of the MyPrincipal
class.

Problem
----------
The following SerializationException is thrown while processing the initial
request.

Server Error in '/TCWebFile' Application.
--------------------------------------------------------------------------- -----
Type is not resolved for member 'TCLibrary.MyPrincipal,TCLibrary,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=8bf75122f18cbc44'.
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 'TCLibrary.MyPrincipal,TCLibrary, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=8bf75122f18cbc44'.

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
'TCLibrary.MyPrincipal,TCLibrary, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=8bf75122f18cbc44'.]
   Microsoft.VisualStudio.WebHost.Connection.get_RemoteIP() +0
   Microsoft.VisualStudio.WebHost.Request.GetRemoteAddress() +58
   System.Web.HttpRequest.get_UserHostAddress() +31
   System.Web.HttpRequest.get_IsLocal() +29

System.Web.Configuration.CustomErrorsSection.CustomErrorsEnabled(HttpReques t
request) +132
   System.Web.HttpContext.get_IsCustomErrorEnabled() +40
   System.Web.Configuration.UrlAuthFailedErrorFormatter.GetErrorText() +39
   System.Web.Security.UrlAuthorizationModule.WriteErrorMessage(HttpContext
context) +39
   System.Web.Security.UrlAuthorizationModule.OnEnter(Object source,
EventArgs eventArgs) +332

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep .Execute() +167
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +117

--------------------------------------------------------------------------- -----
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42

Analysis
----------
•     The executing AppDomain where the exception is thrown is unable to resolve
the TCLibrary.MyPrincipal type.
•     The TCLibrary is loaded in the AppDomain where the
Application_AuthenticateRequest is invoked.
•     Using a GAC reference to the TCLibrary assembly solves the problem.
•     The problem does not occur when the application is hosted by a local IIS
web site.

Test Case Files
------------------
http://www.easy-sharing.com/127540/TestCase.zip.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lorenc  
View profile  
 More options Dec 27 2005, 9:52 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Lorenc <Lor...@discussions.microsoft.com>
Date: Tue, 27 Dec 2005 06:52:02 -0800
Local: Tues, Dec 27 2005 9:52 am
Subject: RE: ASP.NET Development Server Not Loading Locally Referenced Assembly
Did you get an answer on this problem? I have a similar case.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "ASP.NET Development Server Not Loading Locally Referenced Asse" by mct
mct  
View profile  
 More options Dec 27 2005, 9:57 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: mct <m...@noemail.noemail>
Date: Tue, 27 Dec 2005 06:57:01 -0800
Local: Tues, Dec 27 2005 9:57 am
Subject: RE: ASP.NET Development Server Not Loading Locally Referenced Asse
No answer yet.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken  
View profile  
 More options Jan 9 2006, 3:02 pm
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Ken <k...@newsgroups.nospam>
Date: Mon, 9 Jan 2006 12:02:04 -0800
Local: Mon, Jan 9 2006 3:02 pm
Subject: RE: ASP.NET Development Server Not Loading Locally Referenced Asse
Any info on this yet?  I have the same problem and I am getting ready to
resort to session state if I can't get this resolved :(

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe  
View profile  
 More options Jan 26 2006, 8:40 pm
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Joe" <j...@nospam.groups.com>
Date: Fri, 27 Jan 2006 01:40:30 GMT
Local: Thurs, Jan 26 2006 8:40 pm
Subject: Re: ASP.NET Development Server Not Loading Locally Referenced Asse
Ken,

Did you ever figure this out?  I hate to have to redo
the authentication.  Thanks

"Ken" <k...@newsgroups.nospam> wrote in message

news:B1C779DD-07D4-41B4-A91E-E200F8257A42@microsoft.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »