游戏技术文章

Server Error in '/' Application. erro:40【第二次修正140121】

时间:2015-9-29 17:29:44  作者:棋牌资源网  来源:棋牌资源网  查看:9021  评论:0
内容摘要:解决方法: 方法一:配置错误在网站目录下的Web.config里,连接数据库ip地址、数据库帐号、密码,可能没写好。我是因为改了SQL默认端口,然后我把 " Data Source=IP " 里的IP直接用"点"代替。举例:<...
解决方法: 

方法一:配置错误

在网站目录下的Web.config里,连接数据库ip地址、数据库帐号、密码,可能没写好。

我是因为改了SQL默认端口,然后我把 " Data Source=IP " 里的IP直接用"点"代替。

举例:<add key="DBPlatformManager" value="Data Source=.; Initial Catalog=数据库名DB; User ID=明文帐号; Password=明文密码; Pooling=true"/>

方法二:权限错误

1.我的电脑 -- 右键 -- 管理 --用户管理 -- 用户 , 看看ISURE等用户是否启用。

2.在文件存放物理路径找到文件夹,给文件夹everyone用户权限。如下图。

Server_Error_in_'/'_Application._erro:40【第二次修正140121】

以下是现实显示错误信息:

[html] view plaincopy在CODE上查看代码片派生到我的代码片
 
  1. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  
  2. Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)  
  3. Source Error:  
  4.   
  5. An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
  6. Stack Trace:  
  7.   
  8. [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]  
  9.    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5005406  
  10.    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234  
  11.    System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity) +341  
  12.    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject) +129  
  13.    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout) +239  
  14.    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +195  
  15.    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +232  
  16.    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185  
  17.    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +33  
  18.    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +524  
  19.    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66  
  20.    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +479  
  21.    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +108  
  22.    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126  
  23.    System.Data.SqlClient.SqlConnection.Open() +125  
  24.    Game.Kernel.DbHelper.ExecuteDataset(CommandType commandType, String commandText, DbParameter[] commandParameters) +267  
  25.    Game.Kernel.DbHelper.ExecuteDataset(String commandText) +50  
  26.    Game.Kernel.DbHelper.ExecuteObjectList(String commandText) +61  
  27.    Game.Data.NativeWebDataProvider.GetTopNewsList(Int32 typeID, Int32 hot, Int32 elite, Int32 top) +487  
  28.    Game.Facade.NativeWebFacade.GetTopNewsList(Int32 typeID, Int32 hot, Int32 elite, Int32 top) +61  
  29.    Game.Web.Index.BindNewsData() +66  
  30.    Game.Web.Index.Page_Load(Object sender, EventArgs e) +82  
  31.    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14  
  32.    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35  
  33.    System.Web.UI.Control.OnLoad(EventArgs e) +91  
  34.    Game.Facade.UCPageBase.OnLoad(EventArgs e) +44  
  35.    System.Web.UI.Control.LoadRecursive() +61  
  36.    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1966  
  37.   
  38. Version Information: Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1   
  39.  

标签:网狐棋牌游戏 莱恩莱茵棋牌 

欢迎加入VIP,【VIP售价:只要288元永久VIP会员】畅享商业棋牌游戏程序下载,点击开通!

下载说明


☉本站所有源码和资源均由站长亲自测试-绝对保证都可以架设,运营!
☉如源码和资源有损坏或所有链接均不能下载,请告知管理员,

☉本站软件和源码大部分为站长独资,资源购买和收集,放心下载!

☉唯一站长QQ:1004003180  [人格担保-本站注重诚信!]

☉购买建议E-mail:1004003180@qq.com   源码收购 E-mail:1004003180@qq.com    

☉本站文件解压密码  【文章内都自带解压密码,每个密码不同!】


本站提供的所有源码,均来源站长提供,仅学习交流 浙ICP备09009969号

由此产生不良后果和法律责任与本站无关,如果侵犯了您的版权,请来信告知 1004003180@qq.com 将及时更正和删除! 

Copyright © 2008-2024 棋牌资源网,你身边的棋牌资源下载站    All Rights Reserved