I am writing a DLL in VB.NET which will be referenced by an ASP.NET website.
The DLL project has a reference to a web service in it. When I added the web service to the project, a chunk of configuration information was added to the ‘app.config’ file.
In order to get this to work in the host website, I had to copy the information in the ‘app.config’ file into the ‘web.config’ of the website.
Does anybody know how I can embed these settings into my compiled DLL? I don’t want the consumers of my DLL to have to insert this settings block into their web.config files.
The ‘svc.Endpoint.Address’ expects an object of type System.ServiceModel.EndpointAddress, so in fact what is required is on the lines of…