Error Using Relative Path For AssemblyKeyFile

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!!!
 
H

Herfried K. Wagner [MVP]

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

Top