System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances.
-
Anyone ahve any suggestions on what can be wrong when getting this error. I've installed my ASP.NET app on two machines .NET 2.0 and on one of the cpus this error occures.
Server Error in '/Distributor' Application. -------------------------------------------------------------------------------- System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at FleetManagement.Services.SystemAdministrationServices.UserManager.GetUserRoles(String userName, String password) at FleetManagement.Services.SystemAdministrationServices.SystemAdministrationServices.GetUserRoles(String userName, String password) at FleetManagement.Services.AuthenticationServices.Authenticate.GetUserRoles(String userName, String password) --- End of inner exception stack trace --- 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.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at Scania.FleetManagement.Services.SystemAdministrationServices.UserManager.GetUserRoles(String userName, String password) at Scania.FleetManagement.Services.SystemAdministrationServices.SystemAdministrationServices.GetUserRoles(String userName, String password) at Scania.FleetManagement.Services.AuthenticationServices.Authenticate.GetUserRoles(String userName, String password) --- End of inner exception stack trace --- 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: [SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at Scania.FleetManagement.Services.SystemAdministrationServices.UserManager.GetUserRoles(String userName, String password) at Scania.FleetManagem
-
Anyone ahve any suggestions on what can be wrong when getting this error. I've installed my ASP.NET app on two machines .NET 2.0 and on one of the cpus this error occures.
Server Error in '/Distributor' Application. -------------------------------------------------------------------------------- System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at FleetManagement.Services.SystemAdministrationServices.UserManager.GetUserRoles(String userName, String password) at FleetManagement.Services.SystemAdministrationServices.SystemAdministrationServices.GetUserRoles(String userName, String password) at FleetManagement.Services.AuthenticationServices.Authenticate.GetUserRoles(String userName, String password) --- End of inner exception stack trace --- 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.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at Scania.FleetManagement.Services.SystemAdministrationServices.UserManager.GetUserRoles(String userName, String password) at Scania.FleetManagement.Services.SystemAdministrationServices.SystemAdministrationServices.GetUserRoles(String userName, String password) at Scania.FleetManagement.Services.AuthenticationServices.Authenticate.GetUserRoles(String userName, String password) --- End of inner exception stack trace --- 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: [SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at Scania.FleetManagement.Services.SystemAdministrationServices.UserManager.GetUserRoles(String userName, String password) at Scania.FleetManagem
FYI : https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=285171[^] It may help you :)
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.