« Previous Next »

Thread: The Asp.net application deployment questions

Last post 06-03-2008 8:43 PM by twu027. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-03-2008, 1:30 AM

    • twu027
    • Not Ranked
    • Joined on 05-28-2008, 8:36 PM
    • Posts 5

    The Asp.net application deployment questions

    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

  • 06-03-2008, 10:45 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,235
    • IIS MVPs

    Re: The Asp.net application deployment questions

    twu027:
    context.Response.Redirect("/get.aspx?page=home", False)
    I think this is your problem - you're telling it to redirect to the get.aspx page in the root folder.

  • 06-03-2008, 8:36 PM In reply to

    • twu027
    • Not Ranked
    • Joined on 05-28-2008, 8:36 PM
    • Posts 5

    Re: The Asp.net application deployment questions

    even I use the context.Response.Redirect("/kiwiweb/get.aspx?page=home", False)

    It doesn't work as I expected. it just shows me an empty page. rather than the home page.

  • 06-03-2008, 8:43 PM In reply to

    • twu027
    • Not Ranked
    • Joined on 05-28-2008, 8:36 PM
    • Posts 5

    Re: The Asp.net application deployment questions

    The only way it works is I use context.Response.Redirect("/get.aspx?page=home", False) and put everything under root directory.

    In the IDE I also configure the application to run with the IIS web server, it creates a virtual directory automatically, and it works with context.Response.Redirect("/get.aspx?page=home", False)

    but not context.Response.Redirect("/kiwiweb/get.aspx?page=home", False)

    the get.aspx doesnot exists actually, I used it just for the extension match with my http handler

    <add verb="*" path="*.aspx" type="KiwiWebServer.AspCompatSTAHandler"/>

     

Page 1 of 1 (4 items)
Microsoft Communities