Page not found when running ASP.Net web application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • HvLa

    Page not found when running ASP.Net web application

    I've just installed Visual Web developer 2008 and tried to run my first
    ASP.net web site. When I run it on my Vista Business PC I got an error
    "Page can not be displayed". What should I check to get an ASP.Net
    application running. I'm familiar with classic ASP programming not with
    ASP.Net. Classic ASP applications are running fine on the same PC.

    --
    Kind regards,
    Hans
  • Juan T. Llibre

    #2
    Re: Page not found when running ASP.Net web application

    First thing to check for is whether the account ASP.NET
    is running as has ACL permissions to the application directory.

    In Vista, ASP.NET on IIS runs, by default, as the Network Authority account.

    Make sure that account has at least read permissions to the app dir.

    If you need to write to the directory, or update an Access database,
    add write permissions to the appropiate directories, too.

    If you're using VWD's Development Server,
    it will run as the MachineName\Adm inistrator account.

    Make sure *that* account has access permissions.




    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en español : http://asp.net.do/foros/
    =============== =============== ========
    "HvLa" <noreply@noserv er.comwrote in message news:ud1JnUAvIH A.420@TK2MSFTNG P02.phx.gbl...
    I've just installed Visual Web developer 2008 and tried to run my first
    ASP.net web site. When I run it on my Vista Business PC I got an error
    "Page can not be displayed". What should I check to get an ASP.Net
    application running. I'm familiar with classic ASP programming not with
    ASP.Net. Classic ASP applications are running fine on the same PC.
    >
    --
    Kind regards,
    Hans

    Comment

    • HvLa

      #3
      Re: Page not found when running ASP.Net web application

      I don't seem to have a ASPNET account! Any ideas how this is possible
      and how to correct this.

      --
      Kind regards,
      Hans van de Laar

      DataScore, uw partner in vernieuwende en pragmatische oplossingen voor uw automatiserings vraagstukken.



      Comment

      • Juan T. Llibre

        #4
        Re: Page not found when running ASP.Net web application

        re:
        !>I don't seem to have a ASPNET account!

        Of course you don't. You are running Vista.
        ASPNET was the default account in IIS 5.1, in Windows XP.

        In Vista, which runs IIS 7.0, the default IIS account is Network Service.
        If you are using IIS, that's the account which needs permissions.

        Since apparently you're not running IIS, but VWD's Development Server,
        ASP.NET will run as the MachineName\Adm inistrator account.

        Make sure *that* account has access permissions.

        re:
        !>Any ideas how this is possible and how to correct this.

        There's nothing to correct.
        Just give the right account the permissions outlined in my previous post.




        Juan T. Llibre, asp.net MVP
        asp.net faq : http://asp.net.do/faq/
        foros de asp.net, en español : http://asp.net.do/foros/
        =============== =============== ========
        "HvLa" <noreply@noserv er.comwrote in message news:upj8xyBvIH A.1316@TK2MSFTN GP06.phx.gbl...
        >I don't seem to have a ASPNET account! Any ideas how this is possible
        and how to correct this.
        >
        --
        Kind regards,
        Hans van de Laar
        >
        DataScore, uw partner in vernieuwende en pragmatische oplossingen voor uw automatiserings vraagstukken.

        >
        >

        Comment

        • HvLa

          #5
          Re: Page not found when running ASP.Net web application

          How do you give the Network Service the right permissions?

          I also noticed that the asp.net websites aren't listed in the IIS
          management console, whereas the classic asp web apps do. Shouldn't
          these asp.net apps show up also?

          --
          Kind regards,
          Hans van de Laar

          DataScore, uw partner in vernieuwende en pragmatische oplossingen voor uw automatiserings vraagstukken.



          Juan T. Llibre wrote:
          re:
          !>I don't seem to have a ASPNET account!
          >
          Of course you don't. You are running Vista.
          ASPNET was the default account in IIS 5.1, in Windows XP.
          >
          In Vista, which runs IIS 7.0, the default IIS account is Network
          Service. If you are using IIS, that's the account which needs
          permissions.
          >
          Since apparently you're not running IIS, but VWD's Development Server,
          ASP.NET will run as the MachineName\Adm inistrator account.
          >
          Make sure that account has access permissions.
          >
          re:
          !>Any ideas how this is possible and how to correct this.
          >
          There's nothing to correct.
          Just give the right account the permissions outlined in my previous
          post.
          >
          >
          >
          >
          Juan T. Llibre, asp.net MVP
          asp.net faq : http://asp.net.do/faq/
          foros de asp.net, en espaqol : http://asp.net.do/foros/
          =============== =============== ========
          "HvLa" <noreply@noserv er.comwrote in message
          news:upj8xyBvIH A.1316@TK2MSFTN GP06.phx.gbl...
          I don't seem to have a ASPNET account! Any ideas how this is
          possible and how to correct this.

          -- Kind regards,
          Hans van de Laar

          DataScore, uw partner in vernieuwende en pragmatische oplossingen voor uw automatiserings vraagstukken.

          Comment

          • Juan T. Llibre

            #6
            Re: Page not found when running ASP.Net web application

            re:
            !How do you give the Network Service the right permissions?

            You need to open the "Advanced Security Settings" dialog for the directory.
            Search Vista's help for "Advanced Security Settings".

            There's a good rundown, background info and images here :


            re:
            !I also noticed that the asp.net websites aren't listed in the IIS
            !management console, whereas the classic asp web apps do

            Did you install ASP.NET ?



            Did you *enable* ASP.NET ?

            One of the most concerned thing for developers before upgrading to Vista RTM is probably the uncertainty of development features in Vista RTM. Some of mostly asked questions, does the IIS still wor…


            Scott Guthrie has a very good rundown here :





            Juan T. Llibre, asp.net MVP
            asp.net faq : http://asp.net.do/faq/
            foros de asp.net, en español : http://asp.net.do/foros/
            =============== =============== ========
            "HvLa" <noreply@noserv er.comwrote in message news:%23xgNPZDv IHA.5288@TK2MSF TNGP06.phx.gbl. ..
            How do you give the Network Service the right permissions?
            >
            I also noticed that the asp.net websites aren't listed in the IIS
            management console, whereas the classic asp web apps do. Shouldn't
            these asp.net apps show up also?
            >
            --
            Kind regards,
            Hans van de Laar
            >
            DataScore, uw partner in vernieuwende en pragmatische oplossingen voor uw automatiserings vraagstukken.

            >
            >
            Juan T. Llibre wrote:
            >
            >re:
            >!>I don't seem to have a ASPNET account!
            >>
            >Of course you don't. You are running Vista.
            >ASPNET was the default account in IIS 5.1, in Windows XP.
            >>
            >In Vista, which runs IIS 7.0, the default IIS account is Network
            >Service. If you are using IIS, that's the account which needs
            >permissions.
            >>
            >Since apparently you're not running IIS, but VWD's Development Server,
            >ASP.NET will run as the MachineName\Adm inistrator account.
            >>
            >Make sure that account has access permissions.
            >>
            >re:
            >!>Any ideas how this is possible and how to correct this.
            >>
            >There's nothing to correct.
            >Just give the right account the permissions outlined in my previous
            >post.
            >>
            >>
            >>
            >>
            >Juan T. Llibre, asp.net MVP
            >asp.net faq : http://asp.net.do/faq/
            >foros de asp.net, en espaqol : http://asp.net.do/foros/
            >============== =============== =========
            >"HvLa" <noreply@noserv er.comwrote in message
            >news:upj8xyBvI HA.1316@TK2MSFT NGP06.phx.gbl.. .
            I don't seem to have a ASPNET account! Any ideas how this is
            possible and how to correct this.
            >
            -- Kind regards,
            Hans van de Laar
            >
            DataScore, uw partner in vernieuwende en pragmatische oplossingen voor uw automatiserings vraagstukken.

            >
            >

            Comment

            Working...