Re: No-Touch deployment - IEExec - Duplicate Entries in Assembly Cache - Strongly Typed Datasets - InvalidCastException

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Paul Linhardt (linhardt_at_aol.com)
Date: 04/28/04


Date: 28 Apr 2004 09:41:13 -0700

In case anyone out there (besides Chris) is interested, I did find a
solution to the problem.

IEExec was loading two copies of the assembly into the download cache
(one ending in '.exe' and one ending in '.EXE'). The download cache
which hashes the name, date, etc. for identification decided they were
different even though the code was exactly the same. If I ran
'myClientApp.EXE' from a browser, it would run fine, but if I ran
'myClientApp.exe' I would get an InvalidCastException (somehow there
was a mismatch between the strongly typed dataset definition in the
client & web service).

Anyway, the solution was relatively simple and painless. I made my
client app assembly strongly named by adding a key pair:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcreatingkeypairforuseincreatingstrongly-namedassembly.asp

Strongly Named assemblies are only downloaded once by IEExec. Problem
solved.

-Paul



Relevant Pages

  • Getting Strongly Named Flash Shockwave dlls for use with No-Touch Deployment Smart Client
    ... Client (e.g. No-Touch deployment). ... I found that unless I strongly named my application assembly, IEexec ... Strongly named assemblies cannot contain non-strongly named dll's. ... TlbImp error: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: AppDomain and Unload
    ... then the download needs to overwrite the DLL. ... Would you mind explainging what you mean by 'loading assembly into the ... > default appdomain, not the remote appdomain that you just created. ... > need to create a class that will proxy the loading/unloading of assemblies ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Assembly Download Cache - Not Working "As Advertised"
    ... Download Cache not really caching things? ... I have a winforms based usercontrol that I am displaying in IE6. ... Internet Explorer seems to either re-build or fetch the user control ... Has anybody discovered how to *force* IE to use the assemblies in the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Getting exported type
    ... loading additional assemblies was one of the main causes - because to achieve ... probably requires running some custom code at the debuggee site. ... I'm just writing a managed API for loading metadata ... > debuggee the story is still the same...no debugger API for it. ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Mshsnapin (part 1): usage of mshsnapin commands.
    ... However, leaving aside the performance implications of loading those assemblies, there is a reliability issue. ... There are a few things to know about how Managed Code loads assemblies. ... Thomas Lee ...
    (microsoft.public.windows.server.scripting)