Error Using Relative Path For AssemblyKeyFile

  • Thread starter Thread starter gowens
  • Start date Start date
G

gowens

I've been trying to strong name my VB.Net v1.1 assembly with the strong
name key that we're using for a project. The strongname.snk file is
located in a root-level directory.

No matter what I try with the <Assembly: AssemblyKeyFile...> I can't
get past the error :

Error creating assembly manifest: Error reading key file
'..\\..\\..\\..\\strongname.snk' -- The system cannot find the file
specified.

I've tested the relative path in DOS - no problem.

The only way that I can get the project to compile is to set an
absolute pathname to the .snk file - then it works...

Is there some setup, option, etc in Visual Studio that would prevent
the compiler from interpretting relative paths???

HELP!!!
 
I've been trying to strong name my VB.Net v1.1 assembly with the strong
name key that we're using for a project. The strongname.snk file is
located in a root-level directory.

No matter what I try with the <Assembly: AssemblyKeyFile...> I can't
get past the error :

Error creating assembly manifest: Error reading key file
'..\\..\\..\\..\\strongname.snk' -- The system cannot find the file
specified.

Are you using "\\" as directory separator? Use "\" instead -- in VB.NET "\"
doesn't need to be escaped by "\\".
 

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

Back
Top