100分求救!!把网站发布到服务器上出现运行时错误,求高手帮忙啊!!在线等!!

时间:2022-12-30 21:46:37
Server Error in '/sds' 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>


看网上有的方法:
在所在站点右键点击-权限 加上 IIS_WPG组的读权限即可

1、需要为虚拟目录配置ASP.net账号(XP环境)、NetWork Service账号(2003环境)可读写权限。 
2、可能需要根据Web.config将相关目录设置成虚拟主机目录(此步骤可能非必须步骤)

试了试都不行,也有说是SQL连接的问题,

.net2.0 IIS6.0

100分求救!!!

37 个解决方案

#1


把 web.config 删除.再把你本地可以运行的 web.config 放上去试试

#2


试过了,没用的,老板在催了,急啊

#3


App_Code,App_Data,Bin,web.config文件夹和文件放在网站的根目录.

#4


这是肯定的,但错不在这

#5


1设成匿名访问
2选择脚本和可执行文件 
3重启

#6


把 web.config 删除.再把你本地可以运行的 web.config 放上去试试,详细错误信息都没有看到。。

#7


iis中的设置,是否允许匿名访问   
如果上面的设置都没问题,可以将machine.config中processmodel节下的username改成system,然后重启.   

#8


安全问题
自己IIS设置有问题

#9


web.config中 <customErrors mode="Off"/> mode设置为"Off"  O要大写

#10


9楼说的有道理  先看看具体什么错误啊

#11


<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> 

错误页面URL地址不对

#12


lz人都不见了哇??

lz你先把RemoteOnly 改成Off看看

#13


IIS的问题吧,吧IIS改一下访问权限。

#14


先把<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> 
改成:<customErrors mode="Off" /> 

看看具体错误,别的人都在扯蛋,看不到具体病因,就在乱开药了

#15


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

#16



<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms loginUrl="default.aspx" name=".computer" timeout="7200"></forms>
</authentication>
<compilation defaultLanguage="c#" debug="true">
      <assemblies>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <!--

        -->
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
      </assemblies>

#17


一开始就把<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>   
改成<customErrors mode="Off" /> 了,但是没用的  

应该是IIS的访问权限的问题,但是怎么改呢


#18


RemoteOnlyg改成off试试.在ie中设置匿名登录.把安全级别设置中低.
需要为虚拟目录配置ASP.net账号(XP环境)、NetWork Service账号(2003环境)数据库和操作系统都需要配置帐号  

#19


把你的web.conf中错误配置节点放开,看看到底是什么错误啊

#20


引用 17 楼 fengrengui 的回复:
一开始就把 <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>     
改成 <customErrors mode="Off" />  了,但是没用的   

应该是IIS的访问权限的问题,但是怎么改呢 

改了之后他又显示什么错误你贴上来

#21


英克系统?

#22


是全局文件global的错误,你将其CS文件也上传上去就没事情了!

#23


IIS的设置问题!你允许让他运行脚本和可执行程序!

#24


Server Error in '/sds' 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> 

你看到的这些是在客户端看到的,你可以在服务器上流览一下那个网页,就能看到是什么问题了。也不一定是你说的“权限”什么的问题,祝你好运

#25


问题已解决
我自己都不知道怎么解决的,稀里糊涂就好了....但愿以后不要再遇到

#26


这个问题我帮你回答好了,是编码问题.

#27


是你iis 出问题了  重启一下 iis 就好了 应该和代码没有关系 

有的时候 从新安装一下iis才能好用

#28


引用 27 楼 wcy1978 的回复:
是你iis 出问题了  重启一下 iis 就好了 应该和代码没有关系  

有的时候 从新安装一下iis才能好用


怎么可能,这个首先是代码的问题

#29


该回复于2014-12-05 18:55:38被版主删除

#30


可能是IIS设置的问题了,你在ASP.NET那边版本设为2.0,他默认是1.1的

#31


估计是IIS的问题

#32


同意23楼
我以前碰到过,跟服务器提供商协商后就解决了
用自己的服务器也是按23楼的说法弄好的

#33


运行脚本和可执行程序?
安全性不好吧

#34


1、需要为虚拟目录配置ASP.net账号(XP环境)、NetWork Service账号(2003环境)可读写权限。 
在所在站点右键点击-权限 加上 IIS_WPG组的读权限
2、可能需要根据Web.config将相关目录设置成虚拟主机目录(此步骤可能非必须步骤)

#35


假如IIS不是自己的呢?
我也出现这个问题了 急死了

#36


啊哦 不是自己的联系供应商

#37


#1


把 web.config 删除.再把你本地可以运行的 web.config 放上去试试

#2


试过了,没用的,老板在催了,急啊

#3


App_Code,App_Data,Bin,web.config文件夹和文件放在网站的根目录.

#4


这是肯定的,但错不在这

#5


1设成匿名访问
2选择脚本和可执行文件 
3重启

#6


把 web.config 删除.再把你本地可以运行的 web.config 放上去试试,详细错误信息都没有看到。。

#7


iis中的设置,是否允许匿名访问   
如果上面的设置都没问题,可以将machine.config中processmodel节下的username改成system,然后重启.   

#8


安全问题
自己IIS设置有问题

#9


web.config中 <customErrors mode="Off"/> mode设置为"Off"  O要大写

#10


9楼说的有道理  先看看具体什么错误啊

#11


<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> 

错误页面URL地址不对

#12


lz人都不见了哇??

lz你先把RemoteOnly 改成Off看看

#13


IIS的问题吧,吧IIS改一下访问权限。

#14


先把<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> 
改成:<customErrors mode="Off" /> 

看看具体错误,别的人都在扯蛋,看不到具体病因,就在乱开药了

#15


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

#16



<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms loginUrl="default.aspx" name=".computer" timeout="7200"></forms>
</authentication>
<compilation defaultLanguage="c#" debug="true">
      <assemblies>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <!--

        -->
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
      </assemblies>

#17


一开始就把<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>   
改成<customErrors mode="Off" /> 了,但是没用的  

应该是IIS的访问权限的问题,但是怎么改呢


#18


RemoteOnlyg改成off试试.在ie中设置匿名登录.把安全级别设置中低.
需要为虚拟目录配置ASP.net账号(XP环境)、NetWork Service账号(2003环境)数据库和操作系统都需要配置帐号  

#19


把你的web.conf中错误配置节点放开,看看到底是什么错误啊

#20


引用 17 楼 fengrengui 的回复:
一开始就把 <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>     
改成 <customErrors mode="Off" />  了,但是没用的   

应该是IIS的访问权限的问题,但是怎么改呢 

改了之后他又显示什么错误你贴上来

#21


英克系统?

#22


是全局文件global的错误,你将其CS文件也上传上去就没事情了!

#23


IIS的设置问题!你允许让他运行脚本和可执行程序!

#24


Server Error in '/sds' 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> 

你看到的这些是在客户端看到的,你可以在服务器上流览一下那个网页,就能看到是什么问题了。也不一定是你说的“权限”什么的问题,祝你好运

#25


问题已解决
我自己都不知道怎么解决的,稀里糊涂就好了....但愿以后不要再遇到

#26


这个问题我帮你回答好了,是编码问题.

#27


是你iis 出问题了  重启一下 iis 就好了 应该和代码没有关系 

有的时候 从新安装一下iis才能好用

#28


引用 27 楼 wcy1978 的回复:
是你iis 出问题了  重启一下 iis 就好了 应该和代码没有关系  

有的时候 从新安装一下iis才能好用


怎么可能,这个首先是代码的问题

#29


该回复于2014-12-05 18:55:38被版主删除

#30


可能是IIS设置的问题了,你在ASP.NET那边版本设为2.0,他默认是1.1的

#31


估计是IIS的问题

#32


同意23楼
我以前碰到过,跟服务器提供商协商后就解决了
用自己的服务器也是按23楼的说法弄好的

#33


运行脚本和可执行程序?
安全性不好吧

#34


1、需要为虚拟目录配置ASP.net账号(XP环境)、NetWork Service账号(2003环境)可读写权限。 
在所在站点右键点击-权限 加上 IIS_WPG组的读权限
2、可能需要根据Web.config将相关目录设置成虚拟主机目录(此步骤可能非必须步骤)

#35


假如IIS不是自己的呢?
我也出现这个问题了 急死了

#36


啊哦 不是自己的联系供应商

#37