2011-12-05 17 views
0

にプロジェクトを変換した後、ファイルまたはアセンブリ「Interop.Shell32」またはその依存関係の1つをロードできませんでした。行き方:変換後のファイルまたはアセンブリ「Interop.Shell32」またはその依存関係の1つをロードできませんでした。 .NET 4.0へのプロジェクト これは、.NET3.5で正常に動作するために使用されました。 32ビットの実行可能ファイルを許可するようにIIS 7プールを設定しました。 前と同じように、私のプロジェクトは「任意のCPU」としてターゲットに設定されています 誰もこれまでにこのエラーに直面しましたか?私は別のものを見ているエラーを読み込めませんでしたが、まったくこのようなものはありません。行き方:.NET 4.0

=== Pre-bind state information === 
LOG: User = IIS APPPOOL\ASP.NET v4.0 
LOG: DisplayName = Interop.Shell32 
(Partial) 
WRN: Partial binding information was supplied for an assembly: 
WRN: Assembly Name: Interop.Shell32 | Domain ID: 11 
WRN: A partial bind occurs when only part of the assembly display name is provided. 
WRN: This might result in the binder loading an incorrect assembly. 
WRN: It is recommended to provide a fully specified textual identity for the assembly, 
WRN: that consists of the simple name, version, culture, and public key token. 
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. 
LOG: Appbase = file:///C:/myproj_sc/Dev/Dev/Src/Roms/myproj.Roms.Web/ 
LOG: Initial PrivatePath = C:\myproj_sc\Dev\Dev\Src\Roms\myproj.Roms.Web\bin 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: C:\myproj_sc\Dev\Dev\Src\Roms\myproj.Roms.Web\web.config 
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. 
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/myproj.roms.web/7469284e/a2a73c18/Interop.Shell32.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/myproj.roms.web/7469284e/a2a73c18/Interop.Shell32/Interop.Shell32.DLL. 
LOG: Attempting download of new URL file:///C:/myproj_sc/Dev/Dev/Src/Roms/myproj.Roms.Web/bin/Interop.Shell32.DLL. 
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated. 

machine.configに設定できるものはありますか?

答えて

3

あなたが参照としてShell32はが必要な場合は、一番簡単な方法は、おそらく再度追加されます。おそらく何が起こった

は、相互運用ファイルが古いプロジェクトのbinディレクトリに生成された、これはアップグレードに一掃されたことです。

参照を削除して参照すると、interopファイルが再生成されます。

関連する問題