BizTalk Server Orchestration - Referenced assembly does not have a strong name

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2005 > Referenced assembly does not have a strong name





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Referenced assembly does not have a strong name
Aruna

2005-01-21, 5:50 pm

I am trying to reference a C# Class Assembly from BizTalk project but I get
the following compilation error:
"Assembly generation failed.
Referenced assembly, MyAssembly, does not have a strong name."

Now, I have created a strong name by executing the following in
the command window:
sn -k A2100Key.snk

I then changed the AssemblyInfo.cs file of each project
in my solution so that the AssemblyKeyFile attribute reads:
[assembly: AssemblyKeyFile(@"../../../../A2100Key.snk")]
The relative location should be ok as the compiler isn't
giving me any errors that it can't find the file.

But it is giving me an error message for my bizTalk project where i
referenced the assembly. (The BizTalk project itself has strong name.)

"Assembly generation failed.
Referenced assembly, MyAssembly, does not have a strong name."

Can anyone help identify what I am doing wrong?
Thanks
Aruna
Richard Blewett [DevelopMentor]

2005-01-21, 5:50 pm

It sounds as if the assembly the compiler is picking up is a version of that assembly before you strong named it. Are you using a project opr file based reference?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I am trying to reference a C# Class Assembly from BizTalk project but I get
the following compilation error:
"Assembly generation failed.
Referenced assembly, MyAssembly, does not have a strong name."

Now, I have created a strong name by executing the following in
the command window:
sn -k A2100Key.snk

I then changed the AssemblyInfo.cs file of each project
in my solution so that the AssemblyKeyFile attribute reads:
[assembly: AssemblyKeyFile(@"../../../../A2100Key.snk")]
The relative location should be ok as the compiler isn't
giving me any errors that it can't find the file.

But it is giving me an error message for my bizTalk project where i
referenced the assembly. (The BizTalk project itself has strong name.)

"Assembly generation failed.
Referenced assembly, MyAssembly, does not have a strong name."

Can anyone help identify what I am doing wrong?
Thanks
Aruna

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005



[microsoft.public.biztalk.orchestration]
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com