Help with strong naming .net dlls

F

fahd

Hi,

I am trying to use a particular dll bought from a company that has a
strong name. As a consequence had to give a strong name to all the
dlls involved in the project. Im also using the following microsoft
application block dlls

Microsoft.Practices.EnterpriseLibrary.Caching.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

------------------------------------------------------------------------------------------------------------
so I had them strong named using mycompany.snk key and then complied
each, which went successful. And once I referenced them properly in
the project it compiled without any problems. So far so good.
However when I access the Cache Factory while loading the application
I get hte following error:

An unhandled exception of type 'System.IO.FileNotFoundException'
occurred in microsoft.practices.enterpriselibrary.configuration.dll

Additional information: File or assembly name
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, or
one of its dependencies, was not found.

------------------------------------------------------------------------------------------------------------

Any ideas how why this is happening and how may I go around it....

Thanks a lot.
Fahd
 
S

Shaun C McDonnell

Fahd,

Microsoft.Practices.EnterpriseLibary.Configuration is not able to find the
Logging dll OR it is not able to find an assembly that the Logging dll
references. Use the ildasm tool on the Logging DLL to see what the problem
is.
 
F

fahd

Thanks for the quick reply Shaun,

Using the ildasm tool and looking in the manifest of logging DLL it
seems that there is a mention of the configuration dll . is there a
path written somewhere in manifest of the location of the dlls
referred too?

thanks
 
F

fahd

I've done that as well. But no luck!

So all of these

Microsoft.Practices.EnterpriseLibrary.Caching.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

are in the GAC signed with the same public key token.
 
F

fahd

I've done that as well. But no luck!

So all of these

Microsoft.Practices.EnterpriseLibrary.Caching.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

are in the GAC signed with the same public key token.
 
F

fahd

I've done that as well. But no luck!

So all of these

Microsoft.Practices.EnterpriseLibrary.Caching.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

are in the GAC signed with the same public key token.
 
F

fahd

I've done that as well. But no luck!

So all of these

Microsoft.Practices.EnterpriseLibrary.Caching.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

are in the GAC signed with the same public key token.
Ive managed to resolve it now it was an unsigned entry in one of the
config files...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top