webconfig file

R

rapaka.srinivas

Hi i am having a problem with dynamic webconfig.What i am doing
exactly is i am calling a fucntion in app_start event that will fetch
connection string from my system registry and updates my webconfig
file.While there is no problem upto this.

But when i am trying to call configuration manger it is
showing that connection string is not avalible and throwing
error.After the error, if i refresh it it is working fine.I didnt
undetstand what making this problem,

I would appreciate if anybody can help solving this problem
 
G

Guest

Hi i am having a problem with dynamic webconfig.What i am doing
exactly is i am calling a fucntion in app_start event that will fetch
connection string from my system registry and updates my webconfig
file.While there is no problem upto this.

But when i am trying to call configuration manger it is
showing that connection string is not avalible and throwing
error.After the error, if i refresh it it is working fine.I didnt
undetstand what making this problem,

I would appreciate if anybody can help solving this problem

Can you post the code here, please?
 
G

Guest

Here's the problem with this kind of scheme: When you write to the
web.config, this causes your application to restart. ASP.NET monitors changes
to files, pages, the web.config and will automatically restart. You need to
find a better way.
If you need to encrypt your stuff in web.config, there are provided tools
that will do this. Look at the documentation.
--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top