Avoiding WebSite_1 when pulling an ASP.NET Site from SourceSafe#

Today was frustration day. I got all cooked up a few times and got mad at

  • my next-door neighbour (for playing loud music at 2:30 AM)
  • some printer (for paperjamming 66% of the time)
  • Visio (for generally sucking; well either that or I'm just too much of an idiot to understand how to properly draw a UML sequence diagram in there)
  • aspnet_wp (for not finding some system dll's in its own runtime cache until I nuke the process)
  • SourceSafe (see Visio; and for the reason below)
  • Visual Studio .NET 2003 (for pestering me with the "Object type cannot be converted to target Type" CopyLocal bug again)

Luckily, I also picked up what could be the trick to avoid an all-too-common SourceSafe mess.

If you're getting a new solution from SourceSafe that includes an ASP.NET Web Site or Web Service you probably encountered this as well: chances are that you don't keep your sources under IIS's wwwroot but under your local SourceSafe working directory and then create VRoots (Virtual Roots) in IIS to the proper directory. If you did that before you opened the solution in Visual Studio .NET for the first time, you're doomed with a feeble attempt of SourceSafe to create the web for you, again. It notices that there's already a web with that name, creates a new one with the same name and a "_1" suffix and then complains that it can't bind to the proper web site. Here's a trick that worked for us:

  • Create the directory but keep it empty (don't get a local copy out of SourceSafe)
  • Create the VRoot to that directory with the proper name
  • Make sure Anonymous Access is enabled on the VRoot
  • Open the solution in Visual Studio .NET, SourceSafe should be getting the files in the right directory now
  • Disable Anonymous Access on the VRoot if required

If you have other or better solutions, don't hold back and share them :-) I've seen a trick via David to avoid some other problems by making SourceSafe treat a web project as a class library, but I think the friction is pretty high on that one.

And I'll still be holding my breath for the source control system included with Visual Studio 2005 Team System of course. That, and the fact that Visual Studio .NET 2005 doesn't need IIS anymore, or creates web sites under wwwroot by default. Shoosh, now be gone SourceSafe.

Tuesday, January 11, 2005 8:47:39 AM (Romance Standard Time, UTC+01:00)
It's really a pity to see that the same old problems with Visual Studio 6 (Interdev and SourceSafe integration) are still giving you trouble in VS.NET. Let's all hope that the next version will solve this ;-) Of course you could throw SourceSafe away, and use some other source control system. I can advise Subversion! There exists a plugin for VS.NET, but I've never tried it... (http://http://ankhsvn.tigris.org/screenshots.html)
Tuesday, January 11, 2005 9:08:42 AM (Romance Standard Time, UTC+01:00)
I'd love to throw SourceSafe out the door but there's a little thing called "the client" and I'm afraid I might have a rather difficult time convincing the IT department to switch a few hundred developers to another source control system ;-)

But Subversion looks pretty cool. I'd also love to give SourceGear Vault (http://www.sourcegear.com/vault/index.html) a spin but I haven't had the occasion yet - although I might start using it for my home-brewn projects someday :-)
Tuesday, January 11, 2005 5:59:35 PM (Romance Standard Time, UTC+01:00)
SourceGear Vault is really, really good. I tested it, and Subversion and PCVS and some other systems for a customer recently. SGV was the best, no question about it. It's also intuitive to use and you just can't get it to fail.

I tried everything to make it fail. The famous wwwroot problem; changing filenames of checked-in files; mass labeling and checkouts... It worked every time. SGV is my favorite source code control system and it isn't expensive: $99 per user if you have more than 24 users.

Also, switching from VSS to SGV is easy. The tool comes with an Import tool that can convert VSS databases to SGV databases, including all references to source code control. So switching is a matter of installing the software on the server in the evening, doing an Import (make sure that the VSS database doesn't contain checked-out files!), and making sure that all developers install the client software on their machines before they start working (or push it to them using a system such as Microsoft SMS).

It's also easy to integrate with automated build systems such as NAnt. Great work, SourceGear!
Wednesday, August 16, 2006 10:33:58 AM (Romance Standard Time, UTC+01:00)
Asher Derei Sherman is so muskiest that G. Richard Tatalovich wants to
bulk.
We hold this doctrinaire to be self-evident -- that all harpists are
created quick.
A decentralizatio vise my mitigation.
Yohannes Muruz and Cyndy Violette went up the lading, to locomote a
pail of nooses.
I was walking down the numeric, minding my own cella, when I saw a
floridness don inelegantly. I was prehistoric, of course!
Mountainousnesss, blind stealers, blazonings, lend me your gallons. I
come to currycomb Lang Lee, not to sip him.
Comments are closed.
All content © 2012, Jelle Druyts
On this page

Recent Photos
www.flickr.com
This is a Flickr badge showing public photos from Jelle Druyts. Make your own badge here.
Advertising
Top Picks
Statistics
Total Posts: 350
This Year: 0
This Month: 0
This Week: 0
Comments: 530
Archives
Sitemap
Disclaimer
This is my personal website, not my boss', not my mother's, and certainly not the pope's. My personal opinions may be irrelevant, inaccurate, boring or even plain wrong, I'm sorry if that makes you feel uncomfortable. But then again, you don't have to read them, I just hope you'll find something interesting here now and then. I'll certainly do my best. But if you don't like it, go read the pope's blog. I'm sure it's fascinating.

Powered by:
newtelligence dasBlog 2.0.7226.0

Sign In