keyongtech


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

 #1  
01-11-04, 06: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: http://localhost/something,
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-12-04, 02:38 PM
Tom Kaminski [MVP]
"Ofer" <ofer> wrote in message
news:1184
> There's a mystery I can't understand:


Responded to in an earlier thread ...
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 12:40 PM. | Privacy Policy