Groups > Microsoft > Microsoft MMC > Re: App.config for MMC snapins for adding assemblies




Re: App.config for MMC snapins for adding assemblies

Re: App.config for MMC snapins for adding assemblies
Mon, 14 Jan 2008 14:27:47 +020
I guess you should put in mmc.exe config, it worth a try, but I am not sure.

"Anil" <Anil@discussions.microsoft.com> wrote in message 
news:29539AA6-5E69-4186-BB85-53DE55A0156C@microsoft.com...
> hi,
>
> I have a requirement where I need to use our utilities DLL for MMC 3.0
> snapin application. This dll is also used by many of our applications. So
> placing the dll in the same directory as snapin is not a good option for 
> us.
>
> Is there anyway I can add the dll to app.config? For other applications, 
> we
> are trying to add following in app.config file and it works without any
> issues.
>
> <runtime>
> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
> <!-- Product Handling Messages DLL -->
> <dependentAssembly>
> <assemblyIdentity name="ProductHandling.Messages"  
culture="neutral"
> publicKeyToken="31bf3856ad364e35"/>
> <codeBase version="4.0.0.0"
> href="FILE://D:/dll/ProductHandling.Messages.dll"/>
> </dependentAssembly>
> </runtime>
>
> But creating an app.config for MMC snapin and adding the above XML does 
> not
> load the DLL.
>
> Can we have App.config for MMCs to load binaries from <runtime>
section. 
> If
> not what are the other options? GACing is not a good option for us.
>
> Thanks,
> Anil 

Post Reply
about | contact