Last post Mar 30, 2007 01:25 AM by Benson Yu - MSFT
Mar 29, 2007 06:58 PM|dotnetiscool|LINK
I have a website developed using c# vs 2005 (.net 2.0) and i added a web deployment project to it. I also have a customconf.config file which is a replica of the web.config but with some changes in the connection strings.
I specified in the property pages of the web deployment projects as "connectionStrings=customconf.config;" and the problem is that
when I build this, it copies the customconf.config file to the build folder,
deletes it (i saw it getting copied into the folder and then disappearing automatically!!) and says the customconf.config could not be found.
This happens with any config file that I mention in the property pages in the deployment section, though I have that config file co-existing with the web.config file in the source path.
Please let me know if this behavior is common and how to go about it..... (all i need is to make sure that it takes the connection strings of customconf.config for the build package)..
Mar 30, 2007 01:25 AM|Benson Yu - MSFT|LINK
I understand the problem is the customconf.config file will be copied to build folder and than be deleted automatically which result in file not found error. If
I have any misunderstanding, please feel free to let me know.
The problem cannot be reproduced on my box. My environment is VS.NET 2005 Pro SP1 which installed on Windows XP SP2. Have you applied VS.NET 2005 SP1?
Here is a tool can help you to troubleshoot this issue. You can download it from:
Please use it monitor which process remove the customconf.config from build folder.