回覆:把部分做好的網站放在網路伺服器上已經轉為應用程式囉 |
|
juno
更新時間:2009/7/1 上午 11:04:40 |
|
我在web.config的 <system.web> <customErrors mode="Off"/>加入這行語法</system.web>然後把true改為false---<roleManager enabled="false" /> 接著在customErrors區段中改寫為 <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"> 放到伺服器上後就變成Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 40: 這個值設定為 true。 Line 41: --> Line 42: <roleManager enabled="false" /> Line 43: <compilation defaultLanguage="c#" /> Line 44: <!--
Source File: D:\hshome\blackfac\black-faced-spoonbill.com.tw\birdnews\web.config Line: 42
Show Additional Configuration Errors:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (D:\hshome\blackfac\black-faced-spoonbill.com.tw\birdnews\web.config line 50)
|
|
|
|
|
|
|