dllhost.exe can't locate the assembly

  • Thread starter Thread starter Jim Hsu
  • Start date Start date
J

Jim Hsu

I use DevPath for developing w/ my .net serviced component.

however, dllhost.exe can't locate the assembly, pasted below is the
fusionLog.
the assembly debug folder is added, however, there are "key" issue...
can anyone help,
somehow the developing experiences w/ .Net Serviced component has some room
to improve...
unfortunately, that's our major stages...

Jim

"*** Assembly Binder Log Entry (2004/6/2 @ ¤W¤È 02:03:43) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable C:\WINDOWS\System32\dllhost.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = CbfxAppAdapter, Version=1.0.1564.32892, Culture=neutral,
PublicKeyToken=bfd31d3c1f8305ff
(Fully-specified)
LOG: Appbase = C:\WINDOWS\System32\
LOG: DEVPATH =
D:\J\depot\Projects\taishinbank.com.tw\CBFX\Source\CbfxAppAdapter\bin\Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===

LOG: Processing DEVPATH.
WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
LOG: Found assembly in DEVPATH location
[D:\J\depot\Projects\taishinbank.com.tw\CBFX\Source\CbfxAppAdapter\bin\Debug
\CbfxAppAdapter.DLL], but the assembly reference did not match the assembly
definition found.
LOG: Unable to find assembly in DEVPATH.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CbfxAppAdapter, Version=1.0.1564.32892,
Culture=neutral, PublicKeyToken=bfd31d3c1f8305ff
LOG: Cache Lookup was unsuccessful.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter/CbfxAppAdapter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter/CbfxAppAdapter.EXE.
LOG: All probing URLs attempted and failed.

"
 
If you're expecting it to be using the assembly in DEVPATH, it's telling you
that the one it found does not match the one it's looking for. When the
runtime wants an assembly, it wants the name and the public key token and
the assembly version to all match the requirements. Your assembly version
looks as if you're using 1.0.* so every time you build your assembly you'll
get a different version that won't match the previous one. There's also a
warning about a public key token mismatch. I suspect that maybe you're
looking at the file names and thinking "it's there, why won't it use it?"
and the answer is that you need to match name and version and public key
token.
--
Phil Wilson [MVP Windows Installer]
----
Jim Hsu said:
I use DevPath for developing w/ my .net serviced component.

however, dllhost.exe can't locate the assembly, pasted below is the
fusionLog.
the assembly debug folder is added, however, there are "key" issue...
can anyone help,
somehow the developing experiences w/ .Net Serviced component has some room
to improve...
unfortunately, that's our major stages...

Jim

"*** Assembly Binder Log Entry (2004/6/2 @ ¤W¤È 02:03:43) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable C:\WINDOWS\System32\dllhost.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = CbfxAppAdapter, Version=1.0.1564.32892, Culture=neutral,
PublicKeyToken=bfd31d3c1f8305ff
(Fully-specified)
LOG: Appbase = C:\WINDOWS\System32\
LOG: DEVPATH =
D:\J\depot\Projects\taishinbank.com.tw\CBFX\Source\CbfxAppAdapter\bin\Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===

LOG: Processing DEVPATH.
WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
LOG: Found assembly in DEVPATH location
[D:\J\depot\Projects\taishinbank.com.tw\CBFX\Source\CbfxAppAdapter\bin\Debug
\CbfxAppAdapter.DLL], but the assembly reference did not match the assembly
definition found.
LOG: Unable to find assembly in DEVPATH.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CbfxAppAdapter, Version=1.0.1564.32892,
Culture=neutral, PublicKeyToken=bfd31d3c1f8305ff
LOG: Cache Lookup was unsuccessful.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter/CbfxAppAdapter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/System32/CbfxAppAdapter/CbfxAppAdapter.EXE.
LOG: All probing URLs attempted and failed.

"
 
Back
Top