我们正在将现有的Web应用程序从带有IIS 7的Server 2008迁移到带有IIS 8的Server 2012.当我将“Preload Enabled”设置为true时,服务该进程的应用程序池会立即崩溃并出现以下错误。
Log Name: Application
Source: Application Error
Date: 7/30/2013 2:20:48 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: 513582-API1
Description:
Faulting application name: w3wp.exe, version: 8.0.9200.16384, time stamp: 0x50108835
Faulting module name: msvcrt.dll, version: 7.0.9200.16384, time stamp: 0x5010ac20
Exception code: 0xc0000005
Fault offset: 0x000000000000128d
Faulting process id: 0x2520
Faulting application start time: 0x01ce8d5179cc6403
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\system32\msvcrt.dll
Report Id: c18a3c6d-f944-11e2-93f8-bc305bf8e042
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-07-30T18:20:48.000000000Z" />
<EventRecordID>52432</EventRecordID>
<Channel>Application</Channel>
<Computer>513582-API1</Computer>
<Security />
</System>
<EventData>
<Data>w3wp.exe</Data>
<Data>8.0.9200.16384</Data>
<Data>50108835</Data>
<Data>msvcrt.dll</Data>
<Data>7.0.9200.16384</Data>
<Data>5010ac20</Data>
<Data>c0000005</Data>
<Data>000000000000128d</Data>
<Data>2520</Data>
<Data>01ce8d5179cc6403</Data>
<Data>c:\windows\system32\inetsrv\w3wp.exe</Data>
<Data>C:\Windows\system32\msvcrt.dll</Data>
<Data>c18a3c6d-f944-11e2-93f8-bc305bf8e042</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
我在web.config的system.webserver节点中有这个:
<applicationInitialization remapManagedRequestsTo="In_LoadBalancer_Rotation.html" skipManagedModules="true" >
<add initializationPage="/Default.aspx" />
</applicationInitialization>
我还将应用程序池设置为“AlwaysRunning”。
只要我在web.config中注释掉上面的部分并将“Preload Enabled”设置为false,一切就像魅力一样。
答案 0 :(得分:1)
我们使用Helicon的ISAPI_Rewrite在IIS中获取Apache样式的htaccess重写。我已更新到最新版本,问题已解决。