p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 1st, 2003, 07:28 AM
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using SourceSafe with ASP.NET

Until recently I have been working on the development on ASP.NET application as the only developer. I have set up a virtual directory in IIS to my development directory. Recently other developers have joined the project and we have therefore started using source safe.

We have used ‘get latest version’ to copy the project onto the other developers PCs to the same directory as on my PC (‘D:\WebApps\…’.). However visual studio insists on creating a real directory under inetpub/wwwroot to store a copy of the application and then using this folder to develop the application.

I have tried creating the virtual directory in iis before copying over the code but visual studio doesn’t want to use it.

Its causing quite a few headaches, does anyone have any ideas? I don’t know if its my lack of understanding of IIS or VSS that’s causing the problem.

:(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 1st, 2003, 10:12 AM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
Default

When you want to load an existing ASP.Net project in VSS onto a machine where that project has never been on before, here's what you do:

Create the right local directory structure where you want to put the application. Share that folder as a virtual directory with the name matching the project name (do this either thru IIS console or in windows explorer). You'll now have a empty directory.

    [u]** DO NOT GET THE CODE THRU VSS EXPLORER **</u>

Now go into VS.Net. Use File -> Source Control -> Open from source control.. to load the solution and projects onto your local machine. When you get to a project that is a web project, VS.Net will attempt to put it into a virtual directory that matches the name of the asp.net project. It will find the virtual directory you created above and use that. HOWEVER, if it finds a virtual directory with the matching name, but there is already a project file in it, it will create an alternate name (something like MyWebProject_1). This is why you must not use VSS to get the project. Let VS.Net do it.

Something to take note of: You must create the IIS virtual directory before you beginning the process in VS.Net. If you forgot to do it, then you get to the point in VS where it asks you where on the webserver you want to put the project, you can't go to IIS and set it up without completely canceling out of the "Open from Source Control" operation. This is because VS.Net loads the metadata from IIS when it reaches this stage, and it doesn't refresh it. You can make changes to IIS but that dialog box won't see them. You have to start over.

Depending on the complexity of your solutions you'll need to work things out so that the arrangement of projects in the solution doesn't cause problems when multiple people are working in them. There are ways to set them up so that it doesn't matter where any one particular user's dev directory lives on their own machine. As long as the projects of a solution can be referenced thru simple back references (../../anotherproject/anotherproject.vbproj) you'll be ok.

MS has a very good white paper on "Team Development with Visual Studio .NET and Visual SourceSafe" located here:
http://msdn.microsoft.com/library/de...asp?frame=true

It's long and complicated, but it's thorough and seems to do the trick. A lot of what you do depends on how complex your solutions get. We have solutions that have 10+ projects and many solutions share the same projects. If you set it up right, you'll eliminate redundancy of projects on your local systems and in source control.

I hope this is of some help and not just more confusing for you. It's a complicated task getting a team set up correctly. It took me months to figure it all out. Good luck. Post back when you have more questions. :)

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old October 3rd, 2003, 04:28 AM
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cheers Peter, that sorted out all our problems...

A.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual SourceSafe 2005 questions? MSByrnes Other Programming Languages 1 January 7th, 2008 02:45 AM
Visual Sourcesafe somnath.kartic ASP.NET 2.0 Professional 4 January 10th, 2007 05:09 PM
sourcesafe jay schumacher VB.NET 2002/2003 Basics 0 April 19th, 2006 02:11 PM
SourceSafe Error Fuad VB How-To 1 November 25th, 2004 06:34 AM
Launch Visual SourceSafe sheenaacre02 Pro VB 6 3 July 17th, 2003 08:06 PM



All times are GMT -4. The time now is 06:53 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc