I have created a DLL that has a Web Reference to a Web Service I created, hosted on another server. The idea behind the DLL approach is so that the functionality it provides can be shared across multiple Application Types (Windows & Web).
When I call the DLL from a Windows Application, the Web Service is instantiated from the DLL correctly. When I call the DLL from an ASP.NET Web Application however, an Exception is thrown on the code that Instantiates the Web Service object and the Exception Message is: "The current configuration system does not support user-scoped settings."
While I understand why I am seeing this error, I do not know how to resolve this issue. I do not want to reference the Web Service from the Web Application, it has to be referenced and used from the DLL. Secondly, I would have thought that this error would not have occurred because the reference to the Web Service is made inside the DLL.
The DLL is coded in C# on the .NET Framework 3.5. Any help would be greatly appreciated.