我的网站做完传到空间 一开始没有问题但是过一段时间就会报错,网站还没有绑定到域名上只是用的临时域名测试的,下面是网页所报的错误,网上的解决方法我都试过了 可是还是不行 希望大家帮帮我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>下面是我的web.config配置<?xml version="1.0"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="ConStringEncrypt" value="false"/>
<add key="ConnectionString" value="server=远程服务器;uid=sa;pwd=*****;database=sql"/>
<add key="image" value="default.jpg"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;"/>
<add key="FCKeditor:BasePath" value="~/Fckeditor/"/>
<add key="FCKeditor:UserFilesPath" value="~/Files/"/>
<add key="DAL" value="Jlsh.SQLServerDAL"/>
</appSettings>
<system.web>
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" />
<customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPage/error.htm">
<error statusCode="403" redirect="~/ErrorPage/error.htm"/>
<error statusCode="404" redirect="~/ErrorPage/error.htm"/>
</customErrors>
<sessionState mode="InProc" timeout="30"></sessionState>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
</system.web>
</configuration>大家帮帮忙 谢谢了 在线等
--------------------------------------------------------------------------------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>下面是我的web.config配置<?xml version="1.0"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="ConStringEncrypt" value="false"/>
<add key="ConnectionString" value="server=远程服务器;uid=sa;pwd=*****;database=sql"/>
<add key="image" value="default.jpg"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;"/>
<add key="FCKeditor:BasePath" value="~/Fckeditor/"/>
<add key="FCKeditor:UserFilesPath" value="~/Files/"/>
<add key="DAL" value="Jlsh.SQLServerDAL"/>
</appSettings>
<system.web>
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" />
<customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPage/error.htm">
<error statusCode="403" redirect="~/ErrorPage/error.htm"/>
<error statusCode="404" redirect="~/ErrorPage/error.htm"/>
</customErrors>
<sessionState mode="InProc" timeout="30"></sessionState>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
</system.web>
</configuration>大家帮帮忙 谢谢了 在线等
解决方案 »
- 事务(进程 ID 109)与另一个进程被死锁在 锁 _ 通信缓冲区 资源上,并且已被选作死锁牺牲品。请重新运行该事务.
- 帮忙解决个问题,谢谢
- DataGrid删除问题
- 求一段用存储过程实现高级搜索代码?
- 怎么求得2个日期相差多少个月???
- 在 win2003 访问win2000下的oracle数据库出现问题。
- 在.net中的msdn中有哪些好的例子?
- ——挑战VS2005 高手的问题!!——在线等待!
- 如何判断表的存在?
- DropDownList的传回值的函数是什么啊?DropDownList1.????=dr["xb"].ToString();
- DataList + session的问题
- RadionButtonList的问题
<customErrors mode="Off" />
看看报的什么错误
是的,每次修改了都需要把有变动的dll文件再传一遍