aspx pages not viewable

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

    #1

    aspx pages not viewable

    We have just purchased .net ent. edition for our company.
    I have installed .net on my desktop where I do the
    developing of our aspx, and vb.net applications. the
    Network people installed the 1.1 framwork.
    I have just built my first page. a few labels/text boxes
    and a button or two for testing.(I am new to .net) I built
    the new page and move the complete folder to my IIS server
    and tried to open the page. but I see nothing and receive
    no errors. I can see some of the code in the view/source
    but it does not display. Did we forget something???

  • Seaside

    #2
    Re: aspx pages not viewable

    Let us see the code in your aspx page.



    "Lee Hopkins" <lee.hopkins@su ntroncorp.com> wrote in message
    news:00d501c356 c5$10e8bca0$a50 1280a@phx.gbl.. .[color=blue]
    > We have just purchased .net ent. edition for our company.
    > I have installed .net on my desktop where I do the
    > developing of our aspx, and vb.net applications. the
    > Network people installed the 1.1 framwork.
    > I have just built my first page. a few labels/text boxes
    > and a button or two for testing.(I am new to .net) I built
    > the new page and move the complete folder to my IIS server
    > and tried to open the page. but I see nothing and receive
    > no errors. I can see some of the code in the view/source
    > but it does not display. Did we forget something???
    >[/color]


    Comment

    • Lee hopk

      #3
      Re: aspx pages not viewable

      I do not have the buttons doing any thing yet so there is little on the
      testaspx.vb form

      <%@ Page Language="vb" AutoEventWireup ="false"
      Codebehind="Web Form1.aspx.vb" Inherits="TestA spx.WebForm1"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <HTML>
      <HEAD>
      <title>WebForm1 </title>
      <meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
      <meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
      <meta name="vs_defaul tClientScript" content="JavaSc ript">
      <meta name="vs_target Schema"
      content="http://schemas.microso ft.com/intellisense/ie5">
      </HEAD>
      <body MS_POSITIONING= "GridLayout ">
      <form id="Form1" method="post" runat="server">
      <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 200px; POSITION:
      absolute; TOP: 64px" runat="server"
      Width="320px" Height="104px" ForeColor="Red" >Hello</asp:Label>
      <asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 192px; POSITION:
      absolute; TOP: 184px" runat="server"
      Width="296px" Height="48px" Text="Button 1"></asp:Button>
      <asp:Label id="Label2" style="Z-INDEX: 103; LEFT: 184px; POSITION:
      absolute; TOP: 288px" runat="server"
      Height="88px" Width="352px">L abel</asp:Label>
      <asp:Button id="Button2" style="Z-INDEX: 104; LEFT: 232px; POSITION:
      absolute; TOP: 400px" runat="server"
      Height="56px" Width="280px" Text="Button"></asp:Button>
      <asp:TextBox id="TextBox1" style="Z-INDEX: 105; LEFT: 240px;
      POSITION: absolute; TOP: 480px"
      runat="server" Height="40px" Width="304px"></asp:TextBox>
      </form>
      </body>
      </HTML>











      Public Class WebForm1
      Inherits System.Web.UI.P age

      #Region " Web Form Designer Generated Code "

      'This call is required by the Web Form Designer.
      <System.Diagnos tics.DebuggerSt epThrough()> Private Sub
      InitializeCompo nent()

      End Sub
      Protected WithEvents Label1 As System.Web.UI.W ebControls.Labe l
      Protected WithEvents Button1 As System.Web.UI.W ebControls.Butt on
      Protected WithEvents Label2 As System.Web.UI.W ebControls.Labe l
      Protected WithEvents Button2 As System.Web.UI.W ebControls.Butt on
      Protected WithEvents TextBox1 As System.Web.UI.W ebControls.Text Box

      'NOTE: The following placeholder declaration is required by the Web
      Form Designer.
      'Do not delete or move it.
      Private designerPlaceho lderDeclaration As System.Object

      Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
      System.EventArg s) Handles MyBase.Init
      'CODEGEN: This method call is required by the Web Form Designer
      'Do not modify it using the code editor.
      InitializeCompo nent()
      End Sub

      #End Region

      Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
      System.EventArg s) Handles MyBase.Load
      'Put user code to initialize the page here
      End Sub

      End Class

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      • andrei

        #4
        Re: aspx pages not viewable

        Hi Lee,

        It seems like the server already had IIS when the .net framework 1.1 was
        installed, right ?
        Did you run
        aspnet_regiis -i
        to register the new framework version with iis ?

        Check
        http://www.microsoft.com/technet/tre..._regiisexe.asp

        HTH,
        Andrei.


        "Lee Hopkins" <lee.hopkins@su ntroncorp.com> wrote in message
        news:00d501c356 c5$10e8bca0$a50 1280a@phx.gbl.. .[color=blue]
        > We have just purchased .net ent. edition for our company.
        > I have installed .net on my desktop where I do the
        > developing of our aspx, and vb.net applications. the
        > Network people installed the 1.1 framwork.
        > I have just built my first page. a few labels/text boxes
        > and a button or two for testing.(I am new to .net) I built
        > the new page and move the complete folder to my IIS server
        > and tried to open the page. but I see nothing and receive
        > no errors. I can see some of the code in the view/source
        > but it does not display. Did we forget something???
        >[/color]


        Comment

        • Steve C. Orr, MCSD

          #5
          Re: aspx pages not viewable

          You may need to repair your IIS mappings on your server.
          To do this, run the following command:
          aspnet_regiis.e xe -i

          Here's further information:
          http://support.microsoft.com/default...;EN-US;q306005

          --
          I hope this helps,
          Steve C. Orr, MCSD



          "Lee Hopkins" <lee.hopkins@su ntroncorp.com> wrote in message
          news:00d501c356 c5$10e8bca0$a50 1280a@phx.gbl.. .[color=blue]
          > We have just purchased .net ent. edition for our company.
          > I have installed .net on my desktop where I do the
          > developing of our aspx, and vb.net applications. the
          > Network people installed the 1.1 framwork.
          > I have just built my first page. a few labels/text boxes
          > and a button or two for testing.(I am new to .net) I built
          > the new page and move the complete folder to my IIS server
          > and tried to open the page. but I see nothing and receive
          > no errors. I can see some of the code in the view/source
          > but it does not display. Did we forget something???
          >[/color]


          Comment

          • Seaside

            #6
            Re: aspx pages not viewable

            Nothing seems to be wrong with your code (thought you might have had your
            control OUTSIDE the Form tags but it looks ok.....I think it is a server
            install problem with the Framework.



            "Lee hopk" <lee.hopkins@su ntroncorp.com> wrote in message
            news:Ozp2wrsVDH A.384@TK2MSFTNG P12.phx.gbl...[color=blue]
            > I do not have the buttons doing any thing yet so there is little on the
            > testaspx.vb form
            >
            > <%@ Page Language="vb" AutoEventWireup ="false"
            > Codebehind="Web Form1.aspx.vb" Inherits="TestA spx.WebForm1"%>
            > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
            > <HTML>
            > <HEAD>
            > <title>WebForm1 </title>
            > <meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
            > <meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
            > <meta name="vs_defaul tClientScript" content="JavaSc ript">
            > <meta name="vs_target Schema"
            > content="http://schemas.microso ft.com/intellisense/ie5">
            > </HEAD>
            > <body MS_POSITIONING= "GridLayout ">
            > <form id="Form1" method="post" runat="server">
            > <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 200px; POSITION:
            > absolute; TOP: 64px" runat="server"
            > Width="320px" Height="104px" ForeColor="Red" >Hello</asp:Label>
            > <asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 192px; POSITION:
            > absolute; TOP: 184px" runat="server"
            > Width="296px" Height="48px" Text="Button 1"></asp:Button>
            > <asp:Label id="Label2" style="Z-INDEX: 103; LEFT: 184px; POSITION:
            > absolute; TOP: 288px" runat="server"
            > Height="88px" Width="352px">L abel</asp:Label>
            > <asp:Button id="Button2" style="Z-INDEX: 104; LEFT: 232px; POSITION:
            > absolute; TOP: 400px" runat="server"
            > Height="56px" Width="280px" Text="Button"></asp:Button>
            > <asp:TextBox id="TextBox1" style="Z-INDEX: 105; LEFT: 240px;
            > POSITION: absolute; TOP: 480px"
            > runat="server" Height="40px" Width="304px"></asp:TextBox>
            > </form>
            > </body>
            > </HTML>
            >
            >
            >
            >
            >
            >
            >
            >
            >
            >
            >
            > Public Class WebForm1
            > Inherits System.Web.UI.P age
            >
            > #Region " Web Form Designer Generated Code "
            >
            > 'This call is required by the Web Form Designer.
            > <System.Diagnos tics.DebuggerSt epThrough()> Private Sub
            > InitializeCompo nent()
            >
            > End Sub
            > Protected WithEvents Label1 As System.Web.UI.W ebControls.Labe l
            > Protected WithEvents Button1 As System.Web.UI.W ebControls.Butt on
            > Protected WithEvents Label2 As System.Web.UI.W ebControls.Labe l
            > Protected WithEvents Button2 As System.Web.UI.W ebControls.Butt on
            > Protected WithEvents TextBox1 As System.Web.UI.W ebControls.Text Box
            >
            > 'NOTE: The following placeholder declaration is required by the Web
            > Form Designer.
            > 'Do not delete or move it.
            > Private designerPlaceho lderDeclaration As System.Object
            >
            > Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
            > System.EventArg s) Handles MyBase.Init
            > 'CODEGEN: This method call is required by the Web Form Designer
            > 'Do not modify it using the code editor.
            > InitializeCompo nent()
            > End Sub
            >
            > #End Region
            >
            > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
            > System.EventArg s) Handles MyBase.Load
            > 'Put user code to initialize the page here
            > End Sub
            >
            > End Class
            >
            > *** Sent via Developersdex http://www.developersdex.com ***
            > Don't just participate in USENET...get rewarded for it![/color]


            Comment

            • andy

              #7
              Re: aspx pages not viewable

              i had the same problem when trying asp.net for the first time and the only
              thing i did was place the aspx page in a shared folder and changed iis to
              point to that.

              hope it helps

              andy


              "Seaside" <ss@hotmail.com > wrote in message
              news:#GX1FasVDH A.624@TK2MSFTNG P10.phx.gbl...[color=blue]
              > Let us see the code in your aspx page.
              >
              >
              >
              > "Lee Hopkins" <lee.hopkins@su ntroncorp.com> wrote in message
              > news:00d501c356 c5$10e8bca0$a50 1280a@phx.gbl.. .[color=green]
              > > We have just purchased .net ent. edition for our company.
              > > I have installed .net on my desktop where I do the
              > > developing of our aspx, and vb.net applications. the
              > > Network people installed the 1.1 framwork.
              > > I have just built my first page. a few labels/text boxes
              > > and a button or two for testing.(I am new to .net) I built
              > > the new page and move the complete folder to my IIS server
              > > and tried to open the page. but I see nothing and receive
              > > no errors. I can see some of the code in the view/source
              > > but it does not display. Did we forget something???
              > >[/color]
              >
              >[/color]


              Comment

              • David Wier

                #8
                Re: aspx pages not viewable

                From the tips & tricks section of http://ASPNet101.com :
                Try running aspnet_regiis from the command prompt.

                Here's the default location:

                C:\WINNT\Micros oft.NET\Framewo rk\<your newest installation
                version>\aspnet _regiis.exe -i

                David Wier




                "Lee Hopkins" <lee.hopkins@su ntroncorp.com> wrote in message
                news:00d501c356 c5$10e8bca0$a50 1280a@phx.gbl.. .[color=blue]
                > We have just purchased .net ent. edition for our company.
                > I have installed .net on my desktop where I do the
                > developing of our aspx, and vb.net applications. the
                > Network people installed the 1.1 framwork.
                > I have just built my first page. a few labels/text boxes
                > and a button or two for testing.(I am new to .net) I built
                > the new page and move the complete folder to my IIS server
                > and tried to open the page. but I see nothing and receive
                > no errors. I can see some of the code in the view/source
                > but it does not display. Did we forget something???
                >[/color]


                Comment

                • vMike

                  #9
                  Re: aspx pages not viewable

                  You said that you can see some of the code in view souce. You shouldn't see
                  any of the code in view source, only the output. You said you were new to
                  asp.net. Make sure you files are in a web folder. (right click the
                  properties of the folder) and make sure you are loading the page by typing
                  localhost/yourfilename.as px. You can't just open the file.

                  Don't know if this helps at all.

                  "Lee Hopkins" <lee.hopkins@su ntroncorp.com> wrote in message
                  news:00d501c356 c5$10e8bca0$a50 1280a@phx.gbl.. .[color=blue]
                  > We have just purchased .net ent. edition for our company.
                  > I have installed .net on my desktop where I do the
                  > developing of our aspx, and vb.net applications. the
                  > Network people installed the 1.1 framwork.
                  > I have just built my first page. a few labels/text boxes
                  > and a button or two for testing.(I am new to .net) I built
                  > the new page and move the complete folder to my IIS server
                  > and tried to open the page. but I see nothing and receive
                  > no errors. I can see some of the code in the view/source
                  > but it does not display. Did we forget something???
                  >[/color]


                  Comment

                  • Steve C. Orr, MCSD

                    #10
                    Re: aspx pages not viewable

                    OK, so do what it said and adjust your web.config to allow you to see the
                    full real error message.

                    --
                    I hope this helps,
                    Steve C. Orr, MCSD



                    "Lee hopk" <lee.hopkins@su ntroncorp.com> wrote in message
                    news:Oh19OEuVDH A.1480@tk2msftn gp13.phx.gbl...[color=blue]
                    >
                    > ok it worked sort of. now I am getting the following error message. I
                    > works fine on my localhost(my desktop) but not when I move the files to
                    > the inet server.
                    > Server Error in '/' Application.
                    > ------------------------------------------------------------------------
                    > --------
                    >
                    > Runtime Error
                    > Description: An application error occurred on the server. The current
                    > custom error settings for this application prevent the details of the
                    > application error from being viewed remotely (for security reasons). It
                    > could, however, be viewed by browsers running on the local server
                    > machine.
                    >
                    > Details: To enable the details of this specific error message to be
                    > viewable on remote machines, please create a <customErrors > tag within a
                    > "web.config " configuration file located in the root directory of the
                    > current web application. This <customErrors > tag should then have its
                    > "mode" attribute set to "Off".
                    >
                    >
                    > <!-- Web.Config Configuration File -->
                    >
                    > <configuratio n>
                    > <system.web>
                    > <customErrors mode="Off"/>
                    > </system.web>
                    > </configuration>
                    >
                    >
                    > Notes: The current error page you are seeing can be replaced by a custom
                    > error page by modifying the "defaultRedirec t" attribute of the
                    > application's <customErrors > configuration tag to point to a custom
                    > error page URL.
                    >
                    >
                    > <!-- Web.Config Configuration File -->
                    >
                    > <configuratio n>
                    > <system.web>
                    > <customErrors mode="RemoteOnl y"
                    > defaultRedirect ="mycustompage. htm"/>
                    > </system.web>
                    > </configuration>
                    >
                    >
                    >
                    >
                    > *** Sent via Developersdex http://www.developersdex.com ***
                    > Don't just participate in USENET...get rewarded for it![/color]


                    Comment

                    Working...