473,672 Members | 2,745 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 ("strongNameFil e.snk")>

Thanks again for the help!
Nov 21 '05 #1
3 2503
"Casey" <Ca***@discussi ons.microsoft.c om> 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.d e/groups?threadm= %23lleIagdDHA.4 60%40cpmsftngxa 06.phx.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***@discussi ons.microsoft.c om> 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.d e/groups?threadm= %23lleIagdDHA.4 60%40cpmsftngxa 06.phx.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***@discussi ons.microsoft.c om> 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.d e/groups?threadm= %23lleIagdDHA.4 60%40cpmsftngxa 06.phx.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
2394
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 entire line from the file , headers as well > > >as just the desired body messages . > > > > > >fp = file("/home/chuck/pythonScript/testbox") > > >mb = mailbox.UnixMailbox(fp, > > >email.message_from_file)
5
3889
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
4411
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 'filename/path' param is incorrect. It is actually trying to open the file using the directory path I uploaded 'from' and not 'to'. (Note: Using PHP on Novell server to open the file.) Thanks,
10
4111
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: <!--#include file="../nav.html"--> it won't work, I get this error:
6
5340
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 string in memory. In other words whatever is being written to the file is actually being written to a string instead. Is there any straight forward way of doing this.
3
3161
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 I find a list of all the types which can be returned? For example, if it is a Word document will it return "document/doc".
9
2182
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 language is the best known for me. So.. for my future Python script, the input data are in form of: 1 1233.2E-3 2123.2323 2E+2 3453.3E+1 1233.2E-3 2123.2323 2E+2 3453.3E+1
2
2684
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 log file. Basically, I'm trying to tail a log file and send the contents elsewhere in the script (here, I call it processor()). My first iteration below works perfectly fine- as long as the log file itself (logfile.log) keeps getting written...
185
7011
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 return the file name given a FILE *. Questions: What would be the best name for this function?
20
1473
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 accessible to other modules using an h- file. The troubleshooter in this case are some file pointers to open several files at the same time for reading or writing. I can declare, let's say, an integer in a module as "int Counter;" and then as "extern...
0
8428
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8953
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8854
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...
0
8704
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
7484
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...
1
6264
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4253
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
4448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2849
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

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.