G
Guest
Hi all,
I've just started playing with .Net recently and have encountered a problem
for which I am hoping you will give me the solution.
I have a label web control on my .aspx page and I want the TimeDate stamp to
be displayed when I call this page from the browser. so in the text attribute
of the label i have the following value "<%# DateTime.Now.ToString() %>".
<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 46px; POSITION: absolute;
TOP: 45px" runat="server" text="<%# DateTime.Now.ToString() %>"> </asp:Label>
On the .aspx.cs page in the Page_Load function I am calling the DataBind()
method of the label(named Label1) as shown below
private void Page_Load (object sender, System.EventArgs e)
{
Label1.DataBind();
}
Not even a single error is generated when I compile. But when I call
label1.aspx in the browser I get the following error message:
Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" buttonin your web browser to
retry your request.
Administrator note: An error message detailing the cause of this specific
request failure can ne found in the system event log of the web server.
Please review this log entry to discover what caused this error to occur.
When I look at the Event Viewer I see "aspnet_wp.exe (PID: 636) stopped
unexpectedly."
How can I fix this problem? Please help!
System Specs:
..Net Framework 1.0 and I have also installed Service Pack 2 for .Net
Framework 1.0.
VS.Net
Win XP Pro
IIS 5.0
Many thanks
Siya V
I've just started playing with .Net recently and have encountered a problem
for which I am hoping you will give me the solution.
I have a label web control on my .aspx page and I want the TimeDate stamp to
be displayed when I call this page from the browser. so in the text attribute
of the label i have the following value "<%# DateTime.Now.ToString() %>".
<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 46px; POSITION: absolute;
TOP: 45px" runat="server" text="<%# DateTime.Now.ToString() %>"> </asp:Label>
On the .aspx.cs page in the Page_Load function I am calling the DataBind()
method of the label(named Label1) as shown below
private void Page_Load (object sender, System.EventArgs e)
{
Label1.DataBind();
}
Not even a single error is generated when I compile. But when I call
label1.aspx in the browser I get the following error message:
Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" buttonin your web browser to
retry your request.
Administrator note: An error message detailing the cause of this specific
request failure can ne found in the system event log of the web server.
Please review this log entry to discover what caused this error to occur.
When I look at the Event Viewer I see "aspnet_wp.exe (PID: 636) stopped
unexpectedly."
How can I fix this problem? Please help!
System Specs:
..Net Framework 1.0 and I have also installed Service Pack 2 for .Net
Framework 1.0.
VS.Net
Win XP Pro
IIS 5.0
Many thanks
Siya V