aatjan
asked on
deployment problem: web application runs on windows7/IIS 7, not on WIndows 2008/IIS7
HI,
I made an webapplication which runs fine on a windows 7 (64 bits) /IIS7 combination. App pool is asp.net 4, integrated, 32 bits apps allowed.
I want to deploy this app to windows 2008 r2 (64bits) /IIS7. Same app pool settings. So i copied the files from the WIndows 7 machine to the windows2008 r2 machine.
Now i'm facing with an error message like xxx.dll cannot be loaded, bad image format.
What could be the problem?
I made an webapplication which runs fine on a windows 7 (64 bits) /IIS7 combination. App pool is asp.net 4, integrated, 32 bits apps allowed.
I want to deploy this app to windows 2008 r2 (64bits) /IIS7. Same app pool settings. So i copied the files from the WIndows 7 machine to the windows2008 r2 machine.
Now i'm facing with an error message like xxx.dll cannot be loaded, bad image format.
What could be the problem?
.net version? Mvc? Something you installed included that dll it sounds like
ASKER
Asp.net 4.0, no mvc.
What is the xxx.dll? Usually a search for that tells you what's missing
ASKER
Hi, the xxx.dll is not missing. It has a bad image frmat.
Let me try again:
Usually a search for whatever the error message is will give you insight to the solution. Can you please tell us the exact error message?
Usually a search for whatever the error message is will give you insight to the solution. Can you please tell us the exact error message?
ASKER
Could not load file or assembly 'amzinet' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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.BadImageFormatExcep tion: Could not load file or assembly 'amzinet' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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 'amzinet' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F usion!Enab leLog] (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\F usion!Enab leLog].
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'amzinet' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.RuntimeA ssembly._n Load(Assem blyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeA ssembly.nL oad(Assemb lyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeA ssembly.In ternalLoad AssemblyNa me(Assembl yName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeA ssembly.In ternalLoad (String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly .Load(Stri ng assemblyString) +28
System.Web.Configuration.C ompilation Section.Lo adAssembly Helper(Str ing assemblyName, Boolean starDirective) +46
[ConfigurationErrorsExcept ion: Could not load file or assembly 'amzinet' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.C ompilation Section.Lo adAssembly Helper(Str ing assemblyName, Boolean starDirective) +618
System.Web.Configuration.C ompilation Section.Lo adAllAssem bliesFromA ppDomainBi nDirectory () +209
System.Web.Configuration.C ompilation Section.Lo adAssembly (AssemblyI nfo ai) +130
System.Web.Compilation.Bui ldManager. GetReferen cedAssembl ies(Compil ationSecti on compConfig) +178
System.Web.Compilation.Bui ldManager. GetPreStar tInitMetho dsFromRefe rencedAsse mblies() +94
System.Web.Compilation.Bui ldManager. CallPreSta rtInitMeth ods() +332
System.Web.Hosting.Hosting Environmen t.Initiali ze(Applica tionManage r appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParamete rs hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException ) +677
[HttpException (0x80004005): Could not load file or assembly 'amzinet' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.Fir stRequestI nit(HttpCo ntext context) +9106712
System.Web.HttpRuntime.Ens ureFirstRe questInit( HttpContex t context) +97
System.Web.HttpRuntime.Pro cessReques tInternal( HttpWorker Request wr) +258
Thanks!
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.BadImageFormatExcep
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 'amzinet' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\F
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'amzinet' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.RuntimeA
System.Reflection.RuntimeA
System.Reflection.RuntimeA
System.Reflection.RuntimeA
System.Reflection.Assembly
System.Web.Configuration.C
[ConfigurationErrorsExcept
System.Web.Configuration.C
System.Web.Configuration.C
System.Web.Configuration.C
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Hosting.Hosting
[HttpException (0x80004005): Could not load file or assembly 'amzinet' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.Fir
System.Web.HttpRuntime.Ens
System.Web.HttpRuntime.Pro
Thanks!
Did you follow these instructions:
http://www.amzi.com/manuals/kw4/runtime/aspnet_interface.html
It says you need to copy some files to windows/system32
http://www.amzi.com/manuals/kw4/runtime/aspnet_interface.html
It says you need to copy some files to windows/system32
ASKER
Hi. This is for asp.net 1...
We are running on asp.net 4
We are running on asp.net 4
I don't think so.
"Cannot find amzinet.dll or one of its dependencies
If you get the error that ASP.NET cannot find amzinet or one of its dependencies, it is likely because amzi.cfg, amzi.dll, aosutils.lsx and/or aodbc.lsx were not copied to the windows/system32 directory"
Try this and reboot.
"Cannot find amzinet.dll or one of its dependencies
If you get the error that ASP.NET cannot find amzinet or one of its dependencies, it is likely because amzi.cfg, amzi.dll, aosutils.lsx and/or aodbc.lsx were not copied to the windows/system32 directory"
Try this and reboot.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the fusion viewer showed that IIS was running in 32 bits. That does not work if the app itself is a 64 bits version.