dynamic url from a component

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default dynamic url from a component

    i've searched this newsgroup as well as the aspnet newsgroup without
    an answer to this question.

    i call a web service from a component. i specify dynamic url, but
    there isn't an app.config or web.config file for the component. so
    there isn't a place for the appsettings entry to be made. is it
    possible to use a dynamic url web service from a component. if so,
    how?
    Josef Wainz Guest

  2. Similar Questions and Discussions

    1. dynamic id for component?
      I'm using a repeater to create several textInputs on the stage. I'd like to assign each textInput a unique ID but I keep getting an error msg with...
    2. dynamic component positioning in Panel
      Ok, here is the problem description which I have been trying to solve out for couple of weeks. I have a static ViewStack component in Flex...
    3. Dynamic Component
      Hi, I need to instance component (Ex: cpn = new ComponentFromInternet()) and use it, but i don't how can i do this, only but ActionScript, i...
    4. Dynamic XML Schema and DataSet Component
      Hello, I am trying to use a DataSet Component to hold data loaded from a SQL table. The design of my application requires that all components be...
    5. Dynamic Sound with a Media Component
      Hello I'm having a little problem here. I am using Flash MX 2004 - Proffesional. I have a dynamic sound ("GavSound")loading in at the beginning...
  3. #2

    Default Re: dynamic url from a component

    if the component is running within ASP.NET, then it gets its config info
    from web.config.

    If the component is running in some other container (eg, it is used within a
    Winforms EXE), then it gets its config from Exename.exe.config
    where exename is replaced by the root name of the exe.

    If it is running in COM+, then it gets it from dllhost.exe.config.

    etc.

    Also see this useful article:
    [url]http://staff.develop.com/candera/weblog/stories/2003/02/20/theLastConfigurationSectionHandlerIllEverNeed.html[/url]

    This can be useful for both ASP.NET and non-ASP.NET (eg Winforms) apps.

    -D


    "Josef Wainz" <josef@wainz.net> wrote in message
    news:7484d809.0311190633.452737d0@posting.google.c om...
    > i've searched this newsgroup as well as the aspnet newsgroup without
    > an answer to this question.
    >
    > i call a web service from a component. i specify dynamic url, but
    > there isn't an app.config or web.config file for the component. so
    > there isn't a place for the appsettings entry to be made. is it
    > possible to use a dynamic url web service from a component. if so,
    > how?

    Dino Chiesa [Microsoft] Guest

  4. #3

    Default Re: dynamic url from a component

    thanks dino,

    i added <add key="FocusHOPE.MissionStatement.ExcelHelper"
    value="http://CAT/ExcelHelper/ExcelHelper.asmx"/> to my web.config
    file and it works.

    the hard part was getting the right syntax. what i read stated that
    changing the URL Behaviour property to Dynamic would automatically
    create this entry in the .config file. it didn't because the web
    reference was in a component. once you indicated that the component
    will get it's config info from it's container, i created a simple
    asp.net project, set the web reference, changed the url behaviour to
    dynamic, copied it from the web.config file into my real web.config
    file.

    "Dino Chiesa [Microsoft]" <dinoch@online.microsoft.com> wrote in message news:<evfYxQrrDHA.2304@TK2MSFTNGP12.phx.gbl>...
    > if the component is running within ASP.NET, then it gets its config info
    > from web.config.
    >
    > If the component is running in some other container (eg, it is used within a
    > Winforms EXE), then it gets its config from Exename.exe.config
    > where exename is replaced by the root name of the exe.
    >
    > If it is running in COM+, then it gets it from dllhost.exe.config.
    >
    > etc.
    >
    > Also see this useful article:
    > [url]http://staff.develop.com/candera/weblog/stories/2003/02/20/theLastConfigurationSectionHandlerIllEverNeed.html[/url]
    >
    > This can be useful for both ASP.NET and non-ASP.NET (eg Winforms) apps.
    >
    > -D
    >
    >
    > "Josef Wainz" <josef@wainz.net> wrote in message
    > news:7484d809.0311190633.452737d0@posting.google.c om...
    > > i've searched this newsgroup as well as the aspnet newsgroup without
    > > an answer to this question.
    > >
    > > i call a web service from a component. i specify dynamic url, but
    > > there isn't an app.config or web.config file for the component. so
    > > there isn't a place for the appsettings entry to be made. is it
    > > possible to use a dynamic url web service from a component. if so,
    > > how?
    Josef Wainz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139