Kinook Software Forums

Kinook Software Forums (
-   [VBP] Third Party Tools (
-   -   "Error reading key file" when compiling VS.NET web app (

CRogers 12-02-2004 09:35 AM

"Error reading key file" when compiling VS.NET web app
I have a web app whose assembly is strongly named. Compilation within VS.NET works fine. Compiling during a build fails with the error

vbc : error BC30140: Error creating assembly manifest: Error reading key file 'path\to\my.snk' -- The system cannot find the path specified.

Compiling non-web apps using this same key file works fine as well.

Any advice?

CRogers 12-02-2004 10:48 AM

Follow-up: The property in my AssemblyInfo.vb file had been using a relative pathname to the key file. I just discovered that if I use an absolute pathname, the build can handle it. However, this isn't an ideal solution, as it removes some amount of location-independence from my project.

kevina 12-02-2004 11:19 AM

If you show the command-line used by Visual Build Professional, then execute this same command-line call manually, does the error still occur?
It sounds like the Microsoft command-line compiler ( is not accepting the relative path.

CRogers 12-02-2004 02:33 PM

Yes, the error still occurs when executing the command-line call manually. I'm not sure why this would make a difference, though. There's no parameter within that command line that set the key pathname. That property is statically defined in AssemblyInfo.vb within the project.

CRogers 12-02-2004 02:37 PM

Oh, but now I see the point you're making. This is not a builder issue; this is purely a VS.NET issue.

So, never mind as far as this forum is concerned. Thanks for your help!

pjaquiery 12-02-2004 02:45 PM

Do you need to set the "Start in:" field in the run step to specify the current directory?

CRogers 12-02-2004 03:02 PM

I'm using a Make VS.NET step, not a Run Program. There is no "Start in" option.

kevina 12-02-2004 03:15 PM

Along the same lines, you could try a Set Current Dir step, setting the current dir appropriately (prior to the Make VS.NET step).

CRogers 12-02-2004 03:37 PM

Hey, that worked! Thanks, pjaquiery and kevina!

All times are GMT -5. The time now is 11:01 PM.

Copyright 1999-2019 Kinook Software, Inc.