1

ローカル マシンで EntityFramework を 4.1 から 5 にアップグレードし、.NET Framework を 4.5 にアップグレードしましたが、すべて問題なく動作しますが、Azure で変更を公開すると、次のエラーが表示されます。

Server Error in '/' Application.

Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

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.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
4

2 に答える 2

2

そのアセンブリのプロジェクト参照を確認してください。その参照のプロパティでコピーローカルがtrueに設定されていることを確認してください。また、Azure SDKとEFをアップグレードすると、プロジェクトが参照するアセンブリのバージョンに影響を与える可能性があります。プロジェクトでも正しいバージョンが参照されていることを確認してください。

問題の原因となる可能性のあるものを見つけました->特にプロジェクトをアップグレードする場合:http: //ivarunsingh.blogspot.com/2011/12/microsoftbuildutilitiesv35-report.html

于 2012-11-02T18:36:18.553 に答える
0

Windows Server 2012イメージに展開していますか(.NET 4.5を使用しているようです)?AzureSDK1.8およびOSVersion=3(新しいSDKの新しいクラウドサービスプロジェクトのデフォルト)を使用する場合...

Windows Server2012では.NET3.5ライブラリが有効になっていないため、その機能を有効にする必要があります(インストールすると思います)。.NET3.5の有効化を自動化する必要がある場合があります。

于 2012-11-03T18:46:29.503 に答える