473,320 Members | 1,965 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,320 software developers and data experts.

Referencing Namespace .dll's WITHOUT VS.NET

Hi All,

Can anyone help me figure out how to import the 'System.DirectoryServices'
namespace to a code-behind file for an ASP.NET VB form when I am NOT using
VS.NET Studio???

I realize that a reference to the .dll needs to be specified in the project,
and I even know which .dll needs to be referenced, but since I am only
coding with a text editor at this time, using 'imports
system.DirectoryServices' does not find the correct .dll. I would rather
NOT have to copy .dll's to my web app directory to make them work. So what
statement can I use in my code-behind VB file to reference the
System.DirectoryServices namespace?

FYI, just including 'imports System.DirectoryServices' in the vb file
produces the following error in my web output:

BC30466: Namespace or type 'DirectoryServices' for the Imports
'System.DirectoryServices' cannot be found

Thanks in advance.

Keith C. Jakobs
Nov 20 '05 #1
2 1411
Keith,

One of the methods will be I think to compile it. That I never did for an
aspx page withouth VS.net.

However maybe you can try it yourself using VBC
http://msdn.microsoft.com/library/de...leroptions.asp

When you want to do it in the aspx vbnet scripting way, I advice you to have
a look in the newsgroup

microsoft.public.dotnet.framework.aspnet

In my opinion you have a better change there for an answer (what does not
mean you cannot get it here)

I hope this helps?

Cor

Nov 20 '05 #2
* "Keith Jakobs, MCP" <el****@NOSPAM.hotmail.com> scripsit:
Can anyone help me figure out how to import the 'System.DirectoryServices'
namespace to a code-behind file for an ASP.NET VB form when I am NOT using
VS.NET Studio???


Add 'CompilerOptions='/r:"<Path and file name of the DLL>"'' to your '<%@
Page...>' directive at the top of your aspx page.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #3

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

Similar topics

12
by: Mark Broadbent | last post by:
Hi guys, just going through remoting at the moment and a couple of questions relating to .net in general has surfaced. Firstly I have seen in the designer that for the namespace and many of its...
12
by: Pollux | last post by:
I'm having trouble doing someting apparently simple. I'm still not very familiar with Visual Studio 2003, so apologies if I've missed something obvious. Basically my problem is the following. I...
16
by: PromisedOyster | last post by:
Hi I have a situation where I want to use circular referencing. I have cut down the example for demonstration purposes. Say we have one executable (main.exe) and two DLLS (A1.dll and A2.dll)....
2
by: Ron | last post by:
I need to write a custom textbox control that references an object located in the Global.asax class, but I can't compile the control into a DLL without including the reference to the project DLL...
4
by: Mark Hageman | last post by:
Newbie question: How can a dll be referenced from the code-behind for an aspx page? I have the dll in the /bin directory, and have tried using the line "Imports " in the code-behind, but I get a...
1
by: Eric Lemmon | last post by:
Greetings, In my ASP.NET application, I have user controls that refer to each other's static methods. It works fine using the standard DLL compilation. I now have a requirement where I need...
9
by: Brett Romero | last post by:
Say I have a library (A.dll) with a method that accepts a collection of a specific type. The type is defined in B.dll. In A.dll, I need to loop through this collection and reference fields of...
4
by: csharpguy | last post by:
Guys, I am using c# to call some DLL. Here is my situation, I tried to create reference to this dll in my project and I am able to call this dll successfully, but when actual dll is upgraded to...
1
by: Tom | last post by:
My unsigned DLL works in my project that references it as long as I set Copy Local = true. Now I have signed the DLL with the sn.exe generated keys but have not yet moved the DLL into the GAC. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.