2016年3月30日 星期三

Compilation Error

今日發行aspx網站後發現網站無法開啟,經測試後是所有的aspx程式都無法執行,等了一段時間後,該網頁出現錯誤訊息如下:

 

Server Error in '/yufonew' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC31007: Unable to open module file 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\yufonew\0782566d\700ef1d8\App_Web_1.aspx.cdcab7d2.zdehka3v.0.vb': System Error &Hc0000005& (Visual Basic internal compiler error)
Source Error:

[No relevant source lines]

Source File: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\yufonew\0782566d\700ef1d8\App_Web_1.aspx.cdcab7d2.zdehka3v.0.vb :    Line: 0

Show Detailed Compiler Output:


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

解決方式:

1.把IIS管理員中的 “DefaultAppPool"->內容->身份識別,先改成"本機系統"

2.再次執行該 .aspx

3.改回原來的"網路服務"

imageimage

沒有留言: