Options

Error attemting to profile IIS Website .Net v4

We access the website fine on our development machine however when ever we attempt to profile it we get the following server error. any ideas.. I also tried this on the EAP v 6 .. same error


Server Error in '/' Application.

Could not load file or assembly 'AspDotNetStorefrontCore, Version=9.0.1.2, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
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.IO.FileLoadException: Could not load file or assembly 'AspDotNetStorefrontCore, Version=9.0.1.2, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

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:


[FileLoadException: Could not load file or assembly 'AspDotNetStorefrontCore, Version=9.0.1.2, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)]
System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) +0
System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType declaringType) +148
System.Reflection.RuntimeMethodInfo.get_ReturnType() +93
System.Web.HttpApplicationFactory.ReflectOnMethodInfoIfItLooksLikeEventHandler(MethodInfo m) +66
System.Web.HttpApplicationFactory.ReflectOnApplicationType() +323
System.Web.HttpApplicationFactory.Init() +441
System.Web.HttpApplicationFactory.EnsureInited() +109
System.Web.Compilation.BuildManager.CompileGlobalAsax() +171
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +655

[HttpException (0x80004005): Could not load file or assembly 'AspDotNetStorefrontCore, Version=9.0.1.2, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +113
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +980
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1154

[HttpException (0x80004005): Could not load file or assembly 'AspDotNetStorefrontCore, Version=9.0.1.2, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +706
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +186
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +810




Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Comments

  • Options
    Can you try to give this assembly a string name please? I think, given that the profiler loads its assembly into the runtime, it might force extra checking which necessitates signing.
  • Options
    Or even a strong name :)
  • Options
    Unfortuatly I cannot sign this as it causes issues with other dll's down the road.

    Thas has not been an issue before.

    There is one thing i did notice. The assembly version it is saying it cannot access is 9.0.1.2 while we are on 9.0.1.3 or atleast that is what is in the AssemblyInfo.cs

    There is a precompilied dll that i do not have access to that is loaded before the call to the dll in the exception .. could this be the issue?
Sign In or Register to comment.