Cannot add VS2005 Web Project from SourceControl

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
NewLimit
Posts: 2
Joined: Fri Dec 16, 2005 4:30 am
Location: Alkmaar, the Netherlands
Contact:

Cannot add VS2005 Web Project from SourceControl

Post by NewLimit » Fri Dec 16, 2005 4:38 am

Hi all, since in VS2005 a website is not a project anymore (WHY???), in VS2005, the "project's" path is instead saved in the solution file.
Now i can't add an existing Web Site from Source Control any more, Visual Studio gives an error stating:

"there are no solution or project files in this location. Please select a different location. To open a website, click Help.

When I then click Help, I am redirected to the main Help page......


Anyone have a solution?


P.S. We use Vault 3.1.5 where I work.

Tonya
Posts: 916
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Post by Tonya » Fri Dec 16, 2005 2:04 pm

Hi all, since in VS2005 a website is not a project anymore (WHY???), in VS2005, the "project's" path is instead saved in the solution file.
We don't really know why Microsoft chose this new format for web projects. Regardless, you should still be able to add a web project (now referred to as Web Site) to Vault with no issues. What are the steps that you are taking to produce the new web site? Did you change any of the configurations, such as file placement or folder locations after creating the solution?

Thanks,

Tonya Nunn
SourceGear Support

gsmalter
Posts: 115
Joined: Sat Jul 09, 2005 11:13 am

Post by gsmalter » Sat Dec 17, 2005 10:37 am

I've had the most success creating a web site from scratch in VS2005 and then copying in the files from a web site I've already migrated. This fixes a lot of weird issues and lets you use the ASP.NET development server to debug the page instead of IIS.

Also note that it's impossible to exclude a file that is part of your web site from source control.

Tonya
Posts: 916
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Post by Tonya » Mon Dec 19, 2005 11:28 am

I've had the most success creating a web site from scratch in VS2005 and then copying in the files from a web site I've already migrated. This fixes a lot of weird issues and lets you use the ASP.NET development server to debug the page instead of IIS.
If you let me know your exact steps, I will attempt to reproduce the problem. If I create a brand new web site and add it to source control, the web site is added to Vault appropriately with no issues.
Also note that it's impossible to exclude a file that is part of your web site from source control.
I have noticed this change in VS 2005, it appears that Visual Studio doesn't have the option to exclude a specific file from source control if the project is a web site.

Tonya

gsmalter
Posts: 115
Joined: Sat Jul 09, 2005 11:13 am

Post by gsmalter » Mon Dec 19, 2005 11:33 am

There's no problem to reproduce. I was just providing additional information for NewLimit's benefit. Sorry for the confusion. Thanks.

NewLimit
Posts: 2
Joined: Fri Dec 16, 2005 4:30 am
Location: Alkmaar, the Netherlands
Contact:

Post by NewLimit » Fri Dec 30, 2005 6:06 am

We abandoned the new web "project" crap altogether. We now just create a new ClassLibrary from a template, which is an edited old .csproj file in which the type was changed from Web to Local with Notepad.Then create a new Virtual Directory in IIS, pointing to the directory holding the aspx files. works like a charm.

chrishawn
Posts: 6
Joined: Tue Sep 06, 2005 9:49 am

Post by chrishawn » Thu Jan 26, 2006 10:38 am

check out
http://webproject.scottgu.com/

scott guthrie is working on putting this into the next visual studio patch.
makes web stuff work like old vs2003, which seems to be better if you are making web applications and not maintaining custom coded websites which the new model seems better suited for.

Post Reply