473,624 Members | 2,612 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 1233

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

Similar topics

5
1692
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 were in use and max pool size was reached.'
0
1706
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 Server 2000
0
983
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 mode="Legacy"/> Maybe I need to upgrade to SP2 like on my workstation? Also, it looks like it is using...
2
3186
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, could you please let me know? Also, is there any automated way of extracting individual scripts...
1
3744
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 precompiled site to be updatable.
3
2402
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 haven't seen anything that jumps out at me.
19
1866
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
1108
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 control but can't get either way to work.
0
8246
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8631
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4084
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4184
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2612
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
1796
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.