hstulberg
asked on
IIS7 application errors with providex odbc driver
I have a Windows 2008 SBS x64.
Setting up in IIS7 an asp.net application in the default website.
My application access a providex data source with the providex 32bit odbc driver.
I set up the driver with the c:\Windows\SysWOW64\odbcad 32.exe
I have tired using the default application pool and also created a new application pool set to run in 32bit.
I also set file permissions to everyone full control.
I also gave the nt authority access to the dot net framework directory and iis metabase via command C:\WINDOWS\Microsoft.NET\F ramework\v 2.0.50727\ aspnet_reg iis -ga "NT AUTHORITY\NETWORK SERVICE
The strange thing is my application runs fine on Windows server 2008 standard. I cannot find the differences in my configuration between the two OS.
Here are two error message. One with 32bit and other with 64bit application pool
x64 error
Server Error in '/AccountLink' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Could not load file or assembly 'AccountLink' 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 'AccountLink' 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 'AccountLink' 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 'AccountLink' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.Assembly ._nLoad(As semblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly .InternalL oad(Assemb lyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
System.Reflection.Assembly .InternalL oad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
System.Reflection.Assembly .Load(Stri ng assemblyString) +35
System.Web.Configuration.C ompilation Section.Lo adAssembly Helper(Str ing assemblyName, Boolean starDirective) +190
[ConfigurationErrorsExcept ion: Could not load file or assembly 'AccountLink' 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) +11204104
System.Web.Configuration.C ompilation Section.Lo adAllAssem bliesFromA ppDomainBi nDirectory () +388
System.Web.Configuration.C ompilation Section.Lo adAssembly (AssemblyI nfo ai) +232
System.Web.Configuration.A ssemblyInf o.get_Asse mblyIntern al() +48
System.Web.Compilation.Bui ldManager. GetReferen cedAssembl ies(Compil ationSecti on compConfig) +210
System.Web.Compilation.Web DirectoryB atchCompil er..ctor(V irtualDire ctory vdir) +191
System.Web.Compilation.Bui ldManager. BatchCompi leWebDirec toryIntern al(Virtual Directory vdir, Boolean ignoreErrors) +54
System.Web.Compilation.Bui ldManager. CompileWeb File(Virtu alPath virtualPath) +295
System.Web.Compilation.Bui ldManager. GetVPathBu ildResultI nternal(Vi rtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +476
System.Web.Compilation.Bui ldManager. GetVPathBu ildResultW ithNoAsser t(HttpCont ext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +116
System.Web.UI.WebServicePa rser.GetCo mpiledType (String inputFile, HttpContext context) +77
System.Web.Services.Protoc ols.WebSer viceHandle rFactory.G etHandler( HttpContex t context, String verb, String url, String filePath) +231
System.Web.MaterializeHand lerExecuti onStep.Sys tem.Web.Ht tpApplicat ion.IExecu tionStep.E xecute() +425
System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously) +263
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
x32 error
Server Error in Application "DEFAULT WEB SITE/ACCOUNTLINK"Internet Information Services 7.0
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information
Module DynamicCompressionModule
Notification SendResponse
Handler StaticFile
Error Code 0x8007007e
Requested URL http://localhost:80/AccountLink
Physical Path E:\data root\accountlink
Logon Method Anonymous
Logon User Anonymous
Failed Request Tracing Log Directory e:\data root\accountlink
Most likely causes:
•The worker process is unable to read the applicationhost.config or web.config file.
•There is malformed XML in the applicationhost.config or web.config file.
•The server cannot access the applicationhost.config or web.config file because of incorrect NTFS permissions.
Things you can try:
•Look in the event logs for information about why the configuration files are not readable.
•Make sure the user identity specified for the application pool, or the authenticated user, has the required permissions to access the web.config file.
Links and More InformationThis error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »
Any thought on my dilemma.
If you want images of error message let me know and i can attach them.
Setting up in IIS7 an asp.net application in the default website.
My application access a providex data source with the providex 32bit odbc driver.
I set up the driver with the c:\Windows\SysWOW64\odbcad
I have tired using the default application pool and also created a new application pool set to run in 32bit.
I also set file permissions to everyone full control.
I also gave the nt authority access to the dot net framework directory and iis metabase via command C:\WINDOWS\Microsoft.NET\F
The strange thing is my application runs fine on Windows server 2008 standard. I cannot find the differences in my configuration between the two OS.
Here are two error message. One with 32bit and other with 64bit application pool
x64 error
Server Error in '/AccountLink' Application.
--------------------------
Could not load file or assembly 'AccountLink' 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
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 'AccountLink' 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 'AccountLink' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.Assembly
System.Reflection.Assembly
System.Reflection.Assembly
System.Reflection.Assembly
System.Web.Configuration.C
[ConfigurationErrorsExcept
System.Web.Configuration.C
System.Web.Configuration.C
System.Web.Configuration.C
System.Web.Configuration.A
System.Web.Compilation.Bui
System.Web.Compilation.Web
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.UI.WebServicePa
System.Web.Services.Protoc
System.Web.MaterializeHand
System.Web.HttpApplication
--------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
x32 error
Server Error in Application "DEFAULT WEB SITE/ACCOUNTLINK"Internet Information Services 7.0
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information
Module DynamicCompressionModule
Notification SendResponse
Handler StaticFile
Error Code 0x8007007e
Requested URL http://localhost:80/AccountLink
Physical Path E:\data root\accountlink
Logon Method Anonymous
Logon User Anonymous
Failed Request Tracing Log Directory e:\data root\accountlink
Most likely causes:
•The worker process is unable to read the applicationhost.config or web.config file.
•There is malformed XML in the applicationhost.config or web.config file.
•The server cannot access the applicationhost.config or web.config file because of incorrect NTFS permissions.
Things you can try:
•Look in the event logs for information about why the configuration files are not readable.
•Make sure the user identity specified for the application pool, or the authenticated user, has the required permissions to access the web.config file.
Links and More InformationThis error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »
Any thought on my dilemma.
If you want images of error message let me know and i can attach them.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.