1

Topic: IIS 7 error of loading of the assembly

Hello! Connected  the assembly to the project, on the local computer at debugging all works, and at start attempt through server IIS7 falls. In what side it is possible to look? I write on ASP.NET MVC 5, the assembly is made in 4.0 In what side to look? More low page with an error stack. Server Error in ' / ' Application. ________________________________________ Could not load file or assembly ' Common. ExcelHelper ' or one of its dependencies. Attempt to load the program having an incorrect format has been made. 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. BadImageFormatException: Could not load file or assembly ' Common. ExcelHelper ' or one of its dependencies. Attempt to load the program having an incorrect format has been made. 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. Assembly Load Trace: The following information can be helpful to determine why the assembly ' Common. ExcelHelper ' could not be loaded. WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion! EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion! EnableLog]. Stack Trace: [BadImageFormatException: Could not load file or assembly ' Common. ExcelHelper ' or one of its dependencies. Attempt to load the program having an incorrect format has been made.] System. Reflection. RuntimeAssembly. _ nLoad (AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName (AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +234 System.Reflection.RuntimeAssembly.InternalLoad (String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +108 System.Reflection.RuntimeAssembly.InternalLoad (String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +25 System. Reflection. Assembly. Load (String assemblyString) +34 System.Web.Configuration.CompilationSection.LoadAssemblyHelper (String assemblyName, Boolean starDirective) +49 [ConfigurationErrorsException: Could not load file or assembly ' Common. ExcelHelper ' or one of its dependencies. Attempt to load the program having an incorrect format has been made.] System.Web.Configuration.CompilationSection.LoadAssemblyHelper (String assemblyName, Boolean starDirective) +772 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory () +259 System.Web.Configuration.CompilationSection.LoadAssembly (AssemblyInfo ai) +163 System.Web.Compilation.BuildManager.GetReferencedAssemblies (CompilationSection compConfig) +230 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies () +76 System.Web.Compilation.BuildManager.CallPreStartInitMethods (String preStartInitListPath, Boolean& isRefAssemblyLoaded) +343 System.Web.Compilation.BuildManager.ExecutePreAppStart () +176 System.Web.Hosting.HostingEnvironment.Initialize (ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +734 [HttpException (0x80004005): Could not load file or assembly ' Common. ExcelHelper ' or one of its dependencies. Attempt to load the program having an incorrect format has been made.] System. Web. HttpRuntime. FirstRequestInit (HttpContext context) +579 System.Web.HttpRuntime.EnsureFirstRequestInit (HttpContext context) +112 System.Web.HttpRuntime.ProcessRequestNotificationPrivate (IIS7WorkerRequest wr, HttpContext context) +716 ________________________________________ Version Information: Microsoft OF. NET FRAMEWORK Version:4.0.30319; ASP.NET Version:4.6.1087.0

2

Re: IIS 7 error of loading of the assembly

Hello, x1, you wrote: x1> In what side to look? Aside x86/x64. x1> Exception Details: System. BadImageFormatException: Could not load file or assembly ' Common. ExcelHelper ' or one of its dependencies. Attempt to load the program having an incorrect format has been made. https://stackoverflow.com/a/19169331... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>