我有一个在asp中运行的旧应用程序,最近已迁移到 .net 并部署在 Windows 2008服务器上,但它仍然以32位运行,因为一些dll(旧的MSXML dll被使用)依赖。
依赖项已被删除,并在2012 VS.重建。当我部署并更改应用程序池设置以禁用32位应用程序标志(在高级设置下)时,它会给我以下错误
但是,如果我将标志更改为true,则应用程序将再次开始工作
有人可以建议一些解决方案吗?
---------------------------------------------------------------------------------------
Could not load file or assembly 'System.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.
---------------------------------------------------------------------------------------
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\*******\******\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/70aa83e0/80464c61/System.Web.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/70aa83e0/80464c61/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///D:/Websites/XML_NET/bin/System.Web.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.