Cannot add VS2005 Web Project from SourceControl
Moderator: SourceGear
Cannot add VS2005 Web Project from SourceControl
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.
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.
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?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.
Thanks,
Tonya Nunn
SourceGear Support
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.
Also note that it's impossible to exclude a file that is part of your web site from source control.
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.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.
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.Also note that it's impossible to exclude a file that is part of your web site from source control.
Tonya
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.
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.
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.