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

  • SEARCH
  • Home
  • 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 6906557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:19:31+00:00 2026-05-27T08:19:31+00:00

I have a WCF service with a setting I created in the WCF application

  • 0

I have a WCF service with a setting I created in the WCF application property editor (settings tab).

It has created something like the following property in MySettings class in the Settings.Designer.vb file. Notice the DefaultSettingValueAttribute is set to “This is the OLD value”. That’s my value for local testing.

<Global.System.Configuration.ApplicationScopedSettingAttribute(),  _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
Global.System.Configuration.DefaultSettingValueAttribute("This is the OLD value")>  _
Public ReadOnly Property Information() As String
  Get
    Return CType(Me("Information"),String)
  End Get
End Property

On the production server I have changed the web.config file as below. The “NEW” value would be useful for the production server. It represents a connection string, or production resource address.

<applicationSettings>        
  <setting name="Information" serializeAs="String">
    <value>This is the NEW value</value>
  </setting>
</applicationSettings>

The problem is after restarting the WCF service (rebooting the server machine completely), it never reads the new value. It continues to use the old value that was set as the default value in the designer file.

I think this must have to do with file permissions, but I don’t see anything in the event log that indicates a problem. It’s like the WCF service isn’t even trying to read the web.config file. I don’t find anything like this problem on Google and I’ve run out of search term ideas.

Why isn’t the service reading the settings value from the web.config file?

  • 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-05-27T08:19:31+00:00Added an answer on May 27, 2026 at 8:19 am

    Did you make sure to add the SectionGroup to the ConfigSections of the production web server?

    It should look something like:

    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="MyWCFService.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    

    and your application settings section should look something like:

      <applicationSettings>
        <MyWCFService.My.MySettings>
          <setting name="Information" serializeAs="String">
            <value>This is the NEW value</value>
          </setting>
        </MyWCFService.My.MySettings>
      </applicationSettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service with the following configuration: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=MetadataEnabled>
I have a WCF service that is hosted in a windows application. The service
I have created one WCF service , which is working fine, now i want
Please tell me I'm doing something stupid in setting up my wcf rest service.
I have A WCF service that has a class that inherits System.Web.Security.RoleProvider. In this
I am writing a service using wcf. I have created a solution with two
I created a simple WCF web service that has one method: SubmitTicket(flightticket ft, string
I am using WCF for the first time. I Have successfully created the service
My settings is as follows: I have an MVC web application (EbWebApp) which has
I have an ASP.NET MVC 3 application that uses a WCF service within the

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.