Discussion:
iis5.1出現runtime err
(时间太久无法回复)
u300
2006-02-28 11:07:30 UTC
Permalink
我裝在iis6的asp.net程式沒問題,搬到iis5.1就出現runtime err...如下:
Server Error in '/panji' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
u300
2006-02-28 16:36:22 UTC
Permalink
用http://localhost來跑一樣錯誤信息...
我手提電腦用localhost跑可以...
但桌上機台就不行..
之間設定完全一樣...只差xp手提電腦是隨機附的,,,市否跟xp那個設定有關..請再幫忙 ...

"璉璉" 來函:
... 在 你的 WinXP 用 localhost 來跑,再來看看錯誤訊息吧~
這個頁面是為了防止被人窺視網頁內容及錯誤訊息所輸出的一個標準錯誤訊息頁面,是無法告知你到底發生啥事。
大概就跟電腦無法開機的等級差不多,無法推論到底是沒電、沒作業系統還是怎樣。
Post by u300
Server Error in '/panji' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
u300
2006-03-01 15:35:27 UTC
Permalink
1.我是如下更新asp.net版次,才發生上述劃面
執行C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
重新將1.1.4322版的ASP.NET安裝到IIS。
2.我另試另一台.但不更新asp.net到1.1版...網頁劃面有出來,但頁面沒出現完整(應該有對話框可填帳號.密碼之類)..就是填資料得輸入匡沒出現
3.web.config內容如下...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<system.web>


<compilation
defaultLanguage="c#"
debug="true"
/>


<customErrors mode="RemoteOnly" />


<authentication mode="Windows" />



<authorization>
<allow users="*" />
</authorization>


<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>


<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>


<globalization
requestEncoding="big5"
responseEncoding="big5"
/>

</system.web>
<appSettings>
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\abc\RegisterService\customer.mdb" />
</appSettings>

</configuration>


"璉璉" 來函:
那你把你 web.config 貼出來,就是原先錯誤訊息說明的那兩段就可以了
也許是你的 web.config 擋掉本機檢視了
WinXP 的 IIS 只要是 Pro 的都一樣,有分的是 Home 沒有 IIS ,你既然有 IIS ,就都是 Pro ,那就沒差。
Post by u300
用http://localhost來跑一樣錯誤信息...
我手提電腦用localhost跑可以...
但桌上機台就不行..
之間設定完全一樣...只差xp手提電腦是隨機附的,,,市否跟xp那個設定有關..請再幫忙 ...
"璉璉" 來函:
... 在 你的 WinXP 用 localhost 來跑,再來看看錯誤訊息吧~
這個頁面是為了防止被人窺視網頁內容及錯誤訊息所輸出的一個標準錯誤訊息頁面,是無法告知你到底發生啥事。
大概就跟電腦無法開機的等級差不多,無法推論到底是沒電、沒作業系統還是怎樣。
Post by u300
Server Error in '/panji' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
u300
2006-03-02 05:58:27 UTC
Permalink
感謝您熱心的幫忙...錯誤信息如下:
Server Error in '/panji' 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: CS0016: Could not write to output file
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\panji\20edb099\4c487176\efb0bebu.dll' -- '存取被拒。 '

Source Error:

"璉璉" 來函:
1/2 沒必要不需重新註冊 ASP.NET 到 IIS 內,除非有必要,就算重新註冊也不會發生你這樣的問題。
3.
<customErrors mode="RemoteOnly" />
就會在 localhost 端顯示完整錯誤訊息,遠端顯示你現在看到的錯誤訊息。
如果你在 localhost 不正常,你可以先改為:
<customErrors mode="Off" />
來看錯誤訊息。
注意:此資訊將同時顯示給遠端的使用者
在 localhost 無法正常顯示錯誤訊息時,請檢查是否改過 hosts 的 localhost 對應,或是電腦名是否取為中文。提供網際網路服務的電腦名請取為英文,此外安裝軟體時,請用英文帳號的 Administrators 群組安裝,免生意外。
另外,Web.config 是該子目錄下都繼承,所以若是你發生問題的 aspx 檔並非在該子目錄下,請提供該子目錄或最接近該子目錄上層的 web.config
Post by u300
1.我是如下更新asp.net版次,才發生上述劃面
執行C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
重新將1.1.4322版的ASP.NET安裝到IIS。
2.我另試另一台.但不更新asp.net到1.1版...網頁劃面有出來,但頁面沒出現完整(應該有對話框可填帳號.密碼之類)..就是填資料得輸入匡沒出現
3.web.config內容如下...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation
defaultLanguage="c#"
debug="true"
/>
<customErrors mode="RemoteOnly" />
<authentication mode="Windows" />
<authorization>
<allow users="*" />
</authorization>
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization
requestEncoding="big5"
responseEncoding="big5"
/>
</system.web>
<appSettings>
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\abc\RegisterService\customer.mdb" />
</appSettings>
</configuration>
"璉璉" 來函:
那你把你 web.config 貼出來,就是原先錯誤訊息說明的那兩段就可以了
也許是你的 web.config 擋掉本機檢視了
WinXP 的 IIS 只要是 Pro 的都一樣,有分的是 Home 沒有 IIS ,你既然有 IIS ,就都是 Pro ,那就沒差。
Post by u300
用http://localhost來跑一樣錯誤信息...
我手提電腦用localhost跑可以...
但桌上機台就不行..
之間設定完全一樣...只差xp手提電腦是隨機附的,,,市否跟xp那個設定有關..請再幫忙 ...
"璉璉" 來函:
... 在 你的 WinXP 用 localhost 來跑,再來看看錯誤訊息吧~
這個頁面是為了防止被人窺視網頁內容及錯誤訊息所輸出的一個標準錯誤訊息頁面,是無法告知你到底發生啥事。
大概就跟電腦無法開機的等級差不多,無法推論到底是沒電、沒作業系統還是怎樣。
Post by u300
Server Error in '/panji' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
u300
2006-03-03 08:37:26 UTC
Permalink
感謝您有耐心的幫忙...不過我不懂如何操做下述這段:
請用檔案總管到下面這個目錄:
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files
把完整權限授權給 ASPNET (Win2k/XP)
==>找到目錄按右鍵選內容並沒有安全性的選項?所以不知如何授權?我的磁區是ntfs磁區


"璉璉" 來函:
這個問題發生的原因是 ASP.NET 要重新建立編譯的快取檔在上面說的那個目錄下的子目錄內,但是沒有權限寫入,所以無法建立快取導致錯誤發生。
你可能有重新安裝過 IIS 造成的權杖移除後沒重新新增對應。
請用檔案總管到下面這個目錄:
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files
把完整權限授權給 ASPNET (Win2k/XP)
IE 不用關,把 IIS 服務停用,再用工作管理員把的 aspnet_wp.exe 終結掉,重新啟用 IIS ,IE 重整即可。
不會踢掉 aspnet_wp.exe 的話,重開機也可以。
Post by u300
Server Error in '/panji' 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: CS0016: Could not write to output file
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\panji\20edb099\4c487176\efb0bebu.dll' -- '存取被拒。 '
"璉璉" 來函:
1/2 沒必要不需重新註冊 ASP.NET 到 IIS 內,除非有必要,就算重新註冊也不會發生你這樣的問題。
3.
<customErrors mode="RemoteOnly" />
就會在 localhost 端顯示完整錯誤訊息,遠端顯示你現在看到的錯誤訊息。
如果你在 localhost 不正常,你可以先改為:
<customErrors mode="Off" />
來看錯誤訊息。
注意:此資訊將同時顯示給遠端的使用者
在 localhost 無法正常顯示錯誤訊息時,請檢查是否改過 hosts 的 localhost 對應,或是電腦名是否取為中文。提供網際網路服務的電腦名請取為英文,此外安裝軟體時,請用英文帳號的 Administrators 群組安裝,免生意外。
另外,Web.config 是該子目錄下都繼承,所以若是你發生問題的 aspx 檔並非在該子目錄下,請提供該子目錄或最接近該子目錄上層的 web.config
Post by u300
1.我是如下更新asp.net版次,才發生上述劃面
執行C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
重新將1.1.4322版的ASP.NET安裝到IIS。
2.我另試另一台.但不更新asp.net到1.1版...網頁劃面有出來,但頁面沒出現完整(應該有對話框可填帳號.密碼之類)..就是填資料得輸入匡沒出現
3.web.config內容如下...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation
defaultLanguage="c#"
debug="true"
/>
<customErrors mode="RemoteOnly" />
<authentication mode="Windows" />
<authorization>
<allow users="*" />
</authorization>
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization
requestEncoding="big5"
responseEncoding="big5"
/>
</system.web>
<appSettings>
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\abc\RegisterService\customer.mdb" />
</appSettings>
</configuration>
"璉璉" 來函:
那你把你 web.config 貼出來,就是原先錯誤訊息說明的那兩段就可以了
也許是你的 web.config 擋掉本機檢視了
WinXP 的 IIS 只要是 Pro 的都一樣,有分的是 Home 沒有 IIS ,你既然有 IIS ,就都是 Pro ,那就沒差。
Post by u300
用http://localhost來跑一樣錯誤信息...
我手提電腦用localhost跑可以...
但桌上機台就不行..
之間設定完全一樣...只差xp手提電腦是隨機附的,,,市否跟xp那個設定有關..請再幫忙 ...
"璉璉" 來函:
... 在 你的 WinXP 用 localhost 來跑,再來看看錯誤訊息吧~
這個頁面是為了防止被人窺視網頁內容及錯誤訊息所輸出的一個標準錯誤訊息頁面,是無法告知你到底發生啥事。
大概就跟電腦無法開機的等級差不多,無法推論到底是沒電、沒作業系統還是怎樣。
Post by u300
Server Error in '/panji' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
继续阅读narkive:
Loading...