首页 新闻 会员 周边 捐助

网站不发布到IIS上报错

0
悬赏园豆:10 [已解决问题] 解决于 2017-03-17 15:09


“/”应用程序中的服务器错误。

已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: TCP 提供程序, error: 0 - 指定的网络名不再可用。)
 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

 异常详细信息: System.Data.SqlClient.SqlException: 已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: TCP 提供程序, error: 0 - 指定的网络名不再可用。)

源错误:

 

行 77:     </script>
行 78:
行 79:     <title><%=SiteName%></title>
行 80:     <style type="text/css">
行 81:         <!--
 

源文件:  d:\Web\GameWeb\Login.aspx    行:  79

堆栈跟踪:

 

[SqlException (0x80131904): 已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: TCP 提供程序, error: 0 - 指定的网络名不再可用。)]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +6299321
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
   System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) +698
   System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj) +313
   System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket() +58
   System.Data.SqlClient.TdsParserStateObject.ReadBuffer() +30
   System.Data.SqlClient.TdsParserStateObject.ReadByte() +108
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +187
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +53
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean withFailover) +353
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +6319199
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +6319320
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +354
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +703
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +54
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +6320584
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +81
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1657
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +88
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6324007
   System.Data.SqlClient.SqlConnection.Open() +258
   Game.Kernel.DbHelper.ExecuteDataset(CommandType commandType, String commandText, DbParameter[] commandParameters) +123
   Game.Kernel.TableProvider.GetOne(String where) +121
   Game.Kernel.TableProvider.GetObject(String where) +26
   Game.Data.PlatformManagerDataProvider.GetQPAdminSiteInfo(Int32 siteID) +143
   Game.Facade.PlatformManagerFacade.GetQPAdminSiteInfo(Int32 siteID) +26
   Game.Web.Login.get_SiteName() +24
   ASP.login_aspx.__Render__control3(HtmlTextWriter __w, Control parameterContainer) in d:\Web\GameWeb\Login.aspx:79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.HtmlControls.HtmlTitle.Render(HtmlTextWriter writer) +111
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer) +23
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240

akingzhk的主页 akingzhk | 初学一级 | 园豆:177
提问于:2017-03-16 17:52
< >
分享
最佳答案
1

已成功与服务器建立连接,但是在登录过程中发生错误
你看看数据库的连接字符串是否正确成功,调试一下!

收获园豆:10
BUTTERAPPLE | 老鸟四级 |园豆:3190 | 2017-03-16 17:57

发布在本地连接是正常的,本地连接服务器地址也是正常的,发布到服务器就有问题,试了好多方法都不行!

akingzhk | 园豆:177 (初学一级) | 2017-03-16 18:16

@akingzhk: 这种情况,你可以在服务器上连一下数据库看看有没有问题?

劳义 | 园豆:210 (菜鸟二级) | 2017-03-17 10:15
其他回答(1)
1

数据库连接字符串....

吴瑞祥 | 园豆:29449 (高人七级) | 2017-03-16 18:34
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册