c# - System.BadImageFormatException - Invalid Token when updating DLL to newest version? -


I have some projects going, which are being used by some company-specific DLLs. I am just downloading and updating to the latest version and now I am getting this error. I do not believe this is unique to DLL itself, new projects are not expected in my project. Stack trace is not very useful.

Server error in the '/ dashbad' application.

Invalid token.

Description: An unrestricted exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where the code has originated from it.

Exception Description: System.BadImageFormatException: Invalid token.

Source error:

An unrestricted exception occurred during the execution of the existing web request. Information about the origin and location of the exception can be identified using the exception stack trace below.

Stack trace:.

[BadImageFormatException :. Invalid token]
System.Reflection. RuntimeAssembly._nLoad (assembly name filename, String codebase, evidence assembly security, runtime assembly space, stack crawl mark and stack marker, Boolean Fenkonfail Notfound, bullion for Intrspekshns, Boolean suppress security checks) +0 / system. Reflection. Anlod (assembly name filename, String codebase, evidence assembly security, Rntaimasmbekeshn place stack crawl mark and stack marker, Boolean Fenkonfail Notfond, bullion for Intrspekshns, Boolean après Security Czech) +39
system. reflection. Rendime. Assembly name Assembly name assembly Reef evidence assembly security, stack crawl mark and stack marker, bullion for Intospeshnshn, Boolean subscription Checkers) +132
System. Reflection. Assembly. Anantlod (String Assembly String, Evidence assembly security, stack crawl mark & ​​amp; stackMark, Boolean forIntrospection) 144 System.Reflection.Assembly.Load (string assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper (string AssemblyName , Boolean starDirective) +46

[ConfigurationErrorsException:. Invalid token] System.Web.Configuration.CompilationSection.LoadAssemblyHelper (string AssemblyName, Boolean starDirective) 618
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory () 209 System.Web.Configuration.CompilationSection
. LoadAssembly (AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies (CompilationComConfig) +178
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies () +94 System.Web.Compilation.BuildManager.CallPreStartInitMethods () 332 System.Web.Hosting.HostingEnvironment.Initialize (ApplicationManager AppManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameter's hostingParameters, PolicyLevel policyLevel, ExceptionsAppDomainCreationException) +591

[HttpException (0x80004005):. Invalid token]
System.Web.HttpRuntime.FirstRequestInit (HttpContext Reference) 8,950,644 System.Web.HttpRuntime EnsureFirstRequestInit (HttpContext Reference) 97 System.Web.HttpRuntime.ProcessRequestNotificationPrivate (IIS7WorkerRequest wr, HttpContext Reference) +256

Version information: Microsoft .NET Framework version: 4.0.30319; ASP.NET Version: 4.0.30319.1

Has anyone encountered this error in this type of setting / any debugging advice?

This may be a 32bit / 64bit issue. You can try to target a particular platform with your compile and see if it fixes your issues

Comments