473,513 Members | 3,328 Online
Bytes | Software Development & Data Engineering Community
+ 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 4545
<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
1564
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"); } This works fine, however Error.aspx has some images on it that are document relative, but if a page causes an error that is not in the same...
18
9424
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 works, and sometimes I need to change it to <Assembly: AssemblyKeyFile("..\..\NicksKey.snk")>
5
9185
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 go away until next compile, and have a macro which will semi-fix this...but I need a permanent solution (which may not exist)... Steps to...
8
1950
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 : Default.aspx , Users.xml , Login.aspx I have the following code :
0
1266
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 absolute path, things work absolutely fine. However if I try and specify a relative path, things go askew and I end up with Build errors stating...
2
8690
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 '..\..\..\OurKey.snk' -- The system cannot find the file specified. <Assembly: AssemblyKeyFile("..\..\OurKey.snk")>
0
1331
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. For some reason when I use : <Assembly: AssemblyKeyFileAttribute("DG_Key\testKey.snk")> I get an error :
8
1888
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, but when using the C# COM server, there is a strange error indicating dll is not installed correctly (data link error). I have tried to delete...
1
3137
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: Auto-attach to process ' aspnet_wp.exe' on machine '<machine name>' failed. Error code 0x8004000e. Could you help me to find resolution.
0
7178
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7563
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4757
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1612
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 we have to send another system
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.