Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:35:39+00:00 2026-06-12T06:35:39+00:00

I am struggling with how to configure the url to a web reference. Here

  • 0

I am struggling with how to configure the url to a web reference.

Here is the case. I have:
old asp.net webservices <—– c# project that compiles to dll <—– website that references the dll (the c# project didn’t used to be there but I refactored all that code into a seperate project)

So the website code calls the c# project’s code to get results which in turn calls the webservice.

When adding a web reference in the c# project I entered the url location of the webservices (http://192.168.10.1/TestServices.asmx?wsdl. This then generates an app.config file containing the url of the webservices.

If I set the web reference to static than the config should not be used, that is working. Now if I set the web reference to dynamic, the config should be used but since this is a project being compiled to a dll, and the website does not have the app.config, instead I set the configuration from the app.config to my web.config appSettings node and I changed the url to the web services to another one (http://192.168.10.2/TestServices.asmx.

The website is still getting the result from the old url to which the web reference was pointed when adding it in the c# project so it looks like the config setting is not being used while the URL Behavious is set to Dynamic.

Am I missing something trivial here, probably?

This is the content from the app.config:

<applicationSettings>
     <XXXX.Properties.Settings>
      <setting name="XXXX_TestServices_TestServices" serializeAs="String">
       <value>http://192.168.10.1/TestServices.asmx</value>
      </setting>
     </XXXX.Properties.Settings>
    </applicationSettings>

This is what I put in my web.config:

<appSettings>
     <add key="XXXX_TestServices_TestServices" value="http://192.168.10.2/TestServices.asmx" />
</appSettings>

So, now its always funny and informative/educational when during the typing of the question and double checking and search related question, you finally solve the question yourself.. I am posting it anyway with answer as I did not find the exact answer in one place but by combining 2 other questions and a blog post.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:35:41+00:00Added an answer on June 12, 2026 at 6:35 am

    Some resources mention you need to create a setting and need to change the url property of the web service proxy object in your code. That is not necessary, you only need to edit your web config in the right way.

    The url does not go in the appSettings section of your web.config as would be when referencing a web service directly from the website.

    Instead you need to copy the entire config code from the generated app.config from your dll project, including the sectiongroup configuration that defines the applicationSettings node used for setting the correct url.

    For this specific example that included the following config code in the web.config:

    <configuration>
      <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <section name="XXXX.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
      </configSections>
    ...
    </configuration>
    
    <applicationSettings>
        <XXXX.Properties.Settings>
          <setting name="XXXX_TestServices_TestServices" serializeAs="String">
            <value>http://192.168.10.2/TestServices.asmx</value>
          </setting>
        </XXXX.Properties.Settings>
    </applicationSettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

been struggling to find a way to configure Tomcat 7.0.11 so that my web
Im trying to configure a .htaccess RewriteRule and i'm struggling. I have a domain
I am struggling to write/configure a ThrowsAdvice interceptor that I want to intercept all
I have a Mettler Toledo postal scale (PS60) that I need to configure and
Struggling with styling the mouse over for a button ... I have managed to
Im struggling with this one. I have a list of items and on a
Iam struggling with NHibernate and its lazyload. I have a structure which I simplified
im struggling with syntax here: hopefully this question is v simple, im just miising
I'm struggling to configure a simple JNDI pooled datasource in Tomcat 6.0.32. I want
at work I am struggling a bit with the following situation: We have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.