Web references

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    #1

    Web references

    Hi,

    If I add a web reference to a project, I may have a test and live reference,
    so I develop against the test, then have to delete it to use the live...

    Is there any way to programmaticall y change the reference I want to use? I
    would like to configure the web reference location within web.config.

    --
    Best regards,
    Dave Colliver.

    ~~
    http://www.FOCUSPortals.com - Local franchises available


  • =?Utf-8?B?S2VpdGg=?=

    #2
    RE: Web references

    You can try out this link - there's good discussion on setting the web
    service url at runtime:



    "David" wrote:
    Hi,
    >
    If I add a web reference to a project, I may have a test and live reference,
    so I develop against the test, then have to delete it to use the live...
    >
    Is there any way to programmaticall y change the reference I want to use? I
    would like to configure the web reference location within web.config.
    >
    --
    Best regards,
    Dave Colliver.

    ~~
    http://www.FOCUSPortals.com - Local franchises available
    >
    >
    >

    Comment

    • Cowboy \(Gregory A. Beamer\)

      #3
      Re: Web references

      For the .config file, add a local.config for the pieces you want on the live
      server. In ASP.NET 2.0, the local will override the web.config if you set it
      up correctly. I will see if I can find an article on this.

      --
      Gregory A. Beamer
      MVP; MCP: +I, SE, SD, DBA


      *************** *************** ***************
      Think outside the box!
      *************** *************** ***************
      "David" <david.colliver .NEWS@revilloc. REMOVETHIS.comw rote in message
      news:O6V11qefHH A.4916@TK2MSFTN GP06.phx.gbl...
      Hi,
      >
      If I add a web reference to a project, I may have a test and live
      reference, so I develop against the test, then have to delete it to use
      the live...
      >
      Is there any way to programmaticall y change the reference I want to use? I
      would like to configure the web reference location within web.config.
      >
      --
      Best regards,
      Dave Colliver.

      ~~
      http://www.FOCUSPortals.com - Local franchises available
      >

      Comment

      • David

        #4
        Re: Web references

        Cool, this looks like exactly what I was looking for.

        Thank you.

        --
        Best regards,
        Dave Colliver.

        ~~
        http://www.FOCUSPortals.com - Local franchises available


        "Keith" <Keith@discussi ons.microsoft.c omwrote in message
        news:8829F44C-286E-4023-91E7-3917AB63040D@mi crosoft.com...
        You can try out this link - there's good discussion on setting the web
        service url at runtime:
        >

        >
        "David" wrote:
        >
        >Hi,
        >>
        >If I add a web reference to a project, I may have a test and live
        >reference,
        >so I develop against the test, then have to delete it to use the live...
        >>
        >Is there any way to programmaticall y change the reference I want to use?
        >I
        >would like to configure the web reference location within web.config.
        >>
        >--
        >Best regards,
        >Dave Colliver.
        >http://www.AshfieldFOCUS.com
        >~~
        >http://www.FOCUSPortals.com - Local franchises available
        >>
        >>
        >>

        Comment

        Working...