473,715 Members | 5,208 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Developing more than one .net site at a time under IIS 5.1 on XP Pro

Hi all

As I'm sure is common knowledge the version of IIS included in XP Pro is
limited in that you can only create 1 website in the IIS snap in.

As an ASP.net developer this is a pain in the arse because I can't figure
out how to stop having this fact cock up my relative urls.

When I create a virtual directory - presumably what you're supposed to do
when you're only allowed one site my relative URL's refer to the root of the
*Site* and not the root of the VirDir. As such, if i want to develop more
than one application i need to have all my images in the site root's images
folder - which is bollocks

The only other option I've figured out is to create a directory for each
project in the images directory at the root of the site - which is also
bollocks because when it comes to deployment I have either have to rearrange
all the image links in my entire site or copy the images directory to the
root of the Live Site. Either way its messy.

Now, I'm guessing Microsoft aren't so stupid as to sell a product that only
lets you develop one application at a time, but as yet my colleagues and I
havent figured out a way to do this.

If anyone can explain what I need to do to have relative URLs work correctly
that would be much appreciated. Well thats actually a misnomer. VirDirs are
doing exactly what they're supposed to do but that doesnt help me develop
more than one application at a time.

Personally I think a much better solution would be to bring the connection
limit down to about 3 or 4 concurrent users and allow the user to create as
many development sites as possible. That way microsoft can be sure that the
cut down version isnt being used to host live websites to multiple users.

I'd even prefer it if they only allowed connections from the localhost or
perhaps the local lan address range. Either way their must be many many ways
that microsoft can give developers what they need and ensure that
development environments aren't used to host actual live websites.

As I say, I'm sure there is a solution. Any advice on what it actually is
would be very much appreciated.

Thanks everyone. Any thoughts on the above would be very greatfully
received.

Kindest Regards

thechaosengine
Nov 18 '05 #1
11 1998
Hello,

Well, the limitation seems to be that you are only allowed to _run_ one
website at a time. You can however create several websites, but not with the
provided GUI.

You can use WMI/ADSI to create the websites, or you can use Metabase
Explorer. A tool such as this also lets you create multiple websites, and
easily switch between them:

http://www.mindxpand.be/iisadmin/

--
Regards,
Kristofer Gafvert
http://www.ilopia.com
"Simon" <sh856531@micro softs_free_emai l_service.com> wrote in message
news:OY******** ******@TK2MSFTN GP14.phx.gbl...
Hi all

As I'm sure is common knowledge the version of IIS included in XP Pro is
limited in that you can only create 1 website in the IIS snap in.

As an ASP.net developer this is a pain in the arse because I can't figure
out how to stop having this fact cock up my relative urls.

When I create a virtual directory - presumably what you're supposed to do
when you're only allowed one site my relative URL's refer to the root of the *Site* and not the root of the VirDir. As such, if i want to develop more
than one application i need to have all my images in the site root's images folder - which is bollocks

The only other option I've figured out is to create a directory for each
project in the images directory at the root of the site - which is also
bollocks because when it comes to deployment I have either have to rearrange all the image links in my entire site or copy the images directory to the
root of the Live Site. Either way its messy.

Now, I'm guessing Microsoft aren't so stupid as to sell a product that only lets you develop one application at a time, but as yet my colleagues and I
havent figured out a way to do this.

If anyone can explain what I need to do to have relative URLs work correctly that would be much appreciated. Well thats actually a misnomer. VirDirs are doing exactly what they're supposed to do but that doesnt help me develop
more than one application at a time.

Personally I think a much better solution would be to bring the connection
limit down to about 3 or 4 concurrent users and allow the user to create as many development sites as possible. That way microsoft can be sure that the cut down version isnt being used to host live websites to multiple users.

I'd even prefer it if they only allowed connections from the localhost or
perhaps the local lan address range. Either way their must be many many ways that microsoft can give developers what they need and ensure that
development environments aren't used to host actual live websites.

As I say, I'm sure there is a solution. Any advice on what it actually is
would be very much appreciated.

Thanks everyone. Any thoughts on the above would be very greatfully
received.

Kindest Regards

thechaosengine

Nov 18 '05 #2
"Simon" <sh856531@micro softs_free_emai l_service.com> wrote in message
news:OY******** ******@TK2MSFTN GP14.phx.gbl...
Hi all

As I'm sure is common knowledge the version of IIS included in XP Pro is
limited in that you can only create 1 website in the IIS snap in.

As an ASP.net developer this is a pain in the arse because I can't figure
out how to stop having this fact cock up my relative urls.

When I create a virtual directory - presumably what you're supposed to do
when you're only allowed one site my relative URL's refer to the root of
the *Site* and not the root of the VirDir. As such, if i want to develop
more than one application i need to have all my images in the site root's
images folder - which is bollocks


Try using a URL like "~/images/something.gif". The "~" makes the URL
relative to your application, not relative to the site.

If your application is located at http://localhost/app/, then
~/images/something.gif will be http://localhost/app/images/something.gif. If
the application is in production at http://app.company.com/, then
~/images/something.gif will be http://app.company.com/images/something.gif.

This form of URL works for all elements marked as runat="server" this means
that if you want to use it in an <img> element, you'll need to make it <img
runat="server" ...>.

John Saunders
Nov 18 '05 #3
On Sat, 27 Nov 2004 20:47:12 -0000, "Simon"
<sh856531@micro softs_free_emai l_service.com> wrote:
As I'm sure is common knowledge the version of IIS included in XP Pro is
limited in that you can only create 1 website in the IIS snap in.

As an ASP.net developer this is a pain in the arse because I can't figure
out how to stop having this fact cock up my relative urls.


The obvious solution is a development server, not running on a
workstation OS. It need not be your system, any .NET server that you
can upload files to will work.

But this may solve your immediate issues:

http://www.mindxpand.be/iisadmin/

Jeff
Nov 18 '05 #4
Thanks Guys,

I'd heard about the ~ mechanism before but havent used it.

Can anyone tell me if by marking all images as runat="server" the server
will be slowed down?

Seems like quite a rubbish solution really. At least its something though.

I'm just looking at the iisadmin app just now. Thanks for letting me know
about it

Kind Regards

Simon
Nov 18 '05 #5
On Sun, 28 Nov 2004 10:25:29 -0000, "Simon"
<sh856531@micro softs_free_emai l_service.com> wrote:
Can anyone tell me if by marking all images as runat="server" the server
will be slowed down?
I'm not sure what you're asking here. Images as in the IMG tag?
Seems like quite a rubbish solution really. At least its something though.
Rubbish how? Because you have to adhere to the restrictions of your
operating system? I'm sorry I just don't have sympathy for ".NET
Developers" who don't use a development server. It kind of just
doesn't make sense.
I'm just looking at the iisadmin app just now. Thanks for letting me know
about it


It works fine, though at some point in time you will need to test on a
server.

Jeff
Nov 18 '05 #6
> Rubbish how? Because you have to adhere to the restrictions of your
operating system? I'm sorry I just don't have sympathy for ".NET
Developers" who don't use a development server. It kind of just
doesn't make sense.


I don't want your sympathy. I want Microsoft to stop crippling the web
server that it ships with its Buisiness Class operating system such that
it's a pain in the arse developing more than one application at a time. I
know why they've done it, but there are far smarter and less
counterproducti ve ways of making sure they don't undermine their server
class products.

I'm sorry you don't understand why people such as myself like developing on
their own local machine. I'll give you a few examples of why this *might* be
the case. There are many more reasons besides these:

1. Not everyone can afford to buy Visual Studio, Windows 2003 Server AND and
buisiness class client operating system. Why would I fork out for a
dedicated server OS when all I want to do is play with some ASP.net pages?

2. Not everyone has the necessary technical knowledge to set up a Server and
secure it appropriately.

3. Not everyone can be arsed figuring out how to get remote debugging
working when its far easier running locally.

4. Some people work on a laptop and so it doesnt make sense for them to set
up a test server when they may not be able to access it a large proportion
of the time.

5. Some people believe that given that microsoft tout XP Pro as the OS for
developers, they shouldnt then go and bugger one of the single most
important features of that OS that developers are going to want to use. Why
did they bother providing a development server if they were then going to
cripple it in a most frustrating manner. Did they not want developers to use
it or something?

6. Does you're assertion about Development/Test Servers apply to students
and hobbyists? Perhaps you've forgotton that not everyone makes software in
order to turn in a profit.

I'm not anti MS. Not by a long shot. But what they've done to IIS is just
stupid. There are numerous ways that they could have limited its
functionality such that you couldnt use the server to host live websites.
Limit on concurrent connections, restrict what IP addresses the server will
serve to and so on.

Anyway, I think they've finally come to their senses. The next version of
Visual Studio comes with a nice well integrated server to develop with.
Thankfully they havent as yet gone and trashed it making it useless for
those of us who develop more than one web application at one time.

I hope that helps explain the point of view of us pathetic ".Net Developers"
that don't/can't use a full Server Class OS simply to develop more than one
site at a time.

tce
Nov 18 '05 #7
"Simon" <sh856531@micro softs_free_emai l_service.com> wrote in message
news:ul******** ******@tk2msftn gp13.phx.gbl...
Rubbish how? Because you have to adhere to the restrictions of your
operating system? I'm sorry I just don't have sympathy for ".NET
Developers" who don't use a development server. It kind of just
doesn't make sense.


I don't want your sympathy. I want Microsoft to stop crippling the web
server that it ships with its Buisiness Class operating system such that
it's a pain in the arse developing more than one application at a time. I
know why they've done it, but there are far smarter and less
counterproducti ve ways of making sure they don't undermine their server
class products.


Simon,

The answer to "multiple web sites" was "~". You don't actually _need_
multiple web sites on your development machine in order to develop for
multiple web sites.
John Saunders
Nov 18 '05 #8
> Any real developer would already know this.

WTF. Who gives a rats ass what you think a real developer is and does? I
never said that I was a software developer.

Also, the reasons I gave were all completely valid. I didnt say they applied
to me though. As it happens I do know all about the tools MS provide. It's
irrelevent though - I still want to develop on my local machine and I'm
irritated that MS have bothered to put a development server in their OS and
crippled it. You're right - there are a couple of ways to get round the
problem as some helpful people have pointed out. Regardless I still think
that there are far better ways for MS to make sure the XP server isnt used
for server purposes.
As for the costs and other BS, you can purchase an Action Pack, if you
are a real developer you would already have the Action Pack, you can
also apply for the ISV program and then get the entire MSDN Universal
package for $402 including all the servers, tools, etc....
Jesus Harry Christ! Did you even both to read my last posting. I dont want
the entire f&c"£ng collection of software that MS release. Maybe $402
dollars is outside my means. Maybe it isnt. Maybe I don't want to manage a
frigging Server OS. Maybe I have a laptop and develop on the move.
As a .Net developer I'm surprised that you don't know about all the
tools and items that MS provides you for almost free - you need to look
into the Action Pack and the ISV Program and stop complaining about your
own ignorance.


Yeah and you need to understand that not everyone shares the same position
in life as you. Not everyone has a company that they can take software home
from. Not everyone wants to run server software. Not everyone can afford
servers. Not everyone is an ISV. Not everyone can afford MSDN.

Really, if you can't understand these simple principles, then it's really
only your own ignorance that you should be concerned with.

If you are actually clinically unable to engage your brain before
criticising someone in an aggressive and arrogant manner, then at least go
take some civility lessons and let the rest of us have a polite and
intelligent discussion in peace.

Thanks to anyone else who offered advice on the subject.

Very much appreciated.

Kindest Regards

tce
Nov 18 '05 #9
Hi John,

I'd heard of the ~ approach but I'd also heard that quite a few people were
having problems with it. I havent tried it yet. I like the iisadmin tool
mentioned above though because it lets you flick between sites very quickly.
I think I prefer that because then I can leave all my image URLs starting
with / instead of ~/.

It's probably silly but using /images just feels more natural to me.

Thanks for your help

tce
Nov 18 '05 #10

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

Similar topics

20
3004
by: David | last post by:
I have seen postings that indicate some developers are creating PHP apps for a Windows server environment. I am not sure if they run underr IIS or Apache, but I wonder why Windows and PHP vs. the PHP/Apache/Linux triumvirate. I would think that if you developed under windows, why not stick to ASP.net and IIS. If you want to use Apache, why not stick with Linux. Mostly curious.
13
1855
by: Duron | last post by:
I created a new folder using VS.NET 2003. Then I created a new web form under that folder, say, \Member\Default.aspx. However, even if I didn't do anything to that page, a run-time error appears when I try to run it -- Can not load class MySite._Default. I am using VB to write codes. Does anyone have any idea why this problem happens? Thanks!
6
1628
by: VMI | last post by:
A client asked me to develop a site similar to http://www.luispachecorg.com and I don't know how much I should charge for it. The site will have about 6 pages, and one of the pages will include a Search engine that will search for houses in a DB that I will also create (similar to the Search under "Nuestras propiedades" menu). Another page will include two calculators (similar to the ones in...
6
3197
by: Danny Tuppeny | last post by:
Hi all, I'm using Visual C# Express and Visual Web Developer Express. It just occured to me, that there seems to be no way to develop a web service to be consumed in VWD and use it in VC#, since the web service is run on a random port etc. Is this deliberate? An oversight? Any way around it? I develop on XP Home (sorry, laptop came with it!) so I have no IIS to "deploy" the web service to while developing, and I like being able to...
5
3305
by: will | last post by:
I have a php/mysql site and I am wondering if anyone has suggestions about strategies for making it bilingual or resources on how to do this. I thought of one way which would be to replace the text with calls to a database which has all the text in it. But I would prefer to have a single file with phrases and then just be able to translate that single file into another language to produce a site in another language. Any ideas would be...
23
1992
by: Louly | last post by:
Hi everybody, I'm a 22 yrs old girl. I've been developing a Database for 6 months no using Access. A week ago I had this feeling that I'm wasting my time in Access. I don't think it's wise to keep on working with Access. Instead I think I should consider learning and being a certified Oracle proffessional or something. What do you guys think? Thanks for your help. Miriam
4
2437
by: Jason Huang | last post by:
Hi, I am thinking in comparing developing speed between C# Windows Form and C# Web Form applications. Assuming the scenario is that we have 2 C# coding engineers, engineer A has 2 years experience on developing C# windows form, engineer B has 2 experience on developing C# web form, B also knows Javascript as well. They both has the same apprehesnion for the Database things, they all devote themselves completely to their developing...
7
1829
by: Chris Marsh | last post by:
All I've been asked run a VM on my development machine, with Windows Server 2003 installed. I've also been asked to then develop against this environment from the host machine, using Visual Studio 2003. Questions: 1. Is it even possible to use VS 2003 to develop when all files and IIS are on a remote machine or VM?
2
2243
by: =?Utf-8?B?Vk1J?= | last post by:
Where can I find information (books/links/webcasts, etc) that'll give me the basic architecture of developing a site? It won't have all of the advanced functionality of sites such as ebay, but it would include the basic functionality of an auction site: the user registration, real-time auctioning or buying of the item, posting items, payment of item purchased/listing made, feedback, departments and categories, etc... Are there any books...
0
8718
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
9340
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...
1
9103
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
9047
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6646
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
5967
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4477
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
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
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

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.