Why does aspx pages crash my machine?

B

Brett

I'm WinXP Pro. When I reference http://127.0.0.1/mysite/webform1.aspx
(newly created page in VS.NET), IE stalls then everything freezes. I can
click the title bar of applications but that is all. If I move beyond the
title bar, I get the hour glass. Nothing responsds except the mouse. I
have to turn the machine off at this point.

Running .NET 1.1. I can't find any one that knows why this happens. Any
suggestions?

Thanks,
Brett
 
A

Alvin Bruney [MVP - ASP.NET]

I'll take a stab at it. You need to re-install visual studio.net. I think
you know that, you probably wanted someone to say it :)

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
 
B

Brett

Why if VS.NET isn't running and I reference the URL in IE, everything still
crashes? Also, VS.NET runs with no problems. aspx is rendered by .NET
right? Why would that have anything to do with VS.NET?


Alvin Bruney said:
I'll take a stab at it. You need to re-install visual studio.net. I think
you know that, you probably wanted someone to say it :)

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Brett said:
I'm WinXP Pro. When I reference http://127.0.0.1/mysite/webform1.aspx
(newly created page in VS.NET), IE stalls then everything freezes. I can
click the title bar of applications but that is all. If I move beyond
the title bar, I get the hour glass. Nothing responsds except the mouse.
I have to turn the machine off at this point.

Running .NET 1.1. I can't find any one that knows why this happens.
Any suggestions?

Thanks,
Brett
 
A

Alvin Bruney [MVP - ASP.NET]

in that case your IIS may be hosed. it's one or the other. IE provides a
stack dump when the critical crash occurs. Sift the stack and examine the
offending dll. The dll will be hosted by a process on your machine. It's
that process that is bugging out.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Brett said:
Why if VS.NET isn't running and I reference the URL in IE, everything
still crashes? Also, VS.NET runs with no problems. aspx is rendered by
.NET right? Why would that have anything to do with VS.NET?


Alvin Bruney said:
I'll take a stab at it. You need to re-install visual studio.net. I think
you know that, you probably wanted someone to say it :)

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Brett said:
I'm WinXP Pro. When I reference http://127.0.0.1/mysite/webform1.aspx
(newly created page in VS.NET), IE stalls then everything freezes. I
can click the title bar of applications but that is all. If I move
beyond the title bar, I get the hour glass. Nothing responsds except
the mouse. I have to turn the machine off at this point.

Running .NET 1.1. I can't find any one that knows why this happens.
Any suggestions?

Thanks,
Brett
 
B

Brett

When this happens, there's no sifting through anything. Hard boot - that's
the only feature available.

Alvin Bruney said:
in that case your IIS may be hosed. it's one or the other. IE provides a
stack dump when the critical crash occurs. Sift the stack and examine the
offending dll. The dll will be hosted by a process on your machine. It's
that process that is bugging out.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Brett said:
Why if VS.NET isn't running and I reference the URL in IE, everything
still crashes? Also, VS.NET runs with no problems. aspx is rendered by
.NET right? Why would that have anything to do with VS.NET?


Alvin Bruney said:
I'll take a stab at it. You need to re-install visual studio.net. I
think you know that, you probably wanted someone to say it :)

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
I'm WinXP Pro. When I reference http://127.0.0.1/mysite/webform1.aspx
(newly created page in VS.NET), IE stalls then everything freezes. I
can click the title bar of applications but that is all. If I move
beyond the title bar, I get the hour glass. Nothing responsds except
the mouse. I have to turn the machine off at this point.

Running .NET 1.1. I can't find any one that knows why this happens.
Any suggestions?

Thanks,
Brett
 
N

Nick Malik [Microsoft]

sounds like an infinite loop.

What code is on that page. If you are doing a response.redirect to the same
page, your browser will enter an infinite loop with the web server on 301
messages and your browser (and probably your TCP stack) will lock down
tight.

Post code.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
D

Danny T

Brett said:
When this happens, there's no sifting through anything. Hard boot - that's
the only feature available.

Have you tried another aspx page? Could it be an endless loop?
 
B

Brett

Danny T said:
Have you tried another aspx page? Could it be an endless loop?

Here's the code I'm using. No loops. The include page just has three
paragraphs of text:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="mysite.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>mysite- Internet Business Solutions: Custom Software,
Chatroom</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">
<link href="stylesheet/sitewide.css" rel="stylesheet" type="text/css">
</HEAD>
<body MS_POSITIONING="GridLayout">
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td align="left" valign="middle">
<a href="http://www.mysite.com"><img
src="IMAGES/mysitelogoYouSupplyData_clr.gif" border="0"></a>
<!-- <img src="IMAGES/mysite_welcome_transtag.gif" alt="Please click
the bubble image to the right for any questions you might have." width="228"
height="52" border="0">
--></td>
<td align="center" valign="middle">&nbsp;</td>
</tr>
</table>
<table width="550" border="0" cellspacing="0" cellpadding="5">
<tr>
<!--- start right column menu --->
<td width="175" align="left" valign="top">
</td>
<td width="90%" align="left" valign="top">
<!-- <cfinclude template="./#p#.cfm"> -->
<!-- start contact us form -->
<form id="Form1" method="post" runat="server"
action="vcontactusProcess.cfm">
<br>
&nbsp;
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="left" valign="middle">
If you have any questions, please
use the form below to contact us. You will receive a quick same day
personal
reply.<br>
&nbsp;</td>
</tr>
<tr>
<td width="120">Name:
</td>
<td width="430">&nbsp;<input type="text" name="name" size="50"
maxlength="50"></td>
</tr>
<tr>
<td>Email Address:
</td>
<td>&nbsp;<input type="text" name="email" size="50"
maxlength="50"></td>
</tr>
<tr>
<td colspan="2" align="left">Comments:<br>
<textarea cols="50" rows="5" name="comment"
wrap="soft"></textarea></td>
</tr>
<tr>
<td colspan="2" align="right"><br>
<input type="submit" name="submit"
value="submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
</table>
</form>
<!-- end contact us form -->
</td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle">
<!-- <cfinclude template = "_footer.cfm"> -->
</td>
</tr>
</table>
</body>
</HTML>
 
B

Brett

Danny T said:
Have you tried another aspx page? Could it be an endless loop?

I've also uninstalled IIS and VS.NET. That obvisouly didn't help. I tried
running the above page again and it froze everything. It does run on
another XP machine.

Brett
 
D

Danny T

Brett said:
Here's the code I'm using. No loops. The include page just has three
paragraphs of text:
<snip>

Is there anything in WebForm1.aspx.vb?

Anything in the event log?
 
B

Brett

Danny T said:
<snip>

Is there anything in WebForm1.aspx.vb?

Anything in the event log?
Nothing about the crash in event viewer.

This is in WebForm1.aspx.vb:

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 Form1 As System.Web.UI.HtmlControls.HtmlForm

'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
 
D

Danny T

Brett said:
Nothing about the crash in event viewer.

This is in WebForm1.aspx.vb:
<snip>

Nothing bad there... Maybe it's an undocumented feature? :(

Other than Apache, I can't suggest anything else - sounds like something
rather fundamental is broken!!
 
B

Brett

Danny T said:
<snip>

Nothing bad there... Maybe it's an undocumented feature? :(

Other than Apache, I can't suggest anything else - sounds like something
rather fundamental is broken!!
I thought maybe stepping through with breakpoint would help. I can't do
that in an aspx page. Why doesn't WebForm1.aspx.vb show up in my project?
I've tried to add it but it still will not show up.

Thanks,
Brett
 
B

Brett

Brett said:
I thought maybe stepping through with breakpoint would help. I can't do
that in an aspx page. Why doesn't WebForm1.aspx.vb show up in my project?
I've tried to add it but it still will not show up.

Thanks,
Brett
I can open the WebForm1.aspx page all day long in Firefox, with or without
the project open in VS.NET. I do notice the image doesn't show. So I
referenced it in the URL. Got a 404. Looking in IIS, I see only the bin
and _vti_cnf folders are available. That's why anything referencing the
images folder isn't showing. Maybe IE can't handle that and decides to
crash everything. Not sure.

How do I add another yellow (non virtual) folder in IIS under the website,
just like the two that are there? I only have options to add a virtual
folder or web extensions. I will add a folder for images and see what
happens.

I don't want to remove the images ref and try it in IE because I'm afraid it
will still crash everything. I do need the image folder ref in IIS though.

Brett
 
D

Danny T

Right-click on the .aspx page and choose "View Code"

Maybe IE can't handle that and decides to crash everything. Not sure.

Never seen IE crash over a broken image!

If you open Task Manager and sort by CPU usage, Does any process jump to
100% when it crashes?
How do I add another yellow (non virtual) folder in IIS under the website,
just like the two that are there? I only have options to add a virtual
folder or web extensions. I will add a folder for images and see what
happens.

I don't want to remove the images ref and try it in IE because I'm afraid it
will still crash everything. I do need the image folder ref in IIS though.

The non-virtual folders in this list are physical folders in the
directory. If you right click on the Web Site and choose Browse (or
Open!), one of them should open the location on disk your website points
to, and the folder needs to be in there. If it's already there in Visual
Studio though, I can't imagine it not being there - sounds like IIS is
screwed?
 
B

Brett

Danny T said:
Right-click on the .aspx page and choose "View Code"



Never seen IE crash over a broken image!

If you open Task Manager and sort by CPU usage, Does any process jump to
100% when it crashes?

I can't access it. The only thing available is the mouse. It always ends
with me hard booting.
The non-virtual folders in this list are physical folders in the
directory. If you right click on the Web Site and choose Browse (or
Open!), one of them should open the location on disk your website points
to, and the folder needs to be in there. If it's already there in Visual
Studio though, I can't imagine it not being there - sounds like IIS is
screwed?

What do you mean when you say it's there in VS.NET? I don't see folders in
VS.NET under my project. Only files.
 
D

Danny T

Brett said:
I can't access it. The only thing available is the mouse. It always ends
with me hard booting.

Open it and set it to "always on top" before trying to access the page.
It might not redraw the screen to show anything useful, but you might
see iexplore of dllhost shoot up to 100%!

What do you mean when you say it's there in VS.NET? I don't see folders in
VS.NET under my project. Only files.

Ah, sorry, I thought you had a second folder not showing up. If you
right-click on your project, you can choose "New Folder". You could also
do that by browsing to C:\Inetpub\wwwroot yourself. These should then
show up in IIS.
 
B

Brett

Danny T said:
Open it and set it to "always on top" before trying to access the page. It
might not redraw the screen to show anything useful, but you might see
iexplore of dllhost shoot up to 100%!

OK. Nothing went to 100%. Everything stayed at 1 and 2% the whole time. I
was able to click stop on IE and the title bar said page cannot be displayed
but the main area remained white. At that point everything except task
manager stopped responding. I couldn't click the taskbar either. Nothing
in Task manager went above 10% usage. A few seconds later, task manager
stopped responding.

I click the power button on my laptop which brought up the log off, restart,
shut down options. I choose shut down. After 15 minutes, the computer did
shut down. During that time, I had popups to end task these in this order:
sgtray.exe
devenv.exe
iexplorer.exe
ctfmon.exe
explorer.exe (only the desktop background showed after this)
Windows Task Manager

It took another 5 minutes for the Windows logging off and shutting down
screen to go away.
Ah, sorry, I thought you had a second folder not showing up. If you
right-click on your project, you can choose "New Folder". You could also
do that by browsing to C:\Inetpub\wwwroot yourself. These should then show
up in IIS.

I see all the folders in IIS now. The website I thought was being browsed
was actually outside of the wwwroot. ASP.NET browses in the wwwroot. I
added the folder I wanted ("images") and was able to then browse it.

Is there some other tool that can help with this problem?
 
N

Nick Malik [Microsoft]

I don't normally suggest this, but in your case, it's a real possibility:
Run an anti-spyware program like Spybot Search and Destroy and see if you
aren't getting hosed by a bug in a spyware app. Its what it sounds like to
me. I had this happen on one of my home systems. Spyware sometimes freaks
out when you access local host, especially using IP addresses.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top