hosting asp.net web application in IIS 6.0 gives error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • user1980
    New Member
    • Dec 2009
    • 112

    hosting asp.net web application in IIS 6.0 gives error

    Hello there...

    I am not sure if this question is to be asked in asp.net or IIS...so moderator..pls feel free to move this thread if it is to be in IIS topic..

    now coming to my problem...I have an asp.net web application which i tried to host in IIS 6.0..now when I try to access the page..it gives me the message "you are not authorized to view this page". I am not sure if I have correctly hosted the application or not.....
    I followed this blog, as I was not sure on how to host the application..
    http://blogs.msdn.com/charlie/archive/2009/04/08/publishing-an-asp-net-web-application-in-iis.aspx..

    so can somebody please help me on how to host the application.... thanks in advance...
  • planetboy1982
    New Member
    • Jan 2010
    • 7

    #2
    Try out using ADMIN credential and check using some different iis version well u need iis 7.0 for vs 2008

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      There could be a number of reasons why you're seeing this error.
      After you created the virtual directory for the web application, did you specify that no directory browsing was allowed? Did you remember to specify a default page for the site?

      If you are not allowed to browse the directory, and there is no default page for the site...and you just type "www.mydomain.c om"...then you will see this message because you aren't allowed to view the directory. However, if you were to type "www.mydomain.c om/default.aspx" then you probably wouldn't see the error.

      To fix this, open the IIS snap in, browse to your website. Right click on it and select "properties ". Go to the Documents tab in the properties window for your website and add the name of the page that should be used as the default document....mov e this name to the top of the list.

      -Frinny

      Comment

      • user1980
        New Member
        • Dec 2009
        • 112

        #4
        thank you for the responses..... I did try to put my webform in the top of the list of the documents and also allowed only anonymous access ..and it is working now...
        thank you once again

        Comment

        Working...