I just finished the development of my ASP.NET, now I want to deploy it under IIS 5.1.
So I made an installer which packs everything the application needs, then I installed it on my virtual machine (Full network connection and IIS 5.1 installed).
The problem is this application only can be run as root. what I mean is I can not have directory structure like this:
wwwroot/kiwiweb/
kiwiweb is the virtual directory which physically resides under wwwroot directory.
the kiwiweb/ directory has its only bin folder and everything needed for my application to run.
what I expected was in the browser, I just go
http://localhost/kiwiweb/
in my code i used the redirect method. after user login.
so if the user inputs correct credentials, the home page will be shown.
this is the code does so:
context.Response.Redirect(
"/get.aspx?page=home", False)
but the strange thing is the URL will be
http://localhost/get.aspx?page=home
if I manully put kiwiweb after localhost/
it just show me a empty page. does not work as I expected.
Interestingly, if I put everything includes the bin folder the web.config directly under wwwroot,
then I go http://localhost/
everything works perfect....
http://localhost/get.aspx?page=home also works
I just want to why and is there a way to work around? Because my application is just a web interface to our main application. So I dont think it is good idea to have a domain name for this application. and it is not possible for the customer run my application only on their server.
I know IIS can host several web site, and I dont want my application to be the only site to be hosted by IIS.
but it only works when I put it directly under the root folder (including the bin folder and other neccesary files)
Great thanks if anyone can help
Cheers
Tony