ASP.NET Web Project?

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

Moderator: SourceGear

Post Reply
kwilliams
Posts: 8
Joined: Tue Jun 15, 2004 12:20 pm
Location: Tulsa, OK
Contact:

ASP.NET Web Project?

Post by kwilliams » Tue Jun 15, 2004 12:24 pm

Previously with VSS, I have created solutions in VS.NET that contain both web projects and non-web projects. When the solution file is retrieved from VSS to a new machine and is opened in VS.NET, you are prompted where to created the web projects (default is http://localhost/Project) and are then they are automatically retrieved to C:\inetpub\wwwroot\Project while the non-web projects are retrieved under the solution's folder.

Is it possible to do this using Vault? It's kind of a pain to get the solution into one folder and then have to manually retrieve the web projects to the wwwroot...

Thanks!
-Kevin

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Tue Jun 15, 2004 1:31 pm

Yes, VS handles this automatically, and under the hood it simply creates a working folder for the web project at the location you specify.

kwilliams
Posts: 8
Joined: Tue Jun 15, 2004 12:20 pm
Location: Tulsa, OK
Contact:

Post by kwilliams » Tue Jun 15, 2004 2:39 pm

First, I'm using Vault 2.0.3 integrated with VS.NET 2003.

Here's what I just tried...
  1. Create a blank solution in VS.NET - saved to C:\src\Test
  2. Add a C# ASP.NET WebService to the solution at http://localhost/TestService
  3. Right-click on the solution and choose "Add Solution to Source Control".
  4. Received the "You are attempting to add some File Share Web access projects to source control" message. This time, I just clicked "Continue".
  5. I chose a folder in the "Add to Vault Folder" dialog for both the solution and the project when prompted.
  6. All source integration operations appear to work fine on the machine I used to do the add, so I moved to a new machine.
  7. On the new machine, I fired up the Vault client and retrieved only the solution file (*.sln) from Vault. I fetched it to C:\src\Test just like on the other computer.
  8. Upon opening the solution in VS.NET, I received the "solution appears to be under source control, but its binding information cannot be found. It is possible that the MSSCCPRJ.SCC file or another item that holds the source control settings for the solution, has been deleted" message.
  9. After clearing that error, I received the "Unable to open Web project" error. I tried both file share and FrontPage Extensions modes, but neither would work.
  10. At this point, I cleared out both machines and the Vault database and started over. When I reached step #4 above, I cancelled out and switched the TestService project settings' web access mode to FrontPage and attempted to add the solution to source control again. I still received the "File Share Web access" warning even though the project should not be using file share any more. <shrug>
  11. After following the remainder of the above steps a second time, I ended up with the very same result.
So I have to ask - how do I make this work with Vault? I've done this numerous times with VSS - on the new machine, you fetch just the .sln file, open it, you are prompted to create a new web project, and the files are automatically fetched there. Am I just doing something wrong or is this something that just doesn't work with Vault integration?

Thanks!
-Kevin

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Tue Jun 15, 2004 3:00 pm

I think the problem is step 7. Instead of doing a Get from the GUI client, do an Open From Source Control from within Visual Studio. It should then ask where you want the web project located, and set the working folder appropriately.

kwilliams
Posts: 8
Joined: Tue Jun 15, 2004 12:20 pm
Location: Tulsa, OK
Contact:

Post by kwilliams » Tue Jun 15, 2004 3:08 pm

Wow, thanks. That was simple! It works perfectly now, thank you.

That's actually better than the way I was doing it with VSS - no need to leave VS.NET now. :)

-Kevin

Post Reply