473,651 Members | 2,533 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.sn k' -- 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 4558
<go****@nixonpe abody.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.sn k' -- 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
1566
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 path as
18
9436
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
9200
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 reproduce error: 1.) Create a VB.Net Web Application. (I created a virtual directory and then created...
8
1953
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
1274
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 that the sn key file cannot be found. On googling,
2
8708
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
1336
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
1907
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 the DLL at the same time to test whether the DLL could be found correctly when the client is invoking...
1
3153
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
8349
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8695
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8460
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8576
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5609
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.