469,626 Members | 883 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Dynamically modifying the url for a web service within a dll

I'm having a problem dynamically setting the url for the web service
used in a dll.
When I reference a web service it sets it to dynamic and creates a
setting for the url.
I have modified the url in the app.config file to our test instance of
the web service.
Every time I get the proxy object for the web service the url is set
to the original value.

My understanding was that it returns the default value (the original
url) if there is no config file.

I've verified that the config file is there and has a different value
than the default.
I've tried both running with debug and with a compiled app that calls
the dll, both to no avail.

I've also tried using the ConfigurationManager to get the value and
haven't been successful.
If I create a new appSettings section and create a new setting, I can
pull the value back using the ConfigurationManager

How do I get it to use the setting created when I set the web
reference?

Thx.
Brian VZ

Here is the config file.

<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="TestWebRef.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup>
</configSections>
<applicationSettings>
<TestWebRef.Properties.Settings>
<setting name="TestWebRef_pb_app_TririgaWS"
serializeAs="String">
<value>http://pb-app:8001/ws/TririgaWS</value>
</setting>
</TestWebRef.Properties.Settings>
</applicationSettings>
</configuration>
Feb 13 '08 #1
0 826

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by John Paul. A | last post: by
3 posts views Thread by Allen Chen [MSFT] | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.