Strong name Error

G

Guest

I am using C# in VS2005 and trying to make use of the "Data Access
Application Block" version 2

I have created a small test application that to do the testing.

If my application and the Common, Object and Dat modules are not signed DAAB
runs OK but as soon as I sign them I get the following error:


**********************************************************************
An error occurred creating the configuration section handler for
dataConfiguration:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
located assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)

(C:\Sauce\WindowsApplication17\WindowsApplication17\bin\Debug\WindowsApplication17.vshost.exe.config line 4)
**********************************************************************

I am just learning about Strong Names etc so there is a lot I don't know
(obviously)

I am creating the key pair in VS2005 in the Properties\Signing section. I am
not adding it to AssemblyInfo.cs as i was told there is no need to in VS2005


Any help in solving this problem would be greatly appreciated


Regards

John
 
G

Guest

You app can't load Microsoft.Practices.EnterpriseLibrary.Data assebly dll,
the reason is that it can't be found. You need specify location.
I recomend to download Hands-On Lab and see the samples
http://www.microsoft.com/downloads/...d0-05ea-4a44-ae78-f5e4df6208af&displaylang=en
I am using C# in VS2005 and trying to make use of the "Data Access
Application Block" version 2

I have created a small test application that to do the testing.

If my application and the Common, Object and Dat modules are not signed DAAB
runs OK but as soon as I sign them I get the following error:


**********************************************************************
An error occurred creating the configuration section handler for
dataConfiguration:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
located assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)

(C:\Sauce\WindowsApplication17\WindowsApplication17\bin\Debug\WindowsApplication17.vshost.exe.config line 4)
**********************************************************************

I am just learning about Strong Names etc so there is a lot I don't know
(obviously)

I am creating the key pair in VS2005 in the Properties\Signing section. I am
not adding it to AssemblyInfo.cs as i was told there is no need to in VS2005


Any help in solving this problem would be greatly appreciated

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
G

Guest

Thankyou for your help. I have just downloaded the lab. However, I am having
difficlty understanding why it worked before the modules were signed then
didn't work after.
 

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