473,465 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error Using Relative Path For AssemblyKeyFile

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

Nov 21 '05 #1
1 4535
<go****@nixonpeabody.com> schrieb:
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 "\\".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MattC | last post by:
I have the following in the Page_Error method of my base class for my aspx pages. public void Page_Error(Object sender, EventArgs e) { Server.Transfer(Request.ApplicationPath + "/Error.aspx");...
18
by: Nak | last post by:
Hi there, Does anyone know what path the AssemblyKeyFile attribute is relative to? For example I currently have mine set to <Assembly: AssemblyKeyFile("..\NicksKey.snk")> Sometimes this...
5
by: Mythran | last post by:
I keep having this BC2017 Compiler Error and have been able to duplicate it on several machines...can someone help with a solution to this? I do know of several ways to get this compiler error to...
8
by: mohit | last post by:
Hi, I am creating a web application in Web Matrix on the .NET framework. I have two directories :AddUser and FormAuth in a Directory P. AddUser contains a file AddUser.aspx FormAuth contains :...
0
by: Nick | last post by:
Hi, I need to strong name my application and thus have to specify the sn key path in the <Assembly: AssemblyKeyFile("strongNameKey.snk")> parameter. Observations: If I specify the hardcoded...
2
by: Ben | last post by:
Hi We have setup a Strong Name for our Applications, but are having problems with the essembly throwing an error: Error creating assembly manifest: Error reading key file...
0
by: Vahehoo | last post by:
Hi, I am trying to digitally sign an old application in ASP.Net. For that purpose I created a Strong Name Key File. The snk file is located in a root-level directory. in Bin\DG_Key directory....
8
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am migrating my C++ COM server to managed code (C# COM server). I am using the same client to use the same COM class in COM server. The C++ version COM server works properly,...
1
by: =?Utf-8?B?cnNvbWFzdW5kYXI=?= | last post by:
Hi, I got the following error while trying to run the project in ASP.Net 2003 to one of my application in my machine. I think some where im loosing the IIS configurations. Error Detail:...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.