473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Location Of Custom DLLs

Ian
Help!!

I have created a .net DLL which is accessed by both a .Net VB Application as well as A .Net ASP Page. The only way I can seem to make it work is if this DLL is in the WinNT\System32 Directory. Our Company Policy is not to permit any custom code in the System32 Directory. I cant get either of my apps to work if the code is in a seperate Directory. Any help would be greatly appreciated

Thanks
Jul 21 '05 #1
1 1289

What is your companies policy on putting it in the Global Assembly Cache
(GAC) ?
You will probably need a strong name, but once it is in there, you should be
able to access it from both places.

If you built your .net dll with visual studio, there is probably an
AssemblyInfo.cs file. At the end of that file is an AssemblyKeyFile
attribute.

[assembly: AssemblyKeyFile("")]

you change the line above to include the filename of the .snk file

[assembly: AssemblyKeyFile("mySName.snk")]

you use the sn.exe tool to create a .snk file.

sn -k mySName.snk // check that my syntax is correct here

this file needs to be included with your .net dll when you distribute it.

then you say gacutil -i your_dotNet_dll_file.dll

The location where your .net dll and .snk file 'live' do not need to be (an
probably shouldn't be) in the gac directory.

Now you should be able to get at the component from both the asp and vb app.
I hope this helps you out,
sincerely,
John Scalco
"Ian" <an*******@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
Help!!!

I have created a .net DLL which is accessed by both a .Net VB Application as well as A .Net ASP Page. The only way I can seem to make it work is if
this DLL is in the WinNT\System32 Directory. Our Company Policy is not to
permit any custom code in the System32 Directory. I cant get either of my
apps to work if the code is in a seperate Directory. Any help would be
greatly appreciated.
Thanks

Jul 21 '05 #2

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

Similar topics

0
by: Outkast | last post by:
I've got a plugin architecture system that calls LoadFrom to load the .dlls in a specific folder and it works fine and dandy, imports everything, my code can create objects from types found in the...
0
by: Lee Alexander | last post by:
I am trying to emulate the C# behaviour of copying referenced assemblies into the build output directory but for normal DLLs. Currently some components (DLLs) are build and dumped into a shared...
1
by: Timo | last post by:
I need to incorporate several aspx pages into an existing website. The target structure looks like this: inetpub -- wwwroot ------ webapps --------- App1 ------------subdir1...
1
by: Ian | last post by:
Help!! I have created a .net DLL which is accessed by both a .Net VB Application as well as A .Net ASP Page. The only way I can seem to make it work is if this DLL is in the WinNT\System32...
2
by: Shiraz | last post by:
Alright, I think I have a better perception of assemblies and environment variables now. The question I had initially posted was pertaining setting of environment variables using the VSI installer....
1
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi everybody, I've got a solution that has several dll projects and a website. For the dll projects I've add a configuration 'debug - no code analysis'. Now for the website I can't create...
10
by: =?Utf-8?B?SmFjayBTbWl0aA==?= | last post by:
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. ...
1
by: k.nagendra.prasad | last post by:
Hi , I have a few 3rd party DLLs whcih my application requires. These are all registered in GAC. When I run my application it throws an weired exception. Exception comes from those dlls. When i...
4
by: David Williams | last post by:
I am familiar with creating custom configuration settings and accessing them. However, for a current requirement, I need to control the various settings in my custom configuration section by...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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
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,...

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.