2017-11-02 19 views
0

私は現在、.NET Framework 4.6.1でMVC5アプリケーションを使用していますが、Windowsコンテナを使用しています。要件の1つは、アプリケーション用のドッカー画像を作成することです。私はmicrosoft/aspnet:4.6.2イメージを正常に取り出し、コンテナにWebアプリケーションをデプロイしました。 In Dockerfile SQL Serverがこのポートを通じてホストにアクセスできることを確認するために、 "EXPOSE 1433"を追加しました。 問題はSQL接続にあります。確立された接続は、次のエラーにつながる:dockerコンテナからSQL Serverにアクセスする方法は?

System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' 

私は、接続文字列が有効統合セキュリティであることを言及する必要があります。私は、アプリケーションプールIDを設定しようとしています:

Set-ItemProperty IIS:\AppPools\DefaultAppPool\ -Name processModel -Value @{username='domain\user';password='somepassword';identityType=3 } 

これを、残念ながら、停止したアプリケーションプールの、「サービスが利用できないHTTPエラー503」につながります。 私は3つのイベントを発見したWindowsのイベント・ストアがチェックしている:私は資格情報をチェックして

Application pool DefaultAppPool has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.

Application pool DefaultAppPool has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.

The identity of application pool DefaultAppPool is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number

を、彼らは正しいです。私の考えは、コンテナには独自のプライベートドメインがあるということです。だから私はSqlServerに接続できません。 調査中私はthis articleを見つけました。

誰でもActive Directoryをドッキング・コンテナに設定しようとしましたか?どのようにSQL接続の問題を解決しますか?

答えて

関連する問題