スタンドアロンWindows 2008サーバーから、他のいくつかのWebアプリケーションの運用環境にある2012 R2サーバーに古いWebアプリケーションを移動しようとしています。接続文字列がSQL Serverに接続するときにエラーが発生する
専用のSQL Server 2012にSQL Serverデータベースを移動し、アプリケーションの接続と管理のためのドメインユーザーを設定しました。私は以下のエラーが表示され続けますが、なぜユーザーが接続できないのか分かりません。
<add name="CslaExConnection"
connectionString="Database=Databasev3;Server=Server\Instance,50000;User=Domain\User;[email protected];Enlist=false;"
providerName="System.Data.SqlClient" />
<add name="ConnectionString"
connectionString="Data Source=Server\Instance,50000;Initial Catalog=Databasev3;Persist Security Info=True;User ID=Domain\User;[email protected]"
providerName="System.Data.SqlClient" />
<add name="ConnectionString1"
connectionString="Data Source=Server\Instance,50000;Initial Catalog=Databasev3;Persist Security Info=True;User ID=Domain\User;[email protected]"
providerName="System.Data.SqlClient" />
<add name="Tools"
connectionString="Data Source=Server\Instance,50000;Initial Catalog=Databasev3;Persist Security Info=True;User ID=Domain\User;[email protected]"
providerName="System.Data.SqlClient"/>
<add name="MySQLConnection"
connectionString="Server=127.0.0.1;Database=MySQLDB;Uid=root;[email protected];Port=3306;Allow Zero Datetime=True;"
providerName="MySql.Data.MySqlClient"/>
<add name="CslaExConnectionSynergyContact"
connectionString="Database=goldmine;Server=Server\Instance,50000;User=Domain\User;[email protected];Enlist=false;"
providerName="System.Data.SqlClient" />
<add name="ConnectionString2"
connectionString="Data Source=Server\Instance,50000;Initial Catalog=Databasev3;Persist Security Info=True;User ID=Domain\User;[email protected]"
providerName="System.Data.SqlClient"/>
そして、これは私がアプリケーションにログインしたときに、私は受信エラーです:
Server Error in '/md3' Application.
Login failed for user 'domain\user'.
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.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'domain\user'.
Source Error:
Line 45: PagingListFilter filter = new PagingListFilter(info);
Line 46: filter.PageSize = 0;
Line 47: GenericPagedList list = appUser.GetList(filter);
Line 48: DataTable dt = list.Results;
Line 49: if (dt.Rows.Count > 0)Source File: d:\HTTP\wwwroot\synergytools\md3\loginold.aspx.cs Line: 47
Stack Trace:
[SqlException (0x80131904): Login failed for user 'domain\user'.] System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117 System.Data.SqlClient.SqlConnection.Open() +122 DFramework.Database.Query.ExecutePagedCommand() in D:\DCPL\Framework\DFramework\Database\Query.cs:508
[QueryException: SELECT COUNT(*) FROM (SELECT * FROM vwAppUserList
WHERE OldUserId = @OldUserId
) count__Query
@OldUserId = 111
]
DFramework.Database.Query.ExecutePagedCommand() in D:\DCPL\Framework\DFramework\Database\Query.cs:560
DFramework.Business.BusinessBase.ListData(Query query) in D:\DCPL\Framework\DFramework\Business\BusinessBase.cs:495
DFramework.Business.BusinessBase.List(Query query) in D:\DCPL\Framework\DFramework\Business\BusinessBase.cs:187
DFramework.UI.BusinessBase`1.GetList(PagingListFilter filter) in D:\DCPL\Framework\DFramework.UI\BusinessBase.cs:73
loginold.GetAppUserId(Int32 oldUserId) in d:\HTTP\wwwroot\synergytools\md3\loginold.aspx.cs:47
loginold.Page_Load(Object sender, EventArgs e) in d:\HTTP\wwwroot\synergytools\md3\loginold.aspx.cs:22
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8015
ユーザーに接続する権限がありますか?彼らはデータベースにアクセスできますか?実際に設定ファイルに同じ接続文字列が7回あるのですか?または投稿の詳細を難読化するだけですか? –
SQL Serverのエラーログには、ログインが失敗した理由(具体的には、メッセージテキストとエラーメッセージの「状態」番号)に関する詳細情報が含まれている必要があります。 –