How to use DLL with a web service?

Posted on 2010-09-02
Last Modified: 2012-05-10

I would like to use a VB.NET application in the web, created a DLL for the application and trying to include it as part of a web service to view the application in the web.  I added to DLL as a reference in the webservice but don't know what to do from there, please help.

I am using Visual Studio 2008 (VB.NET) to create the DLL and webservice.


Question by:vcharles
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 21

Expert Comment

by:Dale Burrell
ID: 33593492
If its a standard web service then you put the DLL in the bin directory the same as a regular site.

Expert Comment

ID: 33602457
Just add a reference to your DLL in the Web Service project, then deploy the web service, it will include the dll in the bin folder

Author Comment

ID: 33602567
The problem is even with the dll as part of the webservice, when I access the webservice in, I don't see the application that was converted to the dll, how do I access the dll?

How do I access the webservice from


Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 21

Expert Comment

by:Dale Burrell
ID: 33602612
I'm not sure exactly what you are asking... are you familiar with building as web service?

Is this any help

Author Comment

ID: 33602738
I would Like to use a application in the web, converted it to a dll to use with in order to use it in the web. I was told to include it in a webservice than call the webservice with, is that correct? Or is there a way to use the dll with directly?
LVL 21

Accepted Solution

Dale Burrell earned 500 total points
ID: 33605744
I quote from the link I posted earlier:

"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."

I expect that your VB App/DLL isn't exposing methods using the [WebMethod] attribute, although you might be able to add that without affecting you regular app. Otherwise you need to put some code in you asmx file which acts as an interface to the DLL - I would suggest doing this anyway as it leaves your code more generic.

Here is a simple example of creating a web service... sorry its in C# but should be easily translated into VB. If you can get a simple "Hello World" working then you can easily write the interfaces to your DLL.

Author Closing Comment

ID: 33712388
Thank you, I appreciate the help.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Returning a value from a class function to a partial view in MVC5 7 46
ASP.NET Content Page 3 51
Asp.Net Session Question 2 33
Record locking on classic ASP 3 37
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question