1

Visual Studio 2012 で正常に動作する Web フォーム アプリケーションがありますが、VS 2013 で int を実行すると、

System.SystemException occurred
Message: A first chance exception of type 'System.SystemException' occurred in mscorlib.dll
Additional information: The trust relationship between the primary domain and the trusted domain failed.

初期ページをロードするときのスタックトレース用。問題の原因を突き止めようとして、どこから始めればよいかわかりません。同じフレームワーク バージョンで実行され、同じ Web 構成があります。

更新 .... Visual Studio 2012 を切り替えて IIS Express を使用すると、VS 2012 と VS 2013 で同じ例外が発生します。例外を解決するにはどうすればよいですか?

何か案が ?

4

2 に答える 2

2

これは、2013 がcassini Web サーバーを使用せず、代わりに IIS Express を使用するためです。これは、Cassini の代わりに IIS Express を有効にすると、Visual Studio 2012 でも発生する可能性があります。これを修正するには、次の手順に従います。

Visual Studio で Web プロジェクトをクリックし、F4 を押します。

1) 匿名認証を無効にする必要があります

2) Windows 認証を有効にする必要があります

ここに画像の説明を入力

注: これらのいずれかがグレー表示されている場合は、IIS Express Config ファイルにオーバーライドがあることを意味します。

\マイ ドキュメント\IISExpress\config\applicationhost.config

チェック

 <section name="anonymousAuthentication" overrideModeDefault="Allow"/>

また

<section name="windowsAuthentication" overrideModeDefault="Allow" />

詳しくは:

http://msdn.microsoft.com/en-us/magazine/hh288080.aspx

http://www.codegorilla.com/2012/12/how-to-enable-windows-authentication-when-using-iisexpress/

于 2014-04-29T13:55:55.103 に答える