newb stuff about dll's.

Q

Qwert

Hello,

I have custom dll which I link to like this:

<%@ Register TagPrefix="MyDLL" Namespace="MyDLL" Assembly="MyDLL" %>

which works. Only strange thing is when I put the dll file in the \bin
directory of the directory with the .aspx file it doens't find the dll. I
have to put in it the \bin directory of the 'wwwroot'. Why is this?
Everywhere i read that it has to be in \bin of the directory with the .apsx
file.

I have another DLL which uses "System.Windows.Forms". This second DLL I
can't get to work, because ASP.NET can't find the DLL
"System.Windows.Forms". I thought that all DLL's that are in the GAC are
automatically found? How do I add a reference in my .aspx file to
"System.Windows.Forms"? The following code doesn't work:

<%@ Register Assembly="System.Windows.Forms" %>

Thanks.
 
J

Joseph Byrns

The dll has to be in the bin folder of the application folder, that is the
folder you application is in must be configured as an application folder in
IIS. If it isn't configured as an application then it looks for the dll in
the bin folder in the root.
 
E

Eric Newton

You need to configure the applicaiton in IIS.

In the IIS management console, right click the virtual directory root for
your app, look for the "Home Directory" tab, and if there's no text in the
application text box, click the "Create" button.

Additionally, you should be aware that windows forms dll's will not work
with asp.net !
 

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

Similar Threads

How do I add an .EXE project to a solution of DLL's? 0
newb stuff. 2
Global.asax not checking the GAC 2
Where are my dll's? 2
Updating DLL's 1
Dll's = where? 6
The simple stuff 7
Programming with VSC 2

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top