By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Referencing Namespace .dll's WITHOUT VS.NET

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
* "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 discussion thread is closed

Replies have been disabled for this discussion.