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

dynamic web service url in dll (VS 2005)

I have created a dll in vs2005, this dll has a webservice call. I set the
url to dyna,ic and vs2005 added the code for the settings and added an
app.config for the url. I created a web project and consumed the dll. Now,
where in the web.config do I place the dynamic url settings for the dll?
Nov 17 '05 #1
1 1398
You should not have your .dll reliant upon a .config file, .config files are
for applications.

In your .dll, the object that requires the URL should expose a method for
passing the URL in, whether it is a function, or a property is moot.

Then, in your web.config file you can place your URL in the <appsettings>

<configuration>
<appSettings>
<add key="URL1" value="http://greyskin.co.uk" />
<add key="URL2" value="http://www.greyskin.co.uk" />
<appSettings>
<configuration>

look in the help files for some help on how to read these values, there are
objects there ready for you to use :o))

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Bill Gauvey" wrote:
I have created a dll in vs2005, this dll has a webservice call. I set the
url to dyna,ic and vs2005 added the code for the settings and added an
app.config for the url. I created a web project and consumed the dll. Now,
where in the web.config do I place the dynamic url settings for the dll?

Nov 17 '05 #2

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

Similar topics

1
by: Generic Usenet Account | last post by:
Most of the open source web-service products that I am reading about seem to require generation of client stub and server implementation ancestor classes from the WSDL file. The client application...
4
by: DraguVaso | last post by:
Hi, I developped a Windows Service in VB.NET (2005). I need to have it installed two times on 1 machine. When I want to install it a second time, the setup doesn't allow me to install it again...
2
by: Rami Saad | last post by:
Hi all, I am trying to install a service using dynamic naming. I wrote values in the configuration file, and trying to assign one of those values to a string, and using this string as the name...
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
7
by: Mantorok | last post by:
Hi all I have a web-service that references another project (the component) that actually carries out the work, the web-service is simply acting as the public interface. The web-service on...
0
by: refv8 | last post by:
Hi im working on aplications with Form authentication where the users is from a Active Directory in one server inside the Domain, i want to see using the ReportViewer to see the report hosted in...
0
by: refv8 | last post by:
Hi i want to do a list of all Report that i have in a specific folder in the Report server (this is en different server where is the DB) and i want to show this list of report in a page. for...
3
by: cpasmwalolo | last post by:
Hello thezre, I recently installed the SP1 of visual studio, just before releasing a new version of my application. And I never though that this SP1 could change something fondamental in the...
3
by: Lee T. Hawkins | last post by:
I am having a number of problems over the last two full days trying to get an ASP.NET 2.0 application to connect to a SQL Server 2005 database... First off, I built this application w/ Visual...
2
by: jack | last post by:
Hi Our team is developing reports using sql reporting service 2005. We all are new in this area. I would be glad if any one suggest me the integration of asp.net and sql reporting service. ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.