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 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
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
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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-
...
|
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
--...
|
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...
|
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...
| |
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...
|
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...
|
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:...
|
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()
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 ...
|
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...
| |