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

newb stuff about dll's.

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.
Nov 19 '05 #1
2 1261
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.

"Qwert" <no**@nosp.com> wrote in message
news:4O********************@casema.nl...
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.

Nov 19 '05 #2
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 !
--
Eric Newton
eric.at.ensoft-software.com
www.ensoft-software.com
C#/ASP.net Solutions developer

"Qwert" <no**@nosp.com> wrote in message
news:4O********************@casema.nl...
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.

Nov 19 '05 #3

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

Similar topics

0
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
0
by: Jon Moldover | last post by:
Hi, I'm using Python in my win32 app by linking to the python23.dll. I'm trying to expose some c++ code in my app to Python so I can make application calls from Python scripts (according to the...
3
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
11
by: The_Kingpin | last post by:
Hi all, I'm new to C programming and looking for some help. I have a homework project to do and could use every tips, advises, code sample and references I can get. Here's what I need to do....
3
by: madmike | last post by:
hey, first thanks for looking. I think this should be easy. I have a com DLL (in C++) that has this struct: struct IdxTimestampedWord { BSTR word; __int64 timestamp;
2
by: Qwert | last post by:
Hello, I use Visual Studio .NET to create a .aspx page. When I do this it creates a ..dll assembly with name similar to the project. I assume that in this dll all kinds of references are made to...
2
by: Hari | last post by:
Is it possible to create a .dll Library in VB .NET? If so, can I do it with just vbc.exe, or would I need additional software? Secondly, if I have a compiled file "File1.vb" in a directory, and a...
1
by: HateSpam | last post by:
Total newb here. I've built a custom library called ClassLib1. I want to use the 3 classes I've got defined in there in a simple 1-form windows app. I added the reference to the .dll to the...
0
by: gchandran | last post by:
Hello, I am developing a DLL using C# . I am using VS 2005 for this. The component will expose few API's. One of the API performs certain operations and needs to return an array of objects...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.