webconfig file

  • Thread starter Thread starter rapaka.srinivas
  • Start date Start date
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
 
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?
 
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
 
Back
Top