473,625 Members | 3,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

App.Config cached for DLL called by ASP.Net?

I've been trying to figure out an issue that's happened twice when
deploying changes to configuration file for a .Net DLL used by an
ASP.Net 2.0 Web Service. We deploy to servers using RANT and portions
of the config files that could be different between servers are
represented by tokens that are filled in as the files are deployed to
each server.

The relevant version numbers are: Windows 2000 Server w/latest service
packs, ASP.Net 2.0 Web Service, Code Library/DLL written in Visual
Basic.Net 2005.

The symptoms are that we change the token, redeploy the file, observe
that the file is changed on the server, but don't see the change
reflected in the DLL's behaviour when invoked by the Web Service.

I've tried redeploying all of the files, stopping/starting IIS, and
editing the ASMX and VB files in the Web Service to force recompiles,
but the changes to the DLL's App.CONFIG don't appear to be forthcoming.

No doubt there is a simple, elegant answer that I'm blindly
overlooking...

Thx,

Gilbert Marlowe

Dec 20 '06 #1
1 2393
try modifying the date modified on the web.config file to force iis to
reload its settings ..
--
With Regards
Shailen Sukul
..Net Architect
(MCPD: Ent Apps, MCSD.Net MCSD MCAD)
Ashlen Consulting Services
http://www.ashlen.net.au
"CrazyOnYou " <Cr******@gmail .comwrote in message
news:11******** *************@7 3g2000cwn.googl egroups.com...
I've been trying to figure out an issue that's happened twice when
deploying changes to configuration file for a .Net DLL used by an
ASP.Net 2.0 Web Service. We deploy to servers using RANT and portions
of the config files that could be different between servers are
represented by tokens that are filled in as the files are deployed to
each server.

The relevant version numbers are: Windows 2000 Server w/latest service
packs, ASP.Net 2.0 Web Service, Code Library/DLL written in Visual
Basic.Net 2005.

The symptoms are that we change the token, redeploy the file, observe
that the file is changed on the server, but don't see the change
reflected in the DLL's behaviour when invoked by the Web Service.

I've tried redeploying all of the files, stopping/starting IIS, and
editing the ASMX and VB files in the Web Service to force recompiles,
but the changes to the DLL's App.CONFIG don't appear to be forthcoming.

No doubt there is a simple, elegant answer that I'm blindly
overlooking...

Thx,

Gilbert Marlowe

Dec 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
6509
by: Dan Olson | last post by:
My question is not about how to update an application's config file during run-time, but how to invalidate the cached copy so that if a change to the config file is made, the application can use the new data without being restarted. Is there a programmatic way to invalidate the cached copy of an app.config file? In the "old" .INI file days, there was a work-around to this caching. How do we do it today? Help is appreciated.
16
4190
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 application use the new values in the App.config? Is there kind of some 'refresh' function that I should...
4
1214
by: Holly Li | last post by:
Hi, I have an aspx page that has an image button on it. The image url of this button is another aspx page that output an image. <asp:imagebutton id="ibtnMap" runat="server" ImageUrl="ImageOutput.aspx"></asp:imagebutton></TD> The page works fine on all our dev boxes but doesn't work on the staging and production boxes that are out of our
3
1711
by: Mads Brydegaard | last post by:
Hi, I have created a custom Config handler for reading a custom config section in my .config file(s) It works very well! I have placed a web.config in my root directory and then I use sub files in sub diretories overriding various settings in the config file. Very nice strategy which really makes it easy to customize generic applications.
1
2434
by: Jay Hilyard | last post by:
Hi all, I was playing with the new ConfigurationManager class in the Feb CTP drop of VS 2005 and I noticed that if you make changes to the configuration inside of an ASP.NET page, those changes are immediately written to the web.config when you say Configuration.Save() but if I then try to access them, they do not appear to refresh within the request. Not completely unexpected I suppose but I was wondering if anyone knew if this is...
17
3240
by: Fred Nelson | last post by:
Hi: I have written several web applications that obtain their connection strings from the web.config file. This is very easy to use and it makes it easy to move an app from development into production. I'm in the process of writing a site that will have lots of traffic so I'm trying to save resources everyplace that I can. My question is - do the web.config app settings get loaded once when the
4
1234
by: John Bailo | last post by:
What's the cost of using a web.config key in a web method? Is the value cached at start up? Or at first run? Or read on each access? Is web.config always "read off the disk" or can the file be cached? I'm debating putting in a AppSetting entry versus hard coding for a web service handling many hundreds of requests per hour.
6
1422
by: NickP | last post by:
Hi there, I am implementing a simple "/U" command line argument for a .NET application that instructs the application to delete the following folders... My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData The application deletes these folders successfully then exits. Even
0
2563
by: Gauls | last post by:
Hi, I have webservice application that uses some assemblies whoes version number keeps changing and are stored in some folder on the same machine as my webservice. Every Time the assembly version changes i need to change the binding redirect and code base in the web.config file. EX : <dependentAssembly> <assemblyIdentity name="ABCD" publicKeyToken="Sometoken" culture="neutral" />
5
7845
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based setting is of course stored in the app.exe.config file located in the same directory as the exe. Upon closing the form, I save the user setting which then creates a user.config file in the appdata directory in my profile. This is all well and good....
0
8256
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8694
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
jinu1996
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8497
tracyyun
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6118
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4089
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4193
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.