473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help with strong naming .net dlls

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.Configuratio n.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.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.configuratio n.dll

Additional information: File or assembly name
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.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

Feb 15 '07 #1
7 1660
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.
--
Shaun McDonnell
..NET Software Architect
"fahd" <fa******@gmail.comwrote in message
news:11*********************@h3g2000cwc.googlegrou ps.com...
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.Configuratio n.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.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.configuratio n.dll

Additional information: File or assembly name
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.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
Feb 15 '07 #2
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

Feb 15 '07 #3
In this case, it would be a good idea to put them into the GAC.

--
Shaun McDonnell
..NET Software Architect
407.902.8238

"fahd" <fa******@gmail.comwrote in message
news:11**********************@v33g2000cwv.googlegr oups.com...
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
Feb 15 '07 #4
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.Configuratio n.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

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

Feb 15 '07 #5
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.Configuratio n.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

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

Feb 15 '07 #6
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.Configuratio n.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll

are in the GAC signed with the same public key token.
Feb 15 '07 #7
On Feb 15, 9:27 pm, "fahd" <fahdb...@gmail.comwrote:
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.Configuratio n.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.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...

Feb 16 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Vijay Sarathi Reddy.G | last post by:
Actually CLR maintaings Strong type naming.What is strong type naming and how CLR maintains Strong type naming? Thanks...
1
by: rob | last post by:
Dear All, We have a fairly big application that has to be converted from VB6 to VB.NET. The goal is to convert one component after the other and do some testing after each step. In a first...
8
by: Jason | last post by:
In my ASP.NET 1.1 solutions, I created several web projects and compiled them each into an assembly. The assembly names reflected the functionality of the feature (Membership.dll, Dues.dll, etc)....
2
by: SStory | last post by:
How can I strong name my assembly if it references 3rd part non-strong named dlls? I just want my part strong named--I don't care about their part. Thanks, Shane
7
by: Bruce Wood | last post by:
I still haven't gotten through the .NET Framework Security tome on my desk. Maybe the folks here can answer a burning question. I want to use strong naming at our organization as a security...
0
by: Usman Jamil | last post by:
Hi I'm working on a project that contains some dlls, services exes written in C# and these dll's using references of some COM's written in VC++ and some external win32 dlls that I dont have the...
1
by: stephen | last post by:
Hi, I am working with Microsoft Configuration Application Blocks and whenever I create a new app and have to use it, I have to reference it and it makes a local copy in the bin directory. so if...
8
by: per9000 | last post by:
Dear readers, I have some problems with strong keys. What I want to do is basically this. A - create an application (f.x. strongHello.dll) with a strong key. B - import the functions of this...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.