エラーなしでコンパイルされたアプリケーションをローカル マシンにデプロイした後、Internal Server 500 エラーが発生します。アプリケーションがデプロイされているサーバーには大量のセキュリティがあるため、すべてのディレクトリに対して読み取りおよび書き込みアクセスを指定する必要があります。このアプリケーションは、Windows 認証と Web サービスを使用して、プロキシ経由でドロップダウン ボックスに入力します。Web サービスへの接続に問題があるか、ファイルの読み取り/書き込みセキュリティに問題があるか、アクティブ ディレクトリ認証に問題がある可能性があります。
次のコードでエラーの原因に関する詳細情報が表示されるように、web.config を編集しました。
<system.web>
<customErrors mode ="Off"></customErrors>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
<trace enabled="true" pageOutput="true" />
<authentication mode="Windows"/>
<authorization>
<allow roles="alg\ADMIN_USER" />
<deny users="*" />
</authorization>
<client>
<endpoint address="http://63.236.108.91/aCompService.svc" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IAcompService" contract="aComp_ServiceReference.IAcompService"
name="BasicHttpBinding_IAcompService" />
</client>
次のエラーが表示されます。
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be
displayed.
エラーの原因を示すスタック トレースを確認したいと思います。
完全なスタック トレースを表示するには、web.config ファイルに何を入力すればよいですか?
Web サイトで、ローカルで実行するものから展開するものに変更する必要があるものは何ですか?
更新 - 展開担当者がセキュリティの読み取り/書き込み制限を解除しました。
Parser Error Message: The connection name 'ApplicationServices' was not found in
the applications configuration or the connection string is empty.
エラーを取り除くために、72 行目で宣言されている AspNetSqlRoleProvider を削除しましたが、それでもエラーが発生しました。次に、AspNetWindowsTokenRoleProvider とすべてのプロバイダー情報を削除したところ、次のエラーが発生しました。
Exception message: Default Role Provider could not be found.
私たちのホスティングはすべてリモートで行われますが、サーバー担当者はローカル Web サーバーにリモートでログインできます。サーバー担当者がファイルを適切な場所に投稿しなかったようです。今、私は今、エラーが発生します:
There is a problem with the resource you are looking for, and it cannot
be displayed.
これらの問題を解決する方法についてのアイデアはありますか?
ご覧いただきありがとうございます。