源码信息

最新源码评论

  • 评论者:piovt25728
    piovt25728(用户) 发表于:2008-05-06 11:56:00

    “/AjaxMail”应用程序中的服务器错误。 <i>在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错)</i> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif"><b>说明: </b>执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 <br/><br/><b>异常详细信息: </b>System.Data.SqlClient.SqlException: 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错)<br/><br/><b>源错误:</b> <br/><br/><table class="t_table" cellspacing="1" cellpadding="4" style="width:98%;background: #ffffcc;"><tr><td>行 36: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public SqlDataReader GetMailProfile()行 37: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<font color="red">行 38: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return DataCommon.GetDataByReader(&quot;Pr_GetAjaxSystemConfig&quot;);</font>行 39: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}行 40: </td></tr></table><br/><b><font face="Verdana">源文件: </font></b>e:\ASPX\AjaxMail\App_Code\Mail.cs<b><font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;行: </font></b>38 <br/><br/><b><font face="Verdana">堆栈跟踪:</font></b> <br/><br/><table class="t_table" cellspacing="1" cellpadding="4" style="width:98%;background: #ffffcc;"><tr><td>[SqlException (0x80131904): 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错)]&nbsp;&nbsp; System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735043&nbsp;&nbsp; System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188&nbsp;&nbsp; System.Data.SqlClient.TdsParser.Connect(Boolean&amp; useFailoverPartner, Boolean&amp; failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup) +820&nbsp;&nbsp; System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628&nbsp;&nbsp; System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170&nbsp;&nbsp; System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359&nbsp;&nbsp; System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28&nbsp;&nbsp; System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424&nbsp;&nbsp; System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66&nbsp;&nbsp; System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496&nbsp;&nbsp; System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82&nbsp;&nbsp; System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105&nbsp;&nbsp; System.Data.SqlClient.SqlConnection.Open() +111&nbsp;&nbsp; Web2ASPNET2.OperateSqlServer.OperateDatabase.CreateSqlCommand(String procName, SqlParameter[] prams) in D:\Web2.0ASP.NET2.0\Web2ASPNET2\OperateSqlServer\OperateDatabase.cs:137&nbsp;&nbsp; Web2ASPNET2.OperateSqlServer.OperateDatabase.RunProc(String procName, SqlDataReader&amp; dr) in D:\Web2.0ASP.NET2.0\Web2ASPNET2\OperateSqlServer\OperateDatabase.cs:300&nbsp;&nbsp; Web2ASPNET2.OperateSqlServer.DataCommon.GetDataByReader(String procName) in D:\Web2.0ASP.NET2.0\Web2ASPNET2\OperateSqlServer\DataCommon.cs:51&nbsp;&nbsp; Web2ASPNET2.ASPNET2AjaxMail.Mail.GetMailProfile() in e:\ASPX\AjaxMail\App_Code\Mail.cs:38&nbsp;&nbsp; ASP.global_asax.Session_Start(Object sender, EventArgs e) in e:\ASPX\AjaxMail\Global.asax:27&nbsp;&nbsp; System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +2163150&nbsp;&nbsp; System.Web.SessionState.SessionStateModule.CompleteAcquireState() +154&nbsp;&nbsp; System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +542&nbsp;&nbsp; System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +90&nbsp;&nbsp; System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +155</td></tr></table><br/><b><font face="Verdana">版本信息:</font></b> Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42 </font>

    4 个回复
    • 回复者:51aspx
      51aspx(编辑)回复于:2009-04-08 08:17:00

      <a href="http://bbs.51aspx.com/showtopic-32-1.html" target="_blank">http://bbs.51aspx.com/showtopic-32-1.html</a><br/>最后一条

    • 回复者:gxagdf
      gxagdf(作者)回复于:2008-05-06 12:41:00

      数据库是SQL 2005的!!!

    • 回复者:gxagdf
      gxagdf(作者)回复于:2008-05-06 12:42:00

      看看你的连接字符串!!!

    • 回复者:piovt25728
      piovt25728(用户)回复于:2008-05-06 13:55:00

      我是用的sql2005的,连接字符串是这样的:<br/>&lt;connectionStrings&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name=&quot;SQLSERVERCONNECTIONSTRING&quot; connectionString=&quot;data source=.\SQL2005;user id=sa;pwd=;database=Web2ASPNET2DB&quot; providerName=&quot;System.Data.SqlClient&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/connectionStrings&gt;<br/><br/>我没设密码!