Last post Jun 29, 2007 04:02 PM by boatboy
Jun 26, 2007 10:58 PM|boatboy|LINK
We have a client that is getting this error intermittently on ASP.NET 2.0 web applications after installing the latest Windows 2003 patches (on 6/26/07). The only reference to this I've found online suggests it has to do with marshalling generics across
appdomains, but is from 2005 and doesn't seem to apply here.
Server Error in '/login' Application.
Loading this assembly would produce a different grant set from other instances.
(Exception from HRESULT: 0x80131401)
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.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
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.
[FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +0
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
Client.Web.Security.ClientMembershipProvider.ValidateUser(String username, String password) in C:\LifeCycle\Clients\Client\Client.Web\Security\ClientMembershipProvider.vb:81
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +160
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +99
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Jun 29, 2007 03:28 AM|Nai-Dong Jin - MSFT|LINK
This is a FileLoadException (Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)) which has been listed in FeedBack center. You may visit the following link to get the suggestion.
Jun 29, 2007 03:18 PM|boatboy|LINK
Thanks for the reply. I noticed that case, and it looks similar, except that we are not doing anything like that in code. This error seems to be being thrown from code internal to the .NET framework. Notice in the stack trace, it's being thrown from
'DbConnectionPool.GetConnection()'. We've also gotten this error from other places, all internal to the framework. We're pretty sure this is related to Win2003 SP2 in some way. A temporary workaround has been to set <trust level="Full"/>, leading me to
believe that SP2 changed the .NET 2.0 permission sets in some way.
Jun 29, 2007 04:02 PM|boatboy|LINK
I have opened a case for this here: