post the detailed error message
解决方案 »
- 关于获取checkboxfor里面的值进行判断
- windows form认证那些究竟是什么意思?
- 在线求救,高手请进。一个不明原因的BUG
- 大家帮忙看看这个删除有什么错误????
- 在web.config配置了数据库连接,可他在.NET中怎么连上呢?
- 地址栏取值?
- 怎样卸掉vs.net.2003版中自带的水晶报表?我要装10,在线急等!
- .NET读取oracle西欧字符集数据库时汉字是乱码
- 怎么实现把页面上的datagrid/datalist上显示的数据导入到excel?
- 在asp.net中,我用window.open()的开一个登陆页login.aspx,宽为340,高为340的窗口;???急!高分相送!
- 急:如何触发TreeView控件TreeView1_SelectedIndexChange事件
- 再提疑问,入门
--------------------------------------------------------------------------------常规网络错误。请检查您的网络文档。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: 常规网络错误。请检查您的网络文档。源错误:
行 79: {
行 80: System.Data.SqlClient.SqlConnection mdb=new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["publicsqlstring"]);
行 82: }
行 83:
System.Configuration.ConfigurationSettings.AppSettings["publicsqlstring"]是放在web.config里的连接字串 没有错误。
Response.Write("****" + System.Configuration.ConfigurationSettings.AppSettings["publicsqlstring"] + "****"); to make sure it is not empty?
是不会空的 整个工程都用这个连接,
server=zbh;uid=sa;pwd=wec@@77;Database=yw错误源是 80 行
is not null, SqlConnection mdb=new SqlConnection(...)cannot cause general network error, since it just creates an object this error normally happens when you try to call SqlConnection's Open() method, which draws an open connection from the connection pool if one is availableWhat protocols are you using? look into Client/Server Network Utility program in the Microsoft SQL Server group to make sure TCP/IP is being enabledalso see
PRB: SQL Application Role Errors with OLE DB Resource Pooling
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q229564