服務(wù)熱線
153 8323 9821
Server Error in / 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 >
我在本地測(cè)試的很成功,但上傳到服務(wù)器后就沒(méi)老出現(xiàn)這樣的問(wèn)題?
下面是我的方法,但我到現(xiàn)在還沒(méi)有解決這個(gè)實(shí)際問(wèn)題,想請(qǐng)各位給說(shuō)說(shuō)這怎么辦呀?謝謝
1.先打開(kāi)IE選項(xiàng).然后刪除Cookeis.和文件.再然后點(diǎn)IE選項(xiàng)里的程序選項(xiàng)..點(diǎn)重置Web設(shè)置就可以了哦
2.如果本機(jī)IIS測(cè)試通過(guò)就是服務(wù)器權(quán)限問(wèn)題
3.解決方法:
出現(xiàn)此類(lèi)錯(cuò)誤時(shí),請(qǐng)您修改站點(diǎn)配置文件web.config,也就是在web.config文件里創(chuàng)建一個(gè) <customErrors > 標(biāo)記。然后應(yīng)將此 <customErrors > 標(biāo)記的“mode”屬性設(shè)置為“Off”(請(qǐng)您注意是“Off”,不是“off”,大寫(xiě)的“O”,否則也不會(huì)出來(lái)錯(cuò)誤信息),這樣就可以出來(lái)錯(cuò)誤具體信息。(推薦您更改web.config文件, 因?yàn)檫@種問(wèn)題往往是客戶(hù)端程序問(wèn)題)
4.解決辦法:把C:Inetpubwwwroot中的aspnet_client文件夾傳到了站點(diǎn)根目錄。這個(gè)文件夾里面的.js文件是驗(yàn)證函數(shù),關(guān)鍵部分啊!
本文來(lái)自CSDN博客,轉(zhuǎn)載請(qǐng)標(biāo)明出處:http://blog.csdn.net/feifeiyaqi3/archive/2007/10/25/1843544.aspx
另:
我這個(gè)問(wèn)題解決了。
方法:我登陸服務(wù)器,打開(kāi)IIS,選中IIS站點(diǎn)名---屬性----ASPNET-----ASPNET VERSION 中把1.0 改為2.0然后在遠(yuǎn)程進(jìn)入訪問(wèn)網(wǎng)站就可以正常訪問(wèn)了。