473,503 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating ASP.NET Projects with Visual Studio .NET 2003

I've been creating some toy ASP.NET apps in an effort to understand the
technology. I've something odd with regards to project/solution creation.
If you create a new asp.net application, it appears that the project files
get created in the URL specified Location field on the New Project dialog
box. This makes sense to me. What is confusing is that the solution file
gets created in a folder with the same name as the location folder (the
virtual folder name), but that directory gets created in the directory
specified by the "Visual Studio projects location" field in the vstudio
settings.

Would someone explain to me why this is happening? I assume its desired
functionality, but I am not sure why I would want this disconnect between
the solution and the projects. I suppose this is trying to enforce some
best practices approach.

Also, how is this disconnect handled by SourceSafe version 6.0d? I'm sure
there is a nice article out there that explains all of this, I just couldn't
find it.

Any help would be much appreciated. Thanks!
Nov 19 '05 #1
3 1941
Hi epigram ...
What you are seeing is by-design (as you might guess). The solution
file contains entries that point to the web project that is found at the
specified URL. Now ... why is this done? Because solutions can have more
than one project ... and only web projects need to be at a URL. This
provides one .sln file that is easier to locate (for example, in My
Documents\Visual Studio Projects) and can combine multiple types of project
(web, distribution, dll, more web, etc.) And SourceSafe handles this just
fine -- no problems. For an *exhaustive* discussion of Visual SourceSafe for
Web projects, see the Patterns & Practices guide at
http://msdn.microsoft.com/library/en...ml/Tdlg_rm.asp.
BTW: this changes in Visual Studio 2005. While VS 2005 still supports
URL-based web projects (a la VS .NET 2003), it will also support file-based
web projects ... these would appear in the file system with the solution.

"epigram" wrote:
I've been creating some toy ASP.NET apps in an effort to understand the
technology. I've something odd with regards to project/solution creation.
If you create a new asp.net application, it appears that the project files
get created in the URL specified Location field on the New Project dialog
box. This makes sense to me. What is confusing is that the solution file
gets created in a folder with the same name as the location folder (the
virtual folder name), but that directory gets created in the directory
specified by the "Visual Studio projects location" field in the vstudio
settings.

Would someone explain to me why this is happening? I assume its desired
functionality, but I am not sure why I would want this disconnect between
the solution and the projects. I suppose this is trying to enforce some
best practices approach.

Also, how is this disconnect handled by SourceSafe version 6.0d? I'm sure
there is a nice article out there that explains all of this, I just couldn't
find it.

Any help would be much appreciated. Thanks!

Nov 19 '05 #2
By default, Solution files as well as Project files are stored in My
Document\Visual Studio Projects. However, an ASP.Net application must reside
in a web server's virtual directories. Hence, ASP.Net projects are stored in
web server virtual directories, while other executable application projects,
and solutions, are still stored where they can be easily found. You don't
have to go looking through your Inetpub folder to find ASP.Net projects. You
just open the solution and it finds the projects for you.

As for the "disconnect" issue, well, Solutions are made up of multiple
projects. A Solution can be made up of many projects, Why? Because
well-designed assemblies can be used in multiple solutions. Therefore, it
makes sense to keep the solution file "disconnected" from any particular
project.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"epigram" <no****@spammy.com> wrote in message
news:1108058540.a7e909c6d127b1889ae8c1404d9db50d@b ubbanews...
I've been creating some toy ASP.NET apps in an effort to understand the
technology. I've something odd with regards to project/solution creation.
If you create a new asp.net application, it appears that the project files
get created in the URL specified Location field on the New Project dialog
box. This makes sense to me. What is confusing is that the solution file
gets created in a folder with the same name as the location folder (the
virtual folder name), but that directory gets created in the directory
specified by the "Visual Studio projects location" field in the vstudio
settings.

Would someone explain to me why this is happening? I assume its desired
functionality, but I am not sure why I would want this disconnect between
the solution and the projects. I suppose this is trying to enforce some
best practices approach.

Also, how is this disconnect handled by SourceSafe version 6.0d? I'm sure
there is a nice article out there that explains all of this, I just
couldn't find it.

Any help would be much appreciated. Thanks!

Nov 19 '05 #3
Makes sense. Although, it doesn't appear that I can specifiy (on the fly)
where I'd like my solution to go. How would I handle this scenario:

We have a directory structure root where we like to keep all of our projects
& solutions (in various directories based upon project, product, etc. - as
is typical I believe). Let's call this c:\development. I want my If I
create an asp.net, but ultimately want all the project(s) and solution in
this structure, how would I achieve this? My approach, I suppose, would be
to first create a virtual directory that mapped to the development
subdirectory that I wanted the asp.net project to go. In order for me to
put my solution exactly where I want, I would have to go change the "Visual
Studio projects location" option (before I created the solution) to put the
solution where I wanted it to go. It seems for every asp.net
project/solution I create, I would have to go through this process. That
seems like a real pain. Is there a better way to achieve this or a
different best practices approach to this issue?

Thanks!
"J Sawyer [Microsoft]" <JS**************@discussions.microsoft.com> wrote in
message news:22**********************************@microsof t.com...
Hi epigram ...
What you are seeing is by-design (as you might guess). The solution
file contains entries that point to the web project that is found at the
specified URL. Now ... why is this done? Because solutions can have more
than one project ... and only web projects need to be at a URL. This
provides one .sln file that is easier to locate (for example, in My
Documents\Visual Studio Projects) and can combine multiple types of
project
(web, distribution, dll, more web, etc.) And SourceSafe handles this just
fine -- no problems. For an *exhaustive* discussion of Visual SourceSafe
for
Web projects, see the Patterns & Practices guide at
http://msdn.microsoft.com/library/en...ml/Tdlg_rm.asp.
BTW: this changes in Visual Studio 2005. While VS 2005 still supports
URL-based web projects (a la VS .NET 2003), it will also support
file-based
web projects ... these would appear in the file system with the solution.

"epigram" wrote:
I've been creating some toy ASP.NET apps in an effort to understand the
technology. I've something odd with regards to project/solution
creation.
If you create a new asp.net application, it appears that the project
files
get created in the URL specified Location field on the New Project dialog
box. This makes sense to me. What is confusing is that the solution
file
gets created in a folder with the same name as the location folder (the
virtual folder name), but that directory gets created in the directory
specified by the "Visual Studio projects location" field in the vstudio
settings.

Would someone explain to me why this is happening? I assume its desired
functionality, but I am not sure why I would want this disconnect between
the solution and the projects. I suppose this is trying to enforce some
best practices approach.

Also, how is this disconnect handled by SourceSafe version 6.0d? I'm
sure
there is a nice article out there that explains all of this, I just
couldn't
find it.

Any help would be much appreciated. Thanks!

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1727
by: Robert | last post by:
I get these errors when creating a asp .net web application project in VS 2003 on a remote web server: "Microsoft Development Environment The Web was created successfully, but an error occurred...
1
1561
by: Nile | last post by:
helo, I needed to create office projects from Visual Studio and installed Office Pro 2003. Visual Studio 2003 in already running. But after Office installation is completed, I wasn't able to see...
7
2363
by: SpookyET | last post by:
/FooProject /bin (release) /doc /src (only *.cs) /temp (obj files) /test (debug) /build /Visual Studio 2003 /Visual Studio 2005
1
1609
by: AmiciDan | last post by:
When I attempt to create a new project in Visual Studio .NET 2003, I do NOT have the option to create the following: Microsoft Office 2003 Projects What do I need to install or do to get this...
8
1600
by: Shane O'Keeffe | last post by:
Hi, I am getting the following error message when I attempt to create a new ASP.NET (C#) web application: The Web server reported the following error when attempting to create or open the Web...
3
2248
by: Dave | last post by:
I have an old Visual Studio 2001 VB ASP.Net application; really all I have are the folders and files from the web server. How can I "hook" this back up to Visual Studio 2003 so I can update it? ...
3
1214
by: Nathan Sokalski | last post by:
I recently upgraded from Visual Studio .NET 2003 to Visual Studio .NET 2005. I have several projects that I created in Visual Studio .NET 2003, but when I try to open them in Visual Studio .NET...
5
3257
by: BK-Chicago | last post by:
I am in the midst of porting a massive MFC application from VS6.0 to VS8.0. While i have fixed most of the compile time errors, i do have quite a linker error that i have not been able to resolve....
0
1624
by: Manikandan | last post by:
Hi, I have a c# project in VSS 6.0D as projectv1 (v1 for version 1) Projectv1 has five or six solutions and around 100 projects (including setup projects). I need to create the version 2 for the...
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.