Problem with config files in VB.NET 2003 
Author Message
 Problem with config files in VB.NET 2003

Hi,

I'm currently developping an application in VB that uses application
configuration files. I think there is a bug in the environment however since
my config file disappears at compile time.
I tried the following :
- used Visual Studio .NET (original version) and followed the instructions
in Q313405 : this worked fine
- upgraded the ConConfig project to Visual Studio .NET 2003 : at compile
time my .config file just disappears (seems the Bin folder is emptied before
compilation)

Does anyone have any suggestions on how to circumvent this bug? I could do
this with a post-build step, but it seems that does not exist for VB.

regards,
Stefan Cuypers



Fri, 21 Oct 2005 17:00:36 GMT  
 Problem with config files in VB.NET 2003
before compile.
Add config file to your project.
It will be automaticly renamed yourapp.exe.config and placed into bin dir.

do you need step by step instructions?



Quote:
> Hi,

> I'm currently developping an application in VB that uses application
> configuration files. I think there is a bug in the environment however
> since my config file disappears at compile time.
> I tried the following :
> - used Visual Studio .NET (original version) and followed the
> instructions in Q313405 : this worked fine
> - upgraded the ConConfig project to Visual Studio .NET 2003 : at
> compile time my .config file just disappears (seems the Bin folder is
> emptied before compilation)

> Does anyone have any suggestions on how to circumvent this bug? I
> could do this with a post-build step, but it seems that does not exist
> for VB.

> regards,
> Stefan Cuypers



Sat, 22 Oct 2005 00:14:37 GMT  
 Problem with config files in VB.NET 2003
Arthur,

Thanks for the info. Seems the Q313405 article is indeed wrong.
The correct procedure is to add the file 'App.config' to the project (the
name of the file is important!) and then Visual Studio will indeed copy this
to yourapp.exe.config in the bin dir.

regards,
Stefan


Quote:
> before compile.
> Add config file to your project.
> It will be automaticly renamed yourapp.exe.config and placed into bin dir.

> do you need step by step instructions?



> > Hi,

> > I'm currently developping an application in VB that uses application
> > configuration files. I think there is a bug in the environment however
> > since my config file disappears at compile time.
> > I tried the following :
> > - used Visual Studio .NET (original version) and followed the
> > instructions in Q313405 : this worked fine
> > - upgraded the ConConfig project to Visual Studio .NET 2003 : at
> > compile time my .config file just disappears (seems the Bin folder is
> > emptied before compilation)

> > Does anyone have any suggestions on how to circumvent this bug? I
> > could do this with a post-build step, but it seems that does not exist
> > for VB.

> > regards,
> > Stefan Cuypers



Sat, 22 Oct 2005 14:23:48 GMT  
 Problem with config files in VB.NET 2003
What is an application configuration file and what are the benefits?

Thanks

Regards


Quote:
> before compile.
> Add config file to your project.
> It will be automaticly renamed yourapp.exe.config and placed into bin dir.

> do you need step by step instructions?



> > Hi,

> > I'm currently developping an application in VB that uses application
> > configuration files. I think there is a bug in the environment however
> > since my config file disappears at compile time.
> > I tried the following :
> > - used Visual Studio .NET (original version) and followed the
> > instructions in Q313405 : this worked fine
> > - upgraded the ConConfig project to Visual Studio .NET 2003 : at
> > compile time my .config file just disappears (seems the Bin folder is
> > emptied before compilation)

> > Does anyone have any suggestions on how to circumvent this bug? I
> > could do this with a post-build step, but it seems that does not exist
> > for VB.

> > regards,
> > Stefan Cuypers



Sun, 23 Oct 2005 07:33:41 GMT  
 Problem with config files in VB.NET 2003


Quote:
> What is an application configuration file and what are the benefits?

> Thanks

You got to be kidding? :)))
(sorry had to say it)

Config file replaces INI file in most cases.



Sun, 23 Oct 2005 21:18:00 GMT  
 Problem with config files in VB.NET 2003
Hi Stefan,

Thank you for bring that issue to our attention. I have filed a comment to
change this article.

Thanks again!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.              



Mon, 24 Oct 2005 06:36:35 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. VB .Net 2003 Standard or VS .Net 2003 Pro for Smart Devices

2. Problem with VB.NET under .NET 2003 Final beta

3. CONFIG files in VStudio 2003

4. Difference between VB NET and VB NET 2003

5. vb.net 2002 or vb.net 2003 beta

6. Practice Files Missing in VB .NET 2003?

7. bogus build error problem much worse in VB.Net 2003

8. VB datagrid scrolling problem in VS.Net 2003

9. INI files with VB 2003.NET

10. VB.Net Editor keystrokes lag/slow to respond (VS.NET 2003)

11. Visual Studio .Net 2003 Final Beta, simple socket code breaks between 2002 and 2003

12. VB.Net or VB 2003

 

 
Powered by phpBB® Forum Software