2016-09-27 65 views
0

我面臨的問題,在我的服務器應用程序池在IIS 8 Windows服務器2012間歇停止,但沒有在網上提供的解決方案的解決,在事件查看器記錄的問題。IIS 8應用程序池停止間歇

下面是越來越登錄

Log Name:  Application 
Source:  ASP.NET 2.0.50727.0 
Date:   9/20/2016 10:12:45 AM 
Event ID:  1334 
Task Category: None 
Level:   Error 
Keywords:  Classic 
User:   N/A 

Description: 
Failed to initialize the AppDomain:XXXXXXXXXXX 

Exception: System.IO.FileNotFoundException 

Message: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
    at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
    at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
    at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
    at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) 
    at System.Activator.CreateInstance(String assemblyName, String typeName) 
    at System.AppDomain.CreateInstance(String assemblyName, String typeName) 
    at System.AppDomain.CreateInstance(String assemblyName, String typeName) 
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) 
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) 

InnerException: System.IO.FileNotFoundException 

Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

StackTrace: 
Event Xml: 
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> 
    <System> 
    <Provider Name="ASP.NET 2.0.50727.0" /> 
    <EventID Qualifiers="49152">1 </EventID> 
    <Level>2</Level> 
    <Task>0</Task> 
    <Keywords>0x80000000000000</Keywords> 
    <TimeCreated SystemTime="2016-09-20T13:12:43.000000000Z" /> 
    <EventRecordID>1778581</EventRecordID> 
    <Channel>Application</Channel> 
    <Computer>flkdflfldkdflfkdlf</Computer> 
    <Security /> 
    </System> 
    <EventData> 
    <Data>Failed to initialize the AppDomain:XXXXXXXXX 

Exception: System.IO.FileNotFoundException 

Message: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
    at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
    at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection) 
    at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection) 
    at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark) 
    at System.Activator.CreateInstance(String assemblyName, String typeName) 
    at System.AppDomain.CreateInstance(String assemblyName, String typeName) 
    at System.AppDomain.CreateInstance(String assemblyName, String typeName) 
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) 
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) 

InnerException: System.IO.FileNotFoundException 

Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

StackTrace: </Data> 
    </EventData> 
</Event> 

回答

0

嘗試更改應用程序池,這個應用程序從2.0到4.0的誤差。它看起來像是試圖將4.0組件加載到2.0應用程序池中。

如果申請被引用4.0組件時,它確實是一個2.0的應用程序,然後應用程序開發人員將不得不改變他們的代碼,或者這也許只是設立在錯誤的應用程序池開始?

+0

但它應該總是發生,但它在3-4天 –

+0

發生一次,有多少應用程序,你必須在同一個應用程序池?有時會發生什麼情況是池回收時,池中的第一個應用程序被擊中,他們的DLL加載。然後另一個應用程序被擊中,錯誤的DLL被加載到該池中。您也可以將應用程序分離到它自己的池中,這樣它就不會與其他應用程序DLL和版本控制在同一池中發生衝突。 – Henry