473,508 Members | 3,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to reference a DLL from aspx.

I have an asmx that Inherits a class that is defined in a dll. The asmx and
dll are in the same directory. The asmx gets compile errors because the
class it inherits is not know. Looking at the generated compile command,
the dll is not being referenced -- there is no /R:my.dll option in the
command line.

I've been searching for several hours but cannot figure out how to cause
ASP.NET to include a /r:mydll in the compile.

Can someone point me to the docs for how to accomplish this?

It looks like web.config might be the place to fix this, but I cannot see an
option that lets me control the list of referenced dlls.

Thanks

Michael Giroux


Nov 19 '05 #1
6 1878
Subject Correction -- how to reference a DLL from ASMX?

"Michael Giroux" <ml******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an asmx that Inherits a class that is defined in a dll. The asmx
and
dll are in the same directory. The asmx gets compile errors because the
class it inherits is not know. Looking at the generated compile command,
the dll is not being referenced -- there is no /R:my.dll option in the
command line.

I've been searching for several hours but cannot figure out how to cause
ASP.NET to include a /r:mydll in the compile.

Can someone point me to the docs for how to accomplish this?

It looks like web.config might be the place to fix this, but I cannot see
an option that lets me control the list of referenced dlls.

Thanks

Michael Giroux

Nov 19 '05 #2
Is the dll in the /bin directory /

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Michael Giroux" <ml******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an asmx that Inherits a class that is defined in a dll. The asmx and
dll are in the same directory. The asmx gets compile errors because the
class it inherits is not know. Looking at the generated compile command,
the dll is not being referenced -- there is no /R:my.dll option in the
command line.

I've been searching for several hours but cannot figure out how to cause
ASP.NET to include a /r:mydll in the compile.

Can someone point me to the docs for how to accomplish this?

It looks like web.config might be the place to fix this, but I cannot see an option that
lets me control the list of referenced dlls.

Thanks

Michael Giroux

Nov 19 '05 #3
No --

c:\inetpub\wwwroot\bsoa\incrementService.asmx
c:\inetpub\wwwroot\bsoa\incrementService.dll

Where should the dll be?

Michael Giroux
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uW***************@TK2MSFTNGP10.phx.gbl...
Is the dll in the /bin directory /

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Michael Giroux" <ml******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an asmx that Inherits a class that is defined in a dll. The asmx
and
dll are in the same directory. The asmx gets compile errors because the
class it inherits is not know. Looking at the generated compile command,
the dll is not being referenced -- there is no /R:my.dll option in the
command line.

I've been searching for several hours but cannot figure out how to cause
ASP.NET to include a /r:mydll in the compile.

Can someone point me to the docs for how to accomplish this?

It looks like web.config might be the place to fix this, but I cannot see
an option that lets me control the list of referenced dlls.

Thanks

Michael Giroux


Nov 19 '05 #4
re:
Where should the dll be?
In the /bin directory, like I said.

See :
http://samples.gotdotnet.com/quickst...gservices.aspx

Precompiled XML Web services

"If you have a precompiled class that you want to expose as a XML Web service
(and this class exposes methods marked with the [WebMethod] attribute),
you can create an .asmx file with only the following line :

<%@ WebService Class="MyWebApplication.MyWebService" %>

MyWebApplication.MyWebService defines the WebService class,
and is contained in the /bin subdirectory of the ASP.NET application."


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================

"Michael Giroux" <ml******@hotmail.com> wrote in message
news:eq*************@TK2MSFTNGP10.phx.gbl... No --

c:\inetpub\wwwroot\bsoa\incrementService.asmx
c:\inetpub\wwwroot\bsoa\incrementService.dll

Where should the dll be?

Michael Giroux
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uW***************@TK2MSFTNGP10.phx.gbl...
Is the dll in the /bin directory /

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Michael Giroux" <ml******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an asmx that Inherits a class that is defined in a dll. The asmx and
dll are in the same directory. The asmx gets compile errors because the
class it inherits is not know. Looking at the generated compile command,
the dll is not being referenced -- there is no /R:my.dll option in the
command line.

I've been searching for several hours but cannot figure out how to cause
ASP.NET to include a /r:mydll in the compile.

Can someone point me to the docs for how to accomplish this?

It looks like web.config might be the place to fix this, but I cannot see an option
that lets me control the list of referenced dlls.

Thanks

Michael Giroux



Nov 19 '05 #5
For more information, see :

"Deploying a Web Service Directly to IIS"

http://www.oreilly.com/catalog/progn...pter/ch02.html

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Michael Giroux" <ml******@hotmail.com> wrote in message
news:eq*************@TK2MSFTNGP10.phx.gbl...
No --

c:\inetpub\wwwroot\bsoa\incrementService.asmx
c:\inetpub\wwwroot\bsoa\incrementService.dll

Where should the dll be?

Michael Giroux
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uW***************@TK2MSFTNGP10.phx.gbl...
Is the dll in the /bin directory /

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Michael Giroux" <ml******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an asmx that Inherits a class that is defined in a dll. The asmx and
dll are in the same directory. The asmx gets compile errors because the
class it inherits is not know. Looking at the generated compile command,
the dll is not being referenced -- there is no /R:my.dll option in the
command line.

I've been searching for several hours but cannot figure out how to cause
ASP.NET to include a /r:mydll in the compile.

Can someone point me to the docs for how to accomplish this?

It looks like web.config might be the place to fix this, but I cannot see an option
that lets me control the list of referenced dlls.

Thanks

Michael Giroux



Nov 19 '05 #6
Thanks for the tips.

In addition to placing the dll in the bin directory, I had to generate the
abstract class with a namespace. Without the namespace, I was not able to
specify the dll in a Imports statement.

Is there a way in VB to Imports from the default namespace? If not, no
problem since I do now have it working.

Michael
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
For more information, see :

"Deploying a Web Service Directly to IIS"

http://www.oreilly.com/catalog/progn...pter/ch02.html

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Michael Giroux" <ml******@hotmail.com> wrote in message
news:eq*************@TK2MSFTNGP10.phx.gbl...
No --

c:\inetpub\wwwroot\bsoa\incrementService.asmx
c:\inetpub\wwwroot\bsoa\incrementService.dll

Where should the dll be?

Michael Giroux
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uW***************@TK2MSFTNGP10.phx.gbl...
Is the dll in the /bin directory /

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Michael Giroux" <ml******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an asmx that Inherits a class that is defined in a dll. The asmx
and
dll are in the same directory. The asmx gets compile errors because
the
class it inherits is not know. Looking at the generated compile
command,
the dll is not being referenced -- there is no /R:my.dll option in the
command line.

I've been searching for several hours but cannot figure out how to
cause
ASP.NET to include a /r:mydll in the compile.

Can someone point me to the docs for how to accomplish this?

It looks like web.config might be the place to fix this, but I cannot
see an option that lets me control the list of referenced dlls.

Thanks

Michael Giroux




Nov 19 '05 #7

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

Similar topics

3
2827
by: Whoever | last post by:
To create Excel file, you can Add Reference Visual Studio.NET, browse to ... and then select Microsoft.Office.Interop.Excel, etc. It endsup some reference to GUID in project file. You can then...
6
1689
by: Binoy | last post by:
Hello, I am getting this error once in a while from my web sites. When I will refresh web browser, it goes off and sites are working fine. Directory structures and file names are as below- ...
7
3176
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb --...
8
2351
by: PJ | last post by:
How can I get a reference to the master page class? It is defined as a partial class, but I cannot seem to type a variable to the name of the partial class? The compiler continually shows "The...
3
3928
by: Pierre | last post by:
Hello, In an aspx page (mypage.aspx) from a web projet, I would like to get the value of a variable of the projet that is declared as public in a module. The variable can be called from...
2
2898
by: Ben | last post by:
Hi, I need to add a reference in my project to a file (e.g. mysqldata.dll) in order to access Mysql. Using Visual Web Developer, i know how to do (menu website/add reference), but suppose i...
0
1323
by: Rob R. Ainscough | last post by:
I'm getting a bizarre error in the IDE Error List: ****** The Error message ******* Value of type 'MyDLL.Customer' cannot be converted to 'MyDLL.Customer'. Type mismatch could be due to the...
3
2060
by: Ganesh Palaniappan | last post by:
We're getting following exception for the below piece of code. We're wondering how it is possible since we're having a null check for objGraphics and strokePen... Exception:...
6
3607
by: David Lozzi | last post by:
Hello there, I'm getting the following error System.NullReferenceException: Object reference not set to an instance of an object. at shopping_bag.GetBagTotals()
8
2124
by: Frank Hauptlorenz | last post by:
Hello out there, I changed an existing and good working webservice from an wsHttpBinding to an NetTcpBinding. This is working (after trying some time) and has real a better performance! But...
0
7128
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7332
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7058
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.