473,544 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Site DNS, VS 2005, and Source control

We are using windows 2003 standard server, VSS 2005 and VS 2005 (mostly team
dev, but some team arch and suite)

We run windows 2003 on our development boxes, this gives us the ability to
host multiple web sites running on the box at a time, this works great for
the most part. However, we have the following issue:

Lets say I have two web sites set up on my box that respond to their
corresponding host header value:

website1.localh ost.com
website2.localh ost.com

These DNS entries are added to all the developers hosts files, they all
point to 127.0.0.1

I do the following to create a new site:

Create the directory for the solution
Create the directory for the site
Create the virtual directory under website1 and name it MyNewSite
Create an empty solution in VS
Add a new web site to VS using the following URL
http://website1.localhost.com/MyNewSite

Once done I add the site to VSS as follows:

Drag drop the root folder to VSS
Telling it to check everything out
Open the project in VS
Set up the bindings
Check everything in
Delete from VSS any files not checked in

This all works fine, the reason for the steps above is so that when someone
else grabs the solution from VSS the Virtual directory is created under the
site and it's path is set to the same path I had set it to. This ensures
that everyone's path on the team is the same and we don't get any absolute
path issues. This was working just fine using Local host as our site.

Recently we've decided to set up each web site on our local boxes, as stated
above, so we are no longer using just local host. So I duplicate the above
steps with a brand new solution/website.

Once I've done the above and have the site under Source Control I delete the
Virtual directory and source files/dirs from my drive. I then pull the
solution from source control allowing VS to recreate the source directories
and virtual directory.

Once the solution is finally loaded it now has the web site as:
http://localhost/MyNewWebSite

instead of
http://website1.localhost.com/MyNewSite

This causes the virtual directory to be created under the wrong site in IIS.
If I remove all the blank host headers that respond to port 80, the site is
then pulled down as a file system based web site.

It is important that the DNS be preserved so that the site gets created
under the correct web site in IIS, otherwise some of our apps will not work
correctly. How do I get the solution/site when checked into VSS to keep the
DNS that I created it with?
May 20 '06 #1
0 1227

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1681
by: Bendik Engebretsen | last post by:
Developed this personal WEB site with the new ASP.NET 2.0 Beta: http://www.techsoft.no/bendik/ It has got this problem: After a while browsing through pictures on the site, an error occurs: 'Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections...
0
1699
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire solution uses the following technologies - Windows Server 2003 Windows Mobile 2003 Windows XP Professional SP2 Windows 2000 Professional SP4 SQL...
0
976
by: Chris Davoli | last post by:
Environment is: Win server 2003, SP1, Installed both Framework 1.1 and Framework 2.0. I've got a 2005 web site (converted from VS2003). When I deploy to test server it gives me the following error(Could not load type 'BN.Global'). Before this error I got an error in the web config for this tag so I took it out ---> <xhtmlConformance...
2
3175
by: d.grabov | last post by:
We are trying to use source control to store our database objects and queries in Perforce. The general idea is to produce scripts which create all objects in the DB and then store the SQL in source control. Has anyone done this before and can suggest some advice? Alternatively if anyone has other methods for using source control on a database,...
1
3739
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I wanted to move my work and needed to place it on the server. Using VS 2005 , went to BUILD -Publish Web Site Checked the box for :: Alow this...
3
2401
by: DBLWizard | last post by:
Howdy All, Is it possible to have Visual Studio 2005 create a project form an existing hosted website? In other words I want to be able connect via ftp to my website structure and have it pull down all the files and create a local project from it? I know things like DreamWeaver will do this ... and I have been poking around VS 2005 and...
19
1855
by: nyhetsgrupper | last post by:
Hi, Which project type do you prefer? Is the web site or web application project the best solution? The application I am about to write is completly new so migrating from vs 2003 is not an issue, but it has to be easy to deploy the application (precompiled, I don't want to give away my source)
2
1105
by: Robert Gills | last post by:
I've got a Web Application project that I converted from a 2003 Web Application project. The conversion works fine but when I check it into source safe and try to load it on another machine it always opens as a Web Site project. Any clues? I've tried opening from the file->open menu and from Source Control->Open Project from Source...
0
7360
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7363
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7701
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5899
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4906
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3403
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1833
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
983
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.