asp.net在x64服务器2008上传

时间:2011-12-15 12:56:47

标签: asp.net iis-7

我使用iis 7在Windows Server 2008 x64上发布网站,我使用框架3.5开发了网站

该网站无法打开,并尝试重定向,而在Windows x36中运行良好

我还注意到事件日志中的以下警告

Event code: 3008 
Event message: A configuration error has occurred. 
Event time: 12/15/2011 4:04:54 AM 
Event time (UTC): 12/15/2011 12:04:54 PM 
Event ID: 8ae535fc0b17482b952be80ecd3e65b3 
Event sequence: 1 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/1/ROOT-12-129684242945082885 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\xxxxxxxxxxxxxx
    Machine name: WIN-F1XUWXBQHQ2 

Process information: 
    Process ID: 2732 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 

Exception information: 
    Exception type: HttpException 
    Exception message: Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format. 

Request information: 
    Request URL: http://localhost/Error.aspx?error=er 
    Request path: /Error.aspx 
    User host address: ::1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 

Thread information: 
    Thread ID: 7 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
 Cannot load assembly system.data 

Custom event details: 


Source :ASP.NET 2.0.50727.0

Event ID: 1310

1 个答案:

答案 0 :(得分:1)

在应用程序池中启用32位应用程序

enter image description here

来源:http://jepsonsblog.blogspot.com/2010/12/could-not-load-file-or-assembly.html