473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

Nov 17 '05 #1
9 2983
Let us see the code in your aspx page.

"Lee Hopkins" <le*********@suntroncorp.com> wrote in message
news:00****************************@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???

Nov 17 '05 #2
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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
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" <le*********@suntroncorp.com> wrote in message
news:00****************************@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???

Nov 17 '05 #4
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:
http://support.microsoft.com/default...;EN-US;q306005

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Lee Hopkins" <le*********@suntroncorp.com> wrote in message
news:00****************************@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???

Nov 17 '05 #5
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" <le*********@suntroncorp.com> wrote in message
news:Oz*************@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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #6
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:#G*************@TK2MSFTNGP10.phx.gbl...
Let us see the code in your aspx page.

"Lee Hopkins" <le*********@suntroncorp.com> wrote in message
news:00****************************@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???


Nov 17 '05 #7
From the tips & tricks section of http://ASPNet101.com :
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
http://aspnet101.com
http://aspexpress.com
"Lee Hopkins" <le*********@suntroncorp.com> wrote in message
news:00****************************@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???

Nov 17 '05 #8
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" <le*********@suntroncorp.com> wrote in message
news:00****************************@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???

Nov 17 '05 #9
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
http://Steve.Orr.net
"Lee hopk" <le*********@suntroncorp.com> wrote in message
news:Oh**************@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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Catherine | last post by:
I am having a problem viewing asp pages on iis version 5.1 xp pro. HTML pages are viewable on http://localhost but .asp pages are not. I have created a test program called timetest.asp with the...
7
by: Randall | last post by:
I have a Windows 2003 Server Web running 5 web sites. Every few days, the ASP pages stop responding. There are no events in the event log. The HTML pages are still served successfully. These...
1
by: Jerry Tovar | last post by:
I am using .Net 2003 on a XPPro running IIS. I am unable to view any of my ASPX webforms in a browser unless I modify the .ASPX file and replace Codebehind="employee.aspx.cs" with...
0
by: Tony Lewis | last post by:
I'm running IIS on a Windows 2k server and have just installed the .NET framework 1.1 so I can deploy ASP.NET applications on my server through .NET Studios. All my normal ASP applications run fine...
4
by: LIN | last post by:
Can someone guide me with an article or advice me on how to UPLOAD ASPx files on the webserver. I am making the ASPx pages by creating a project in VS .NET. I have no clue how to deploy the...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
0
by: Rhys666 | last post by:
OK, an issue I've come across before, but never found a cause for or resolution of, has decided to become the bane of my life again with ASP.Net Custom Error Pages. Basically, my web application...
4
by: InnoCreate | last post by:
Hi everyone, I've developed a couple of asp.net1.1 websites and these are viewable using my mobile phone. I've now moved over to asp.net2 and i'm unable to view asp.net2 websites on my phone. I've...
2
by: Weatherman | last post by:
I've searched for an answer to this and can't find one. I can't view pages with the PHP suffix. The basic (top) part comes up in my browser, but the part with the PHP element does not. I've...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.