Hi,
I have just installed Visual Studio 2005 Professional. When I start a new
ASP.NET Web Application using c# as the preferred language I don't see a
web.config file in the solutions explorer - it's not created. When I try the
same with Visual Basic and J# the web.config file is generated automaticaly.
Does anybody know if there is something wrong. Have I gone wrong somewhere
in the installation process?
Thanks in advance.
Teemu Keiski - 05 Dec 2005 07:58 GMT
Hi,
IIRC, it's not created by default. But IDE will ask for it /mention about
it, when you start debugging, if not before (as it needs web.config with
debug enabled to allow debugging). So, there shouldn't be anything wrong,
just add the web.config when you need it.

Signature
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
> Hi,
>
[quoted text clipped - 9 lines]
>
> Thanks in advance.
Steven Cheng[MSFT] - 05 Dec 2005 08:02 GMT
Hi Vision,
Welcome to MSDN newsgroup.
As for the different behavior of web.config file in VS2005 c# and VBNET
webproject, that's the expected behavior , not a problem :). It is actually
caused by the development team of the two IDE. The VC# Express and VB.net
Express 2005 are developed by different team, the C# web project use a
On-demand design to add the web.config , so it won't create web.config
until we explicitly create one.... and the web.config setting just use the
ones derived from machine.config and global web.config.... In fact, the
web.config precreated by vbnet project also only contains some default
setting......
We'll also find some other difference between Visual C# 2005 and Visual
VBNET 2005 when developing other kinds of projects (e.g winform.... )
Thanks,
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: c# web.config file in Visual Studio 2005
| thread-index: AcX4FlOAxpMYiIAnQNiDB4j5UmrtRw==
[quoted text clipped - 30 lines]
|
| Thanks in advance.