473,513 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where do I put the .snk file?

Okay. I'm creating a dll I'd like to put into the GAC, this way I can reuse
some of my common classes. I need to strongname it though. I've created the
key, and I've added the line to the AssemblyInfo.vb file, but when I compile,
it says it can't find the file. Where should I put it so it can find the file?

<Assembly: AssemblyKeyFile("strongNameFile.snk")>

Thanks again for the help!
Nov 21 '05 #1
3 2487
"Casey" <Ca***@discussions.microsoft.com> schrieb:
I've created the key, and I've added the line to the
AssemblyInfo.vb file, but when I compile, it says it can't
find the file. Where should I put it so it can find the file?


See (complete thread):

<URL:http://groups.google.de/groups?threadm=%23lleIagdDHA.460%40cpmsftngxa06.ph x.gbl>

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

Nov 21 '05 #2
Hey that worked. I got the file to compile.
I then added my compiled dll file to the GAC. It seemed to work fine, but
when I try to use it by adding it into the machine.config file, (so I can use
it in web apps), the server freaks out, claiming it can't find it or one if
it's dependicies. I'm thinking that it cannot find the .snk file.
Where on the web server sould THAT file go?

Thanks!

"Herfried K. Wagner [MVP]" wrote:
"Casey" <Ca***@discussions.microsoft.com> schrieb:
I've created the key, and I've added the line to the
AssemblyInfo.vb file, but when I compile, it says it can't
find the file. Where should I put it so it can find the file?


See (complete thread):

<URL:http://groups.google.de/groups?threadm=%23lleIagdDHA.460%40cpmsftngxa06.ph x.gbl>

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

Nov 21 '05 #3
Nevermind. I actually figured it out.
I added the file to the GAC on MY machine, but not the web server.
Once I did that, it seemed to work fine.

Thanks!

"Casey" wrote:
Hey that worked. I got the file to compile.
I then added my compiled dll file to the GAC. It seemed to work fine, but
when I try to use it by adding it into the machine.config file, (so I can use
it in web apps), the server freaks out, claiming it can't find it or one if
it's dependicies. I'm thinking that it cannot find the .snk file.
Where on the web server sould THAT file go?

Thanks!

"Herfried K. Wagner [MVP]" wrote:
"Casey" <Ca***@discussions.microsoft.com> schrieb:
I've created the key, and I've added the line to the
AssemblyInfo.vb file, but when I compile, it says it can't
find the file. Where should I put it so it can find the file?


See (complete thread):

<URL:http://groups.google.de/groups?threadm=%23lleIagdDHA.460%40cpmsftngxa06.ph x.gbl>

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

Nov 21 '05 #4

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

Similar topics

1
2384
by: chuck amadi | last post by:
By the way list is there a better way than using the readlines() to > > >parse the mail data into a file , because Im using > > >email.message_from_file it returns > > >all the data i.e reads one...
5
3864
by: Richard | last post by:
Hi, Can anyone tell me what the difference is between for line in file.readlines( ): and for line in file:
4
4403
by: Mick | last post by:
Anyone know of any problems with this??? Using it to upload image files to a server. Most of the files work fine but occasionally one causes error with fopen() on server. Seems the...
10
4092
by: Frances Del Rio | last post by:
I'm doing a website in which in all html files I have an SSI directive, thus: <!--#include file="nav.html"--> but if I call same file from an html file in a sub-dir in webiste, thus: ...
6
5313
by: Dan | last post by:
Maybe the title is a little misleading, but I don't know a better way of putting it. What I would like to do, is create a file pointer that really isn't pointing to an actual file on disk, but a...
3
3151
by: Shapper | last post by:
Hello, I created a script to upload a file. To determine the file type I am using userPostedFile.ContentType. For example, for a png image I get "image/png". My questions are: 1. Where can...
9
2169
by: paczkow | last post by:
Dear Python Community, I am an engineering and I am experiencing some trouble. Having output data from other software I want to use it. To achieve this I decided to use Python since this...
2
2673
by: tgiles | last post by:
Hi, All! I started back programming Python again after a hiatus of several years and run into a sticky problem that I can't seem to fix, regardless of how hard I try- it it starts with tailing a...
185
6855
by: jacob navia | last post by:
Hi We are rewriting the libc for the 64 bit version of lcc-win and we have added a new field in the FILE structure: char *FileName; fopen() will save the file name and an accessor function will...
20
1449
by: Ruud | last post by:
Hallo allemaal, I created a program where I opened a file to read from. For various reasons I had to split up this program in several modules. Variables declared in one module are made...
0
7166
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
7386
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,...
0
7543
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
7106
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
5689
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,...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3236
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...
0
1601
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 ...
0
459
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...

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.