none
How to ensure a .NET Application is not using entries in Settings.settings Url's RRS feed

  • Question

  • Hi,

    There is an application which consumes ASMX web service. The DEV url's are included in settings.settings file at the time of proxy creation.

    Purposly removed a setting section (i.e. a url is removed) from App.config. The application picks DEV url from settings.settings.

    Are there any ways to stop application access url's from settings.settings.

    Am looking at any configuration element line "Override" in App.config? Are there other options out there?

    Thanks,

    Kalai

    Wednesday, March 13, 2013 9:51 PM

Answers

  • Hi Kalai,

    I am afraid not.

    Because your don't want to let the URL in setting can be fetched, how about just delete it? Of course, you need to confirm this doesn't affect the other part of your application.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Kalai.Mamani Tuesday, March 19, 2013 3:12 PM
    Friday, March 15, 2013 3:21 AM
    Moderator

All replies

  • Hi Kalai,

    Welcome to the MSDN Forum.

    Please check your code that make sure you have no logic with this situation.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, March 14, 2013 1:12 PM
    Moderator
  • Hi Mike,

    There is no user code. This is the default behavior of ASMX proxy. Are there anyway to change the behavior?

    Thanks,

    Kalai

    Thursday, March 14, 2013 2:25 PM
  • Hi Kalai,

    I am afraid not.

    Because your don't want to let the URL in setting can be fetched, how about just delete it? Of course, you need to confirm this doesn't affect the other part of your application.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Kalai.Mamani Tuesday, March 19, 2013 3:12 PM
    Friday, March 15, 2013 3:21 AM
    Moderator