Re: WebService Dynamic URLs from a "child" assembly
Dean Cleaver <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.advanced |
|---|---|
| Message-ID | <8E588B65FD82DF448592A3219102C3950328694387@SXSLAKL001.xceptionsoftware.com> |
Davy, I tried that, but it created a configSections with a slightly different value. So damn frustrating not being able to access the server and just try... it's not even my web service - all I have is a WSDL file. Last resort I might have to create a whole test project structure, and try to call it via remoting and see what happens. Just means several hours of testing and development at least... Dino -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[email protected]] On Behalf Of Davy J Sent: Saturday, 8 November 2008 01:02 To: [email protected] Subject: Re: [ADVANCED-DOTNET] WebService Dynamic URLs from a "child" assembly Dino, you need to copy the keys to the correct place in the web.config. The easiest way to find out where to put them is to recreate the same key in an empty website. I've used this method in the past, but now I'm more inclined to pass the parameters needed in the constructor of the class and let the implementor decide where he should stock the values, in a database, encrypted, hardcoded etc. HTH Davy J. On Fri, Nov 7, 2008 at 5:57 AM, Dean Cleaver < [email protected]> wrote: > Hi, > > I have an n-tier system where the 3rd tier down has a web reference that I > set to a dynamic URL - that's added an app.config to my code, and thus a > "Assembly.dll.config" to the output of that assembly. > > Any project that references that assembly does not get that config file > copied over. And of course I'm flying blind trying to give someone else > instructions on how to configure it remotely (what's worse, we're > configuring it for .NET Remoting). > > I see the above config file consists of some configSection and > applicationSettings values - can these be copied directly to the web.config? > I've tried to instruct them to do that, but it didn't seem to work. I can't > guarantee they got it right though - and due to PCI limitations, I am not > yet allowed to look myself. > > Would copying the above config work? Or is there something special I need > to do in the web.config to get the assembly to get this to work correctly? > > Cheers, > Dino > > =================================== > View archives and manage your subscription(s) at > http://peach.ease.lsoft.com/archives > =================================== View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives =================================== View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives