Referencing Namespace .dll's WITHOUT VS.NET

  • Thread starter Keith Jakobs, MCP
  • Start date
K

Keith Jakobs, MCP

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
 
C

Cor Ligthert

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/d...y/en-us/vblr7/html/vaconvbcompileroptions.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
 
H

Herfried K. Wagner [MVP]

* "Keith Jakobs said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top