I have referenced a separate config file in my application using the
following syntax in web.config:
<galleryServerP ro configSource="c onfig\galleryse rverpro.config"/>
There are several admin pages that modify one or more settings in this file,
and I need the application to automatically recycle when this happens so that
it loads the new values. Under IIS7 (Vista) this works fine. However, IIS6
does not recycle the app when this file changes.
What is the recommended solution? I can probably add code to "touch" the
web.config file as needed, but this feels like a hack. Is there a better way?
Cheers,
Roger Martin www.techinfosystems.com / www.galleryserverpro.com 4 3033
To enable the configuration to be recognized on any change to "galleryserverp ro.config",
edit machine.config, in the <configSections section, and edit <section name="appSettin gs" ... >,
adding : restartOnExtern alChanges="true "
That'd make it :
<section name="appSettin gs" type="System.Co nfiguration.App SettingsSection , System.Configur ation,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" restartOnExtern alChanges="true "
requirePermissi on="false" />
The same for the connectionStrin gs section.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Roger Martin" <Roger Ma****@communit y.nospamwrote in message
news:D8******** *************** ***********@mic rosoft.com...
>I have referenced a separate config file in my application using the
following syntax in web.config:
<galleryServerP ro configSource="c onfig\galleryse rverpro.config"/>
There are several admin pages that modify one or more settings in this file,
and I need the application to automatically recycle when this happens so that
it loads the new values. Under IIS7 (Vista) this works fine. However, IIS6
does not recycle the app when this file changes.
What is the recommended solution? I can probably add code to "touch" the
web.config file as needed, but this feels like a hack. Is there a better way?
Cheers,
Roger Martin www.techinfosystems.com / www.galleryserverpro.com
Thank you for responding. However, this is an application I am distributing
on the internet and many users will be using a hosting provider where they do
not have access to machine.config, so this is not a practical solution.
Is there any way to set this at the application level?
Hi Roger,
It appears that you're using a custom section, right? In that case, I think
you're defining that custom section in your web.config, is that right?
Therefore you should be able to turn on the "restartOnExter nalChanges"
option in your web.config.
Here's an example on this:
#Changing Configuration in External File Example http://msdn2.microsoft.com/en-us/lib...57(vs.80).aspx
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
re:
!Is there any way to set this at the application level?
You can define your custom section in web.config,
and distribute your custom web.config to your clients.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Roger Martin" <Roger Ma****@communit y.nospamwrote in message
news:E1******** *************** ***********@mic rosoft.com...
Thank you for responding. However, this is an application I am distributing
on the internet and many users will be using a hosting provider where they do
not have access to machine.config, so this is not a practical solution.
Is there any way to set this at the application level?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: P. Glassel |
last post by:
I'm having problems getting session timeouts to change
programmaticlaly under IIS6.0. This is unchanged code
that ran as expected under IIS5.0.
Anyone else run into this problem?
Thx.
|
by: DraguVaso |
last post by:
Hi,
I have a Windows Service running (made in VB.NET), and wanted to be able to
change from time to time some parameters by changing them in the App.config.
But it seems that the application doesn't use the changed values in the
App.config, but continue to use the values that were there during start-up.
Is there a way to let the...
|
by: Christopher Benson-Manica |
last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.)
strchr() is to strrchr() as strstr() is to strrstr(), but strrstr()
isn't part of the standard. Why not?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
|
by: deja |
last post by:
Hi,
In IIS6, is there a way to reset an individual web application rather
than the whole IIS? Does that happen when you change something in
Web.config and save it?
Thanks,
Chumma Dede
|
by: Tim D |
last post by:
Hi,
I originally posted this as a reply to a rather old thread in
dotnet.framework.general and didn't get any response. I thought it might be
more relevant here; anyone got any ideas? My questions are below...
"David Good" wrote:
> We have a network running both Win2k and Win2k3 webservers and our web sites
> reside on a UNC network...
| |
by: RJ |
last post by:
I want to set the location of the log file written by
My.Application.Log.WriteEntry
MSDN doc has configuration example for changes to app.config file under
topic :
How to: Write Event Information to a Text File
I attempt to follow the doc and add to the sharedListeners section , but the
location attribute and customlocation attributes (...
|
by: olafilink |
last post by:
Hello,
we're running an Win2003server with IIS6 and PHP4 in fastCGI config.
When i try to use system() command to execute ffmpeg.exe it works ok
when i run the PHP script from the commandline on the server, but when
i run it from the webbrowser i get a return value: 128 and nothing
happens.
I checked for all the security settings, and...
|
by: =?Utf-8?B?bWNxd2VydHk=?= |
last post by:
Hello,
I'm trying to enable an error handling package at the root of my web server
by editing this file:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config
In the httpHandlers section I've added:
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory,
Elmah, Version=1.0.9414.0, Culture=neutral,...
|
by: David Thielen |
last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows
2008 Server running IIS7.
We have copied all files to the Windwardreports\apps directory and
that apps directory has been converted to an application running in
..NET 2.X and Integrated mode.
We copied over the DB and edited the web.config file to the DB
username and...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |