473,888 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Issues with multiple website development on Windows 2000 pro box

I have three websites that were developed by using the same code in .net.
They are all located under wwwroot on my desktop running windows 2000
pro.because Windows 2000 pro only supports a single Default Web Site I have
to switch the IIS path to test the code on my own box.

Once I boot up, I change the path on the Default Web Site in the Internet
Services Manager to point to project A and I start up the IDE and I select
project A to edit and I then click on the run button and a browser window
opens with the correct apsx page displayed. I close down the IDE and I go
back into Internet Services Manager and change the path on the default Web
Site to project B. I then start up the IDE and I select project B to edit
and I then click on the run button and a browser window opens but instead of
using the path C:\inetpub\wwwr oot\B it is using the prior projects path of
C:\inetpub\wwwr oot\A. Which causes the incorrect images to appear. I have to
reboot my machine every time I switch from project to project. Can you give
me any hints of how to avoid this or correct it?

Thanks,

Steve Mauldin
Jan 12 '06 #1
6 1963
Can;t you have all the projects running under the same IIS web site? Or
does your code have hardcoded paths that assume the web site is running at
the root?

Anyway, this is a shot in the dark, but I would try a "net stop iisadmin /y"
at the console followed by "net start w3svc" to hopefully get your changed
settings to refresh without restarting the whole machine.

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:uT******** *****@TK2MSFTNG P09.phx.gbl...
I have three websites that were developed by using the same code in .net.
They are all located under wwwroot on my desktop running windows 2000
pro.because Windows 2000 pro only supports a single Default Web Site I
have
to switch the IIS path to test the code on my own box.

Once I boot up, I change the path on the Default Web Site in the Internet
Services Manager to point to project A and I start up the IDE and I select
project A to edit and I then click on the run button and a browser window
opens with the correct apsx page displayed. I close down the IDE and I go
back into Internet Services Manager and change the path on the default Web
Site to project B. I then start up the IDE and I select project B to edit
and I then click on the run button and a browser window opens but instead
of
using the path C:\inetpub\wwwr oot\B it is using the prior projects path of
C:\inetpub\wwwr oot\A. Which causes the incorrect images to appear. I have
to
reboot my machine every time I switch from project to project. Can you
give
me any hints of how to avoid this or correct it?

Thanks,

Steve Mauldin

Jan 12 '06 #2
Gabriel,

These are separate websites and expect to be at the root. www.A.com,
www.B.com , and www.C.com
I'll try stopping the iisadmin and restarting it. I was hoping it was just
a setting I had wrong. Seems a lot of work to
stop and start IIS all the time to be able to develop multiple websites on a
windows 2000 pro box. Also this
problem is occuring on windows XP pro as well.

Thanks for the input,

Steve Mauldin

"Gabriel Magaña" <no*****@no-spam.com> wrote in message
news:ub******** ******@TK2MSFTN GP15.phx.gbl...
Can;t you have all the projects running under the same IIS web site? Or
does your code have hardcoded paths that assume the web site is running at
the root?

Anyway, this is a shot in the dark, but I would try a "net stop iisadmin /y" at the console followed by "net start w3svc" to hopefully get your changed
settings to refresh without restarting the whole machine.

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:uT******** *****@TK2MSFTNG P09.phx.gbl...
I have three websites that were developed by using the same code in .net.
They are all located under wwwroot on my desktop running windows 2000
pro.because Windows 2000 pro only supports a single Default Web Site I
have
to switch the IIS path to test the code on my own box.

Once I boot up, I change the path on the Default Web Site in the Internet Services Manager to point to project A and I start up the IDE and I select project A to edit and I then click on the run button and a browser window opens with the correct apsx page displayed. I close down the IDE and I go back into Internet Services Manager and change the path on the default Web Site to project B. I then start up the IDE and I select project B to edit and I then click on the run button and a browser window opens but instead of
using the path C:\inetpub\wwwr oot\B it is using the prior projects path of C:\inetpub\wwwr oot\A. Which causes the incorrect images to appear. I have to
reboot my machine every time I switch from project to project. Can you
give
me any hints of how to avoid this or correct it?

Thanks,

Steve Mauldin


Jan 12 '06 #3
Yeh I had a hunch that you were assuming the web site was running at the
root. Usually it is better to do "~/" references than "/" references, but I
will not attempt to lecture you on that, LOL!

And yes, it is a limitation of non-server O/S placed there by MS so that you
do not buy a workstation machine O/S to function as a real web server.

I know of people that develop on Win2003 servers just for this reason.

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:e2******** *****@TK2MSFTNG P09.phx.gbl...
Gabriel,

These are separate websites and expect to be at the root. www.A.com,
www.B.com , and www.C.com
I'll try stopping the iisadmin and restarting it. I was hoping it was
just
a setting I had wrong. Seems a lot of work to
stop and start IIS all the time to be able to develop multiple websites on
a
windows 2000 pro box. Also this
problem is occuring on windows XP pro as well.

Thanks for the input,

Steve Mauldin

"Gabriel Magaña" <no*****@no-spam.com> wrote in message
news:ub******** ******@TK2MSFTN GP15.phx.gbl...
Can;t you have all the projects running under the same IIS web site? Or
does your code have hardcoded paths that assume the web site is running
at
the root?

Anyway, this is a shot in the dark, but I would try a "net stop iisadmin

/y"
at the console followed by "net start w3svc" to hopefully get your
changed
settings to refresh without restarting the whole machine.

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:uT******** *****@TK2MSFTNG P09.phx.gbl...
>I have three websites that were developed by using the same code in
>.net.
> They are all located under wwwroot on my desktop running windows 2000
> pro.because Windows 2000 pro only supports a single Default Web Site I
> have
> to switch the IIS path to test the code on my own box.
>
> Once I boot up, I change the path on the Default Web Site in the Internet > Services Manager to point to project A and I start up the IDE and I select > project A to edit and I then click on the run button and a browser window > opens with the correct apsx page displayed. I close down the IDE and I go > back into Internet Services Manager and change the path on the default Web > Site to project B. I then start up the IDE and I select project B to edit > and I then click on the run button and a browser window opens but instead > of
> using the path C:\inetpub\wwwr oot\B it is using the prior projects path of > C:\inetpub\wwwr oot\A. Which causes the incorrect images to appear. I have > to
> reboot my machine every time I switch from project to project. Can you
> give
> me any hints of how to avoid this or correct it?
>
> Thanks,
>
> Steve Mauldin
>
>



Jan 12 '06 #4
Steve,

I've run into this frustration before... one way to handle this is to
run each of the sites as a virtual directory with an application enabled
under your Default Web Site directory.

From ASP.NET's perspective each virtual directory is actual it's own
website. So "localhost/A", "localhost/B", "localhost/C" are all independent.

Then when you use controls in websites A, B, and C, you set their paths
using the "~/" prefix which is automatically resolved to the appropriate
application relative path.

ie, ~/images/image.gif would be resolved to
/localhost/A/images/image.gif if it was running in site A.

There will be problems for controls that don't run with the
runat="server" flag set, so if you have lots of plain images, or
absolute links that you aren't running as HtmlControls, they won't show
or link correctly during development.

As far as your specific problem with changing the Default Site
directory, I'm not sure what the answer is... sorry.

Hope this helps,
Luke

Steve Mauldin wrote:
Gabriel,

These are separate websites and expect to be at the root. www.A.com,
www.B.com , and www.C.com
I'll try stopping the iisadmin and restarting it. I was hoping it was just
a setting I had wrong. Seems a lot of work to
stop and start IIS all the time to be able to develop multiple websites on a
windows 2000 pro box. Also this
problem is occuring on windows XP pro as well.

Thanks for the input,

Steve Mauldin

"Gabriel Magaña" <no*****@no-spam.com> wrote in message
news:ub******** ******@TK2MSFTN GP15.phx.gbl...
Can;t you have all the projects running under the same IIS web site? Or
does your code have hardcoded paths that assume the web site is running at
the root?

Anyway, this is a shot in the dark, but I would try a "net stop iisadmin

/y"
at the console followed by "net start w3svc" to hopefully get your changed
settings to refresh without restarting the whole machine.

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:uT******** *****@TK2MSFTNG P09.phx.gbl...
I have three websites that were developed by using the same code in .net.
They are all located under wwwroot on my desktop running windows 2000
pro.because Windows 2000 pro only supports a single Default Web Site I
have
to switch the IIS path to test the code on my own box.

Once I boot up, I change the path on the Default Web Site in the Internet Services Manager to point to project A and I start up the IDE and I select project A to edit and I then click on the run button and a browser window opens with the correct apsx page displayed. I close down the IDE and I go back into Internet Services Manager and change the path on the default Web Site to project B. I then start up the IDE and I select project B to edit and I then click on the run button and a browser window opens but instead of
using the path C:\inetpub\wwwr oot\B it is using the prior projects path of C:\inetpub\wwwr oot\A. Which causes the incorrect images to appear. I have to
reboot my machine every time I switch from project to project. Can you
give
me any hints of how to avoid this or correct it?

Thanks,

Steve Mauldin


Jan 12 '06 #5
Follow up. This problem is being caused from caching. either the IIS, IDE,
or both are caching files and when the file names are the same I am getting
the older cached file. So images, JS files, etc. from the prior website are
loading in stead of the the new site. Stopping and restarting IIS does not
always clear this problem up and I am still having to reboot. There has to
be a way of stopping the caching of the browser in developemnt mode. Any
ideas?

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:e2******** *****@TK2MSFTNG P09.phx.gbl...
Gabriel,

These are separate websites and expect to be at the root. www.A.com,
www.B.com , and www.C.com
I'll try stopping the iisadmin and restarting it. I was hoping it was just a setting I had wrong. Seems a lot of work to
stop and start IIS all the time to be able to develop multiple websites on a windows 2000 pro box. Also this
problem is occuring on windows XP pro as well.

Thanks for the input,

Steve Mauldin

"Gabriel Magaña" <no*****@no-spam.com> wrote in message
news:ub******** ******@TK2MSFTN GP15.phx.gbl...
Can;t you have all the projects running under the same IIS web site? Or
does your code have hardcoded paths that assume the web site is running at
the root?

Anyway, this is a shot in the dark, but I would try a "net stop iisadmin /y"
at the console followed by "net start w3svc" to hopefully get your changed settings to refresh without restarting the whole machine.

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:uT******** *****@TK2MSFTNG P09.phx.gbl...
I have three websites that were developed by using the same code in ..net. They are all located under wwwroot on my desktop running windows 2000
pro.because Windows 2000 pro only supports a single Default Web Site I
have
to switch the IIS path to test the code on my own box.

Once I boot up, I change the path on the Default Web Site in the

Internet Services Manager to point to project A and I start up the IDE and I select project A to edit and I then click on the run button and a browser window opens with the correct apsx page displayed. I close down the IDE and I go back into Internet Services Manager and change the path on the default Web Site to project B. I then start up the IDE and I select project B to edit and I then click on the run button and a browser window opens but instead of
using the path C:\inetpub\wwwr oot\B it is using the prior projects
path of C:\inetpub\wwwr oot\A. Which causes the incorrect images to appear. I have to
reboot my machine every time I switch from project to project. Can you
give
me any hints of how to avoid this or correct it?

Thanks,

Steve Mauldin



Jan 12 '06 #6
Press ctrl-f5 on your browser to force a re-fetch of the file?

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Follow up. This problem is being caused from caching. either the IIS,
IDE,
or both are caching files and when the file names are the same I am
getting
the older cached file. So images, JS files, etc. from the prior website
are
loading in stead of the the new site. Stopping and restarting IIS does
not
always clear this problem up and I am still having to reboot. There has
to
be a way of stopping the caching of the browser in developemnt mode. Any
ideas?

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:e2******** *****@TK2MSFTNG P09.phx.gbl...
Gabriel,

These are separate websites and expect to be at the root. www.A.com,
www.B.com , and www.C.com
I'll try stopping the iisadmin and restarting it. I was hoping it was

just
a setting I had wrong. Seems a lot of work to
stop and start IIS all the time to be able to develop multiple websites
on

a
windows 2000 pro box. Also this
problem is occuring on windows XP pro as well.

Thanks for the input,

Steve Mauldin

"Gabriel Magaña" <no*****@no-spam.com> wrote in message
news:ub******** ******@TK2MSFTN GP15.phx.gbl...
> Can;t you have all the projects running under the same IIS web site?
> Or
> does your code have hardcoded paths that assume the web site is running at > the root?
>
> Anyway, this is a shot in the dark, but I would try a "net stop
> iisadmin

/y"
> at the console followed by "net start w3svc" to hopefully get your changed > settings to refresh without restarting the whole machine.
>
> "Steve Mauldin" <st**********@h otmail.com> wrote in message
> news:uT******** *****@TK2MSFTNG P09.phx.gbl...
> >I have three websites that were developed by using the same code in .net. > > They are all located under wwwroot on my desktop running windows 2000
> > pro.because Windows 2000 pro only supports a single Default Web Site
> > I
> > have
> > to switch the IIS path to test the code on my own box.
> >
> > Once I boot up, I change the path on the Default Web Site in the

Internet
> > Services Manager to point to project A and I start up the IDE and I

select
> > project A to edit and I then click on the run button and a browser

window
> > opens with the correct apsx page displayed. I close down the IDE and
> > I

go
> > back into Internet Services Manager and change the path on the
> > default

Web
> > Site to project B. I then start up the IDE and I select project B to

edit
> > and I then click on the run button and a browser window opens but

instead
> > of
> > using the path C:\inetpub\wwwr oot\B it is using the prior projects

path
of
> > C:\inetpub\wwwr oot\A. Which causes the incorrect images to appear. I

have
> > to
> > reboot my machine every time I switch from project to project. Can
> > you
> > give
> > me any hints of how to avoid this or correct it?
> >
> > Thanks,
> >
> > Steve Mauldin
> >
> >
>
>



Jan 13 '06 #7

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

Similar topics

16
1798
by: clintonG | last post by:
I haven't installed VS2005 B2 yet. My main concern is installing VS2005 B2 on the XP Pro machine where VSN2003 already exists. Am I asking for trouble? Your comments... <%= Clinton Gallagher
3
2218
by: Carl Johansen | last post by:
I have a big ASP website (used by several thousand car dealers) that is a collection of lots of small and medium-sized applications. Now I want to start adding ASP.NET applications to it. I have read Q307467 (How To Create an ASP.NET Application from Multiple Projects for Team Development) and it seems to work well. I understand that when you create a web project in VS.NET, it creates an IIS application root, and that you can remove this...
9
2782
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I have been commissioned to create a web-based application for a client. It has a formsaunthentication...
7
4054
by: vamichael | last post by:
When I try to run the Website Administration Tool from my published application using http://localhost/myapp/webadmin.axd I am getting a "resource not found" error message. I can use the Admin tool from the IDE however. I noticed some people referring to a directory called c:\Inetpub\wwwroot\aspnet_webadmin\, which i do not have on my system.
0
1406
by: Nabeel | last post by:
Our website application has been hosted on a Windows 2003 server(it's a development server) result on a 404 not found error. We tried all the possible configuration , but it couldn't help us to solve. The details of the software on this machine is Windows 2003 server standard edition IIS6.0 Team foundation server 2005 SQL server 2005 Website is developed using Visual Studio 2005 Website is running on .net framework 2.0 or above
2
3229
by: Arthur Dent | last post by:
Hello all, We have a development web server where we host our sites under development and let clients look at them as they are coming along at milestones to make feedback and suggestions. I am developing websites (ASP.NET 2) against this server, using VS.NET 2005 from my machine, running Windows XP SP2. When i try to build this website now using the Build > Build Website menu, i get the following error:
62
5093
by: Tony Ciconte | last post by:
I have a rather complex commercial Acc2003 application (tab controls, 50K+ lines of VBA code, etc.) that will not run well at all on Windows Vista Ultimate. I have seen posts indicating that Acc2003 MDBs should work on Vista. However, our particular file has too many problems to be viable on a Vista platform. Even converting it to an Acc2007 accdb file has no positive effect. I realize that Vista is new and should be avoided like the...
3
4539
by: teddarr | last post by:
I have a Windows Server 2003. I am trying to run multiple websites on the server. I have 3 different websites I'd like to run. Currently the default website is working but no others. All the domains have an a record pointing to the network router. The router is conficured correctly to send all website requests to my server. One the server and for each website I went to the IIS manager on the Websites tab and have the IP address set...
0
2453
by: teddarr | last post by:
I have a Windows Server 2003. I am trying to run multiple websites on the server. I am using host headers to run the websites on only one ip address. Before anyone says this is an iis issue and in the wrong forum, Please note that I have tested all the host header settings with a simple hello world html file and everything works great. I get a runtime error that tells me to change custom errors to "Off". The main problem is that custom...
0
9961
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
9800
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
10778
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
10886
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9597
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7990
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
5819
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...
2
4245
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3252
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.