aspx pages not viewable

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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???

    Lee Hopkins Guest

  2. Similar Questions and Discussions

    1. ColdFusion 5 pages on IIS viewable by admin groups only
      Arrrgh! Having some difficulty getting a CF web app working on IIS. The NT security is set to not allow anonymous access (only windows...
    2. Forms Auth and none aspx pages
      I have forms authentication working for any aspx page (I'm doing this on both a folder level and also individual files). The problem I have is if...
    3. aspx pages not displaying in ie6
      When aspx pages are made in vs.net, loading on the local host displays the labels all in the top left corner of the screen. Also, all textboxes and...
    4. creating ASPx Pages on the FLY
      Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server...
    5. Opening other ASPX pages
      On the client-side you are restricted to the functionality available in HTML. It doesn't matter what you have on the server side. What the user sees...
  3. #2

    Default Re: aspx pages not viewable

    Let us see the code in your aspx page.



    "Lee Hopkins" <lee.hopkins@suntroncorp.com> wrote in message
    news:00d501c356c5$10e8bca0$a501280a@phx.gbl...
    > 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 Guest

  4. #3

    Default 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="WebForm1.aspx.vb" Inherits="TestAspx.WebForm1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>WebForm1</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema"
    content="http://schemas.microsoft.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">Label</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.Page

    #Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub
    InitializeComponent()

    End Sub
    Protected WithEvents Label1 As System.Web.UI.WebControls.Label
    Protected WithEvents Button1 As System.Web.UI.WebControls.Button
    Protected WithEvents Label2 As System.Web.UI.WebControls.Label
    Protected WithEvents Button2 As System.Web.UI.WebControls.Button
    Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

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

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

    #End Region

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

    End Class

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Lee hopk Guest

  5. #4

    Default 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.exe -i

    Here's further information:
    [url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;q306005[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Lee Hopkins" <lee.hopkins@suntroncorp.com> wrote in message
    news:00d501c356c5$10e8bca0$a501280a@phx.gbl...
    > 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???
    >

    Steve C. Orr, MCSD Guest

  6. #5

    Default 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
    [url]http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/aaconaspnetiisregistrationtoolaspnet_regiisexe.asp[/url]

    HTH,
    Andrei.


    "Lee Hopkins" <lee.hopkins@suntroncorp.com> wrote in message
    news:00d501c356c5$10e8bca0$a501280a@phx.gbl...
    > 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???
    >

    andrei Guest

  7. #6

    Default 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@suntroncorp.com> wrote in message
    news:Ozp2wrsVDHA.384@TK2MSFTNGP12.phx.gbl...
    > 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="WebForm1.aspx.vb" Inherits="TestAspx.WebForm1"%>
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    > <HTML>
    > <HEAD>
    > <title>WebForm1</title>
    > <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    > <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    > <meta name="vs_defaultClientScript" content="JavaScript">
    > <meta name="vs_targetSchema"
    > content="http://schemas.microsoft.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">Label</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.Page
    >
    > #Region " Web Form Designer Generated Code "
    >
    > 'This call is required by the Web Form Designer.
    > <System.Diagnostics.DebuggerStepThrough()> Private Sub
    > InitializeComponent()
    >
    > End Sub
    > Protected WithEvents Label1 As System.Web.UI.WebControls.Label
    > Protected WithEvents Button1 As System.Web.UI.WebControls.Button
    > Protected WithEvents Label2 As System.Web.UI.WebControls.Label
    > Protected WithEvents Button2 As System.Web.UI.WebControls.Button
    > Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
    >
    > 'NOTE: The following placeholder declaration is required by the Web
    > Form Designer.
    > 'Do not delete or move it.
    > Private designerPlaceholderDeclaration As System.Object
    >
    > Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
    > System.EventArgs) Handles MyBase.Init
    > 'CODEGEN: This method call is required by the Web Form Designer
    > 'Do not modify it using the code editor.
    > InitializeComponent()
    > End Sub
    >
    > #End Region
    >
    > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
    > System.EventArgs) Handles MyBase.Load
    > 'Put user code to initialize the page here
    > End Sub
    >
    > End Class
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Seaside Guest

  8. #7

    Default 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:#GX1FasVDHA.624@TK2MSFTNGP10.phx.gbl...
    > Let us see the code in your aspx page.
    >
    >
    >
    > "Lee Hopkins" <lee.hopkins@suntroncorp.com> wrote in message
    > news:00d501c356c5$10e8bca0$a501280a@phx.gbl...
    > > 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???
    > >
    >
    >

    andy Guest

  9. #8

    Default Re: aspx pages not viewable

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

    Here's the default location:

    C:\WINNT\Microsoft.NET\Framework\<your newest installation
    version>\aspnet_regiis.exe -i

    David Wier
    [url]http://aspnet101.com[/url]
    [url]http://aspexpress.com[/url]


    "Lee Hopkins" <lee.hopkins@suntroncorp.com> wrote in message
    news:00d501c356c5$10e8bca0$a501280a@phx.gbl...
    > 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???
    >

    David Wier Guest

  10. #9

    Default 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.aspx. You can't just open the file.

    Don't know if this helps at all.

    "Lee Hopkins" <lee.hopkins@suntroncorp.com> wrote in message
    news:00d501c356c5$10e8bca0$a501280a@phx.gbl...
    > 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???
    >

    vMike Guest

  11. #10

    Default 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
    [url]http://Steve.Orr.net[/url]


    "Lee hopk" <lee.hopkins@suntroncorp.com> wrote in message
    news:Oh19OEuVDHA.1480@tk2msftngp13.phx.gbl...
    >
    > 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 -->
    >
    > <configuration>
    > <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 "defaultRedirect" attribute of the
    > application's <customErrors> configuration tag to point to a custom
    > error page URL.
    >
    >
    > <!-- Web.Config Configuration File -->
    >
    > <configuration>
    > <system.web>
    > <customErrors mode="RemoteOnly"
    > defaultRedirect="mycustompage.htm"/>
    > </system.web>
    > </configuration>
    >
    >
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Steve C. Orr, MCSD Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139