472,805 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

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 1889
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
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
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
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
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
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
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
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
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
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.