Server problem - ASP.NET deployment

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

    Server problem - ASP.NET deployment

    This is such a "dead in the water" problem I don't even know if this is the
    right forum for it.
    I have developed an ASP.NET/C# project on my own PC and it's working. I then
    transferred it to the remote serverwhere it will finally reside. I'm not a
    server expert, but the administrator says that ASP.NET is enabled. However,
    when I access any of the pages I just get a generic "Server Error in '/'
    Application. Runtime Error" page that tells me how to change the customErrors
    mode to "Off" in web.config. I have in fact done this, which rather indicates
    that it is not even getting as far as reading web.config. I have even put up
    a basic two-line .aspx file with no active content (it should display the
    user account using <%= Environment.Use rName %>) but even that doesn't work -
    same error page. The only thing I can actually do is browse a plain vanilla
    ..HTM file.
    It must be a server configuration problem, but I don't even know where to
    start. Can anyone help?
    --
    Dave
  • Curt_C [MVP]

    #2
    Re: Server problem - ASP.NET deployment

    Dave wrote:[color=blue]
    > This is such a "dead in the water" problem I don't even know if this is the
    > right forum for it.
    > I have developed an ASP.NET/C# project on my own PC and it's working. I then
    > transferred it to the remote serverwhere it will finally reside. I'm not a
    > server expert, but the administrator says that ASP.NET is enabled. However,
    > when I access any of the pages I just get a generic "Server Error in '/'
    > Application. Runtime Error" page that tells me how to change the customErrors
    > mode to "Off" in web.config. I have in fact done this, which rather indicates
    > that it is not even getting as far as reading web.config. I have even put up
    > a basic two-line .aspx file with no active content (it should display the
    > user account using <%= Environment.Use rName %>) but even that doesn't work -
    > same error page. The only thing I can actually do is browse a plain vanilla
    > .HTM file.
    > It must be a server configuration problem, but I don't even know where to
    > start. Can anyone help?[/color]

    Try with a simple run of the "aspnet_regiis. exe -i" and "-c" params. See
    if that helps as a start.
    The exe is in the Micosoft.Net folder.... buried down a few layers.

    --
    Curt Christianson
    site: http://www.darkfalz.com
    blog: http://blog.darkfalz.com

    Comment

    • Clamps

      #3
      Re: Server problem - ASP.NET deployment

      Check the folder that houses your site. It should be configured as an
      application directory. The behavior you're describing is what I get when
      I've forgotten to configure my folders.
      "Dave" <Dave@discussio ns.microsoft.co m> wrote in message
      news:2024F022-52FF-450E-8B5D-3A9FCD14A703@mi crosoft.com...[color=blue]
      > This is such a "dead in the water" problem I don't even know if this is[/color]
      the[color=blue]
      > right forum for it.
      > I have developed an ASP.NET/C# project on my own PC and it's working. I[/color]
      then[color=blue]
      > transferred it to the remote serverwhere it will finally reside. I'm not a
      > server expert, but the administrator says that ASP.NET is enabled.[/color]
      However,[color=blue]
      > when I access any of the pages I just get a generic "Server Error in '/'
      > Application. Runtime Error" page that tells me how to change the[/color]
      customErrors[color=blue]
      > mode to "Off" in web.config. I have in fact done this, which rather[/color]
      indicates[color=blue]
      > that it is not even getting as far as reading web.config. I have even put[/color]
      up[color=blue]
      > a basic two-line .aspx file with no active content (it should display the
      > user account using <%= Environment.Use rName %>) but even that doesn't[/color]
      work -[color=blue]
      > same error page. The only thing I can actually do is browse a plain[/color]
      vanilla[color=blue]
      > .HTM file.
      > It must be a server configuration problem, but I don't even know where to
      > start. Can anyone help?
      > --
      > Dave[/color]


      Comment

      • Kiyomi

        #4
        Re: Server problem - ASP.NET deployment

        I have exactly the same problem with the server of my Web hosting provider.
        I have two different applications : one in the root and one in a
        sub-directory. With my local machine, both applications work very well as
        my folders are configured as virtual directories. When I upload my
        applications to the server of the Web hosting provider, the one in the root
        works very well, but the one in the sub-directory does not, and I got
        exactly the same error message. I have asked the provider to configure my
        folder as virtual directory but they say it is not possible. I therefore
        have to manage with my web.config file, but I do not know how to do so.
        Does anyone can give me advice how to configure it ?



        Thank you very much,



        Kiyomi



        "Clamps" <Clamps@Spamles s.com> wrote in message
        news:eIIE$bSnFH A.764@TK2MSFTNG P14.phx.gbl...[color=blue]
        > Check the folder that houses your site. It should be configured as an
        > application directory. The behavior you're describing is what I get when
        > I've forgotten to configure my folders.
        > "Dave" <Dave@discussio ns.microsoft.co m> wrote in message
        > news:2024F022-52FF-450E-8B5D-3A9FCD14A703@mi crosoft.com...[color=green]
        > > This is such a "dead in the water" problem I don't even know if this is[/color]
        > the[color=green]
        > > right forum for it.
        > > I have developed an ASP.NET/C# project on my own PC and it's working. I[/color]
        > then[color=green]
        > > transferred it to the remote serverwhere it will finally reside. I'm not[/color][/color]
        a[color=blue][color=green]
        > > server expert, but the administrator says that ASP.NET is enabled.[/color]
        > However,[color=green]
        > > when I access any of the pages I just get a generic "Server Error in '/'
        > > Application. Runtime Error" page that tells me how to change the[/color]
        > customErrors[color=green]
        > > mode to "Off" in web.config. I have in fact done this, which rather[/color]
        > indicates[color=green]
        > > that it is not even getting as far as reading web.config. I have even[/color][/color]
        put[color=blue]
        > up[color=green]
        > > a basic two-line .aspx file with no active content (it should display[/color][/color]
        the[color=blue][color=green]
        > > user account using <%= Environment.Use rName %>) but even that doesn't[/color]
        > work -[color=green]
        > > same error page. The only thing I can actually do is browse a plain[/color]
        > vanilla[color=green]
        > > .HTM file.
        > > It must be a server configuration problem, but I don't even know where[/color][/color]
        to[color=blue][color=green]
        > > start. Can anyone help?
        > > --
        > > Dave[/color]
        >
        >[/color]


        Comment

        • Dave

          #5
          Re: Server problem - ASP.NET deployment

          I would be intersted to hear if you find a solution, but if it is the same
          problem as mine then I do not think that it can be solved in the web.config
          file - as I described in my original post I do not think my application is
          even getting as far as reading the web.config file.
          If you are paying your service provider extra for ASP.NET facilities then
          you're being ripped off!
          --
          Dave


          "Kiyomi" wrote:
          [color=blue]
          > I have exactly the same problem with the server of my Web hosting provider.
          > I have two different applications : one in the root and one in a
          > sub-directory. With my local machine, both applications work very well as
          > my folders are configured as virtual directories. When I upload my
          > applications to the server of the Web hosting provider, the one in the root
          > works very well, but the one in the sub-directory does not, and I got
          > exactly the same error message. I have asked the provider to configure my
          > folder as virtual directory but they say it is not possible. I therefore
          > have to manage with my web.config file, but I do not know how to do so.
          > Does anyone can give me advice how to configure it ?
          >
          >
          >
          > Thank you very much,
          >
          >
          >
          > Kiyomi
          >
          >
          >
          > "Clamps" <Clamps@Spamles s.com> wrote in message
          > news:eIIE$bSnFH A.764@TK2MSFTNG P14.phx.gbl...[color=green]
          > > Check the folder that houses your site. It should be configured as an
          > > application directory. The behavior you're describing is what I get when
          > > I've forgotten to configure my folders.
          > > "Dave" <Dave@discussio ns.microsoft.co m> wrote in message
          > > news:2024F022-52FF-450E-8B5D-3A9FCD14A703@mi crosoft.com...[color=darkred]
          > > > This is such a "dead in the water" problem I don't even know if this is[/color]
          > > the[color=darkred]
          > > > right forum for it.
          > > > I have developed an ASP.NET/C# project on my own PC and it's working. I[/color]
          > > then[color=darkred]
          > > > transferred it to the remote serverwhere it will finally reside. I'm not[/color][/color]
          > a[color=green][color=darkred]
          > > > server expert, but the administrator says that ASP.NET is enabled.[/color]
          > > However,[color=darkred]
          > > > when I access any of the pages I just get a generic "Server Error in '/'
          > > > Application. Runtime Error" page that tells me how to change the[/color]
          > > customErrors[color=darkred]
          > > > mode to "Off" in web.config. I have in fact done this, which rather[/color]
          > > indicates[color=darkred]
          > > > that it is not even getting as far as reading web.config. I have even[/color][/color]
          > put[color=green]
          > > up[color=darkred]
          > > > a basic two-line .aspx file with no active content (it should display[/color][/color]
          > the[color=green][color=darkred]
          > > > user account using <%= Environment.Use rName %>) but even that doesn't[/color]
          > > work -[color=darkred]
          > > > same error page. The only thing I can actually do is browse a plain[/color]
          > > vanilla[color=darkred]
          > > > .HTM file.
          > > > It must be a server configuration problem, but I don't even know where[/color][/color]
          > to[color=green][color=darkred]
          > > > start. Can anyone help?
          > > > --
          > > > Dave[/color]
          > >
          > >[/color]
          >
          >
          >[/color]

          Comment

          • Dave

            #6
            Re: Server problem - ASP.NET deployment

            Thanks Clamps, that does indeed seem to be the problem - I can actually get
            it to work if I put everything in htdocs, which is the web root. This would
            seem to indicate that htdocs is configured as an application directory, but
            the subdirectory I created for my project isn't. However, I don't really
            weant to have to put everything into htdocs.
            Unfortunately I have no experience of configuring IIS for ASP.NET, and
            neither has the guy who runs the server. Can you possibly give us a brief
            rundown on how to do this configuration, or point us at a good "idiot's
            guide".
            Thanks
            --
            Dave


            "Clamps" wrote:
            [color=blue]
            > Check the folder that houses your site. It should be configured as an
            > application directory. The behavior you're describing is what I get when
            > I've forgotten to configure my folders.
            > "Dave" <Dave@discussio ns.microsoft.co m> wrote in message
            > news:2024F022-52FF-450E-8B5D-3A9FCD14A703@mi crosoft.com...[color=green]
            > > This is such a "dead in the water" problem I don't even know if this is[/color]
            > the[color=green]
            > > right forum for it.
            > > I have developed an ASP.NET/C# project on my own PC and it's working. I[/color]
            > then[color=green]
            > > transferred it to the remote serverwhere it will finally reside. I'm not a
            > > server expert, but the administrator says that ASP.NET is enabled.[/color]
            > However,[color=green]
            > > when I access any of the pages I just get a generic "Server Error in '/'
            > > Application. Runtime Error" page that tells me how to change the[/color]
            > customErrors[color=green]
            > > mode to "Off" in web.config. I have in fact done this, which rather[/color]
            > indicates[color=green]
            > > that it is not even getting as far as reading web.config. I have even put[/color]
            > up[color=green]
            > > a basic two-line .aspx file with no active content (it should display the
            > > user account using <%= Environment.Use rName %>) but even that doesn't[/color]
            > work -[color=green]
            > > same error page. The only thing I can actually do is browse a plain[/color]
            > vanilla[color=green]
            > > .HTM file.
            > > It must be a server configuration problem, but I don't even know where to
            > > start. Can anyone help?
            > > --
            > > Dave[/color]
            >
            >
            >[/color]

            Comment

            • Dave

              #7
              Re: Server problem - ASP.NET deployment

              I don't know if you're still watching this thread, but I did finally solve
              the problem by configuring the server folder as an "applicatio n folder" in
              IIS. It is very simple to do, but it does have to be done on the server. From
              Control Panel run AdmistrativeToo ls, then go to Internet Information
              Services, navigate to the folder, right click for properties and in the
              Directory tab, where it says Application Name, give it a name (I'm not sure
              what purpose the name serves or whether you actually need to give it one) and
              press the create button. That's all there is to it.
              I am surprised that your ISP says they cannot do this - either they provide
              ASP.NET services or they don't, and if they do then they must be able to do
              this for you, otherwsie they are not providing the service (are you paying
              extra for ASP.NET?)

              --
              Dave


              "Kiyomi" wrote:
              [color=blue]
              > I have exactly the same problem with the server of my Web hosting provider.
              > I have two different applications : one in the root and one in a
              > sub-directory. With my local machine, both applications work very well as
              > my folders are configured as virtual directories. When I upload my
              > applications to the server of the Web hosting provider, the one in the root
              > works very well, but the one in the sub-directory does not, and I got
              > exactly the same error message. I have asked the provider to configure my
              > folder as virtual directory but they say it is not possible. I therefore
              > have to manage with my web.config file, but I do not know how to do so.
              > Does anyone can give me advice how to configure it ?
              >
              >
              >
              > Thank you very much,
              >
              >
              >
              > Kiyomi
              >
              >
              >
              > "Clamps" <Clamps@Spamles s.com> wrote in message
              > news:eIIE$bSnFH A.764@TK2MSFTNG P14.phx.gbl...[color=green]
              > > Check the folder that houses your site. It should be configured as an
              > > application directory. The behavior you're describing is what I get when
              > > I've forgotten to configure my folders.
              > > "Dave" <Dave@discussio ns.microsoft.co m> wrote in message
              > > news:2024F022-52FF-450E-8B5D-3A9FCD14A703@mi crosoft.com...[color=darkred]
              > > > This is such a "dead in the water" problem I don't even know if this is[/color]
              > > the[color=darkred]
              > > > right forum for it.
              > > > I have developed an ASP.NET/C# project on my own PC and it's working. I[/color]
              > > then[color=darkred]
              > > > transferred it to the remote serverwhere it will finally reside. I'm not[/color][/color]
              > a[color=green][color=darkred]
              > > > server expert, but the administrator says that ASP.NET is enabled.[/color]
              > > However,[color=darkred]
              > > > when I access any of the pages I just get a generic "Server Error in '/'
              > > > Application. Runtime Error" page that tells me how to change the[/color]
              > > customErrors[color=darkred]
              > > > mode to "Off" in web.config. I have in fact done this, which rather[/color]
              > > indicates[color=darkred]
              > > > that it is not even getting as far as reading web.config. I have even[/color][/color]
              > put[color=green]
              > > up[color=darkred]
              > > > a basic two-line .aspx file with no active content (it should display[/color][/color]
              > the[color=green][color=darkred]
              > > > user account using <%= Environment.Use rName %>) but even that doesn't[/color]
              > > work -[color=darkred]
              > > > same error page. The only thing I can actually do is browse a plain[/color]
              > > vanilla[color=darkred]
              > > > .HTM file.
              > > > It must be a server configuration problem, but I don't even know where[/color][/color]
              > to[color=green][color=darkred]
              > > > start. Can anyone help?
              > > > --
              > > > Dave[/color]
              > >
              > >[/color]
              >
              >
              >[/color]

              Comment

              Working...