Ask a Question related to ASP.NET Web Services, Design and Development.
-
Mike Logan #1
Dynamic Web Reference in Class Lib/GAC
Hello. I have a shared assembly with a reference to one of our web services.
This web reference needs to be dynamic so that we can use different URLs
between our different environments (dev, test, production). I see that an
app.config file has been created in the assembly where I can put the
different URLs, but where does this app.config reside if the shared assembly
is inserted into the GAC?
--
Mike Logan
Mike Logan Guest
-
URGENT: HowTo reference dynamically to a class name vb.net
Hello Kevin, ok thanks, but can you give me an example how to reference dynamically to the class to call a method. Thanks, Andreas "Kevin... -
How-to reference AS scriptlets or MXML from an AS class?thx
Hello all: I'm utilizing FlexUnit to test a Flex Application. This Unit testing framework is sorta like JUnit for Java. It requires all test... -
NEWBIE question: web reference to a proxy class
Hi, I have used wsdl.exe to get the proxy class from a wsdl document that is saved locally on my comp. Can anyone please tell me how I can add a... -
Returning a reference to a class variable
I have a class which contains (1) a class variable and (2) a method (e.g., methodA) which returns a reference to the class variable. If the... -
dynamic web reference
change the 'URL Behavior' property of the web reference folder from static to dynamic. -
Dilip Krishnan #2
Re: Dynamic Web Reference in Class Lib/GAC
Hello Mike,
The shared app has to be used by an executeable/client application. The
configuration for the shared assembly should be merged with the configuration
of the executeable.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
[url]http://www.geniant.com[/url]
> Hello. I have a shared assembly with a reference to one of our web
> services. This web reference needs to be dynamic so that we can use
> different URLs between our different environments (dev, test,
> production). I see that an app.config file has been created in the
> assembly where I can put the different URLs, but where does this
> app.config reside if the shared assembly is inserted into the GAC?
>
Dilip Krishnan Guest
-
Mike Logan #3
Re: Dynamic Web Reference in Class Lib/GAC
Dilip,
We would like to avoid placing configuration information for the shared
assembly in each web application. Can the shared assembly put configuration
information into the Machine.Config?
Thanks, Mike
"Dilip Krishnan" wrote:
> Hello Mike,
> The shared app has to be used by an executeable/client application. The
> configuration for the shared assembly should be merged with the configuration
> of the executeable.
>
> HTH
> Regards,
> Dilip Krishnan
> MCAD, MCSD.net
> dkrishnan at geniant dot com
> [url]http://www.geniant.com[/url]
>>> > Hello. I have a shared assembly with a reference to one of our web
> > services. This web reference needs to be dynamic so that we can use
> > different URLs between our different environments (dev, test,
> > production). I see that an app.config file has been created in the
> > assembly where I can put the different URLs, but where does this
> > app.config reside if the shared assembly is inserted into the GAC?
> >
>
>Mike Logan Guest
-
Dilip Krishnan #4
Re: Dynamic Web Reference in Class Lib/GAC
Hello Mike,
No the configuration will not get picked up by the application if you
put it in the machine.config. It will only look for the <exename>/web.config.
Not only that you dont want to mess up the machine.config as far as possible.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
[url]http://www.geniant.com[/url]
> Dilip,
>
> We would like to avoid placing configuration information for the
> shared assembly in each web application. Can the shared assembly put
> configuration information into the Machine.Config?
>
> Thanks, Mike
>
> "Dilip Krishnan" wrote:
>>> Hello Mike,
>> The shared app has to be used by an executeable/client application.
>> The
>> configuration for the shared assembly should be merged with the
>> configuration
>> of the executeable.
>> HTH
>> Regards,
>> Dilip Krishnan
>> MCAD, MCSD.net
>> dkrishnan at geniant dot com
>> [url]http://www.geniant.com[/url]>>> Hello. I have a shared assembly with a reference to one of our web
>>> services. This web reference needs to be dynamic so that we can use
>>> different URLs between our different environments (dev, test,
>>> production). I see that an app.config file has been created in the
>>> assembly where I can put the different URLs, but where does this
>>> app.config reside if the shared assembly is inserted into the GAC?
>>>
Dilip Krishnan Guest
-
[MSFT] #5
Re: Dynamic Web Reference in Class Lib/GAC
I agree with Dilip, machine.config is not a good place for such
information. Here is some options in my thoughts:
1.Create a standalone XML or Text file, and save in a particular place so
that your app can find it.
2. Save such information in System registry
3. Create a Assembly to manage such Url, and call it in your assembly.
Luke
[MSFT] Guest
-



Reply With Quote


