keyongtech


  keyongtech > inetserver.* > inetserver.iis > 01/2004

 #1  
01-08-04, 07:17 AM
Ofer
There's a mystery I can't understand:

In IIS, there is Default Web Site.
Microsoft expects (in InterDev and VS.NET) that any application I create
will reside under the Default Web Site, that is: [url down],
and doesn't let me create a different ROOT web site (which will be assigned
a different port and will be at the same level as Default Web Site).

The effect is that all across my application (web site) I won't be able to
refer to the root of the site by just slash - "/". I must refer to something
like "/something/default.aspx".

On the other hand, when my site will be depolyed on a live server, it will
be (I believe it should...) a root web site and not a subfolder that is
simply conifgured as an application, so all my references to
"/something/default.aspx" will be wrong - because in the server, the
reference should be only "/default.aspx".

Another view of the same problem: In classic ASP, I have an Includes folder
in which I have a file called Template.asp which holds (how surprising) the
top and down template and is referenced by all other ASPs in <!--
Include --> directive. I also have an Images folder which holds all the
images.
The problem is that this template is included by many ASPs - some of them
are in the root folder, some of them are in subfolders. So when I want to
refer to some image, if I'll type "images/ball.gif" it will work only in
ASPs which reside in the root folder - if they reside under a subfolder, the
reference will be wrong. The ideal is to type "/images/ball.gif" - but a-ha!
If I have to follow Microsoft's rules, this would be wrong, because the root
according to Microsoft (Interdev/VS.NET) should be "http://something/"...

What's the best to do? How can I overcome this conflict?

Thanks
 #2  
01-08-04, 09:26 AM
R.K
you need to format your hard disk then install Linux or throw your computer for charity ...
 #3  
01-08-04, 09:46 AM
Egbert Nierop \(MVP for IIS\)
"Ofer" <ofer> wrote in message
news:1760
> There's a mystery I can't understand:
>
> In IIS, there is Default Web Site.
> Microsoft expects (in InterDev and VS.NET) that any application I create
> will reside under the Default Web Site, that is:

[url down],
> and doesn't let me create a different ROOT web site (which will be

assigned
> a different port and will be at the same level as Default Web Site).

Hi Ofer,

True that VS.NET assumes virtual directories.

True as well that IF you develop on Windows 2000 server or better, you CAN
use virtual webservers by using host-headers.

Third true is, that you can COPY-PASTE deploy your scripts and binaries to a
production website without using VS.NET or something.

Much success
 #4  
01-08-04, 09:47 AM
Egbert Nierop \(MVP for IIS\)
"R.K" <anonymous> wrote in message
news:65fc
> you need to format your hard disk then install Linux or throw your

computer for charity ...

I understand that you have problems with the superiority of IIS 6 above
Linux&apache.
 #5  
01-08-04, 11:10 AM
Ofer
Egbert , You didn't answer the question!

"Egbert Nierop (MVP for IIS)" <egbert_nierop> wrote in message
news:2412
[..]
 #6  
01-08-04, 01:35 PM
Tom Kaminski [MVP]
"Ofer" <ofer> wrote in message
news:1760
> There's a mystery I can't understand:
>
> In IIS, there is Default Web Site.
> Microsoft expects (in InterDev and VS.NET) that any application I create
> will reside under the Default Web Site, that is:

[url down],
> and doesn't let me create a different ROOT web site (which will be

assigned
> a different port and will be at the same level as Default Web Site).


That's not true at all. You have to first configure the new site (virtual
server) using the IIS MMC - it can't be done from Visual Studio.

> Another view of the same problem: In classic ASP, I have an Includes

folder
> in which I have a file called Template.asp which holds (how surprising)

the
> top and down template and is referenced by all other ASPs in <!--
> Include --> directive. I also have an Images folder which holds all the
> images.
> The problem is that this template is included by many ASPs - some of them
> are in the root folder, some of them are in subfolders. So when I want to
> refer to some image, if I'll type "images/ball.gif" it will work only in
> ASPs which reside in the root folder - if they reside under a subfolder,

the
> reference will be wrong. The ideal is to type "/images/ball.gif" - but

a-ha!
> If I have to follow Microsoft's rules, this would be wrong, because the

root
> according to Microsoft (Interdev/VS.NET) should be "http://something/"...
>
> What's the best to do? How can I overcome this conflict?


I'm not following your problem here. If you use a path without the initial
"/", then you're referring to a resource within the current directory.
Similar Threads
Running applications in root window

Ubder KDE3, it was possible, for example, to set Wallpaper to "None" then run xplanet in the root window. Under KDE4, that seems to be no longer possible. I can set...

File creation in the web applications' root

Hello all. Is it possible to get the path at which my application root is placed by means of either the ServletContext or the ServletConfig object? What I am trying to do...

Can run some applications only as root

Hi I have a strange problem since I installed Feisty Fawn : I cannot run applications like seamonkey, gizmo and realplayer as a regular user. I can run them normally as root...

IIS Applications & Root Sites

There's a mystery I can't understand: In IIS, there is Default Web Site. Microsoft expects (in InterDev and VS.NET) that any application I create will reside under the...

Root can't start X applications any more

I've installed kdm (KDE display manager) to start KDE automatically. If I try to start an X application as root I get these error messages now: ~> su Password: .... /etc#...


All times are GMT. The time now is 08:54 PM. | Privacy Policy