473,573 Members | 2,853 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio Closes Unexpectedly

I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio
2008 issue -- thus posting to 3 groups. Please don't be offended.

The problem I'm encountering is that Visual Studio closes unexpectedly and
without any error message being displayed, or error messages written to the
system logs. Visual Studio closes when I attempt to open an ASP.NET Web
application (not Web site) solution for which IIS is set as the project's
Web server. If I switch the project to use the built-in Web server, then
Visual Studio opens with no problem.

How to reproduce.
1. Open Visual Studio 2008 pro to an empty IDE (no solution or project
opened)
2. Create a new ASP.NET Web application project (not Web site).
3. Add some text to default.aspx (e.g., "hello world").
4. Build and run the project (F5).
You will see default.aspx open, displaying the text you entered.
5. Stop debugging (close browser, tell Visual Studio to stop debugging).
6. Open the project's properties, go to the Web tab, and
select the radio button for "Use Local IIS Web server"
7. Save your changes and close the properties page.
If prompted to create the IIS Web site, agree to do so.
This happens only the first time you are doing this.
You can open the IIS console and see that this step has succeeded.
8. Build and run the project. It all works just fine.
9. Close Visual Studio.
10 Reboot the machine (or not - doesn't matter, I've tried both ways here)
11. Open Visual Studio to empty dev environment (no solution or project
opened).
12. Open the ASP.NET Web application project created in Step 2 above.
At this point Visual Studio will just close (disappear from the
screen, with
no error message appearing - it's just gone).
13. Navigate to the .csproj file and open it in notepad (NOT in Visual
Studio).
Find the <UseIISelemen t, and change the value from True to False, so
it looks like this: <UseIIS>False </UseIIS>
14. Now try to open the project again (do steps 11 and 12 again).
This time it opens just fine (no error message).

My development box is configured as such: XP Pro/SP3 with IIS installed and
verified to be running just fine; Visual Studio 2008 Professional with
Service Pack 1. This is a brand new image. I zeroed out the hard drive plus
partitioned and plus formatted it before and installing a fresh copy of XP
Pro. I have installed all of the latest updates and patches from Windows
Update. I have installed .NET Framework 3.5 + it's SP1. None of this
apparently matters, though, because the problem described above happened on
the old image (before I zeroed out the hard drive, formatted, it, and
reinstalled everything). The old image had XP Pro sP2 and Visual Studio 2008
Pro with no SP. Now with everything reinstalled from scratch, it's still
doing this. It's actually a bit worse, because every other time,
approximately, that I try to run the application using the built-in Web
server, the IDE crashes with an error message stating that Visual Studio was
unable to connect to the built-in Web server.

Any ideas or suggestions for resolution? I don't want to reimage, as doing
so apparently has no effect on this problem.

Thanks.
Nov 4 '08 #1
3 10496
On Nov 3, 9:48*pm, "Johnson" <A...@B.comwrot e:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio
2008 issue -- thus posting to 3 groups. Please don't be offended.

The problem I'm encountering is that Visual Studio closes unexpectedly and
without any error message being displayed, or error messages written to the
system logs. Visual Studio closes when I attempt to open an ASP.NET Web
application (not Web site) solution for which IIS is set as the project's
Web server. If I switch the project to use the built-in Web server, then
Visual Studio opens with no problem.

How to reproduce.
1. Open Visual Studio 2008 pro to an empty IDE (no solution or project
opened)
2. Create a new ASP.NET Web application project (not Web site).
3. Add some text to default.aspx (e.g., "hello world").
4. Build and run the project (F5).
* * You will see default.aspx open, displaying the text you entered.
5. Stop debugging (close browser, tell Visual Studio to stop debugging).
6. Open the project's properties, go to the Web tab, and
* * select the radio button for "Use Local IIS Web server"
7. Save your changes and close the properties page.
* * If prompted to create the IIS Web site, agree to do so.
* * This happens only the first time you are doing this.
* *You can open the IIS console and see that this step has succeeded.
8. Build and run the project. It all works just fine.
9. Close Visual Studio.
10 Reboot the machine (or not - doesn't matter, I've tried both ways here)
11. Open Visual Studio to empty dev environment (no solution or project
opened).
12. Open the ASP.NET Web application project created in Step 2 above.
* * * At this point Visual Studio will just close (disappear from the
screen, with
* * * no error message appearing - it's just gone).
13. Navigate to the .csproj file and open it in notepad (NOT in Visual
Studio).
* * * Find the <UseIISelemen t, and change the value from True to False, so
* * * it looks like this: <UseIIS>False </UseIIS>
14. Now try to open the project again (do steps 11 and 12 again).
* * *This time it opens just fine (no error message).

My development box is configured as such: XP Pro/SP3 with IIS installed and
verified to be running just fine; Visual Studio 2008 Professional with
Service Pack 1. This is a brand new image. I zeroed out the hard drive plus
partitioned and plus formatted it before and installing a fresh copy of XP
Pro. I have installed all of the latest updates and patches from Windows
Update. I have installed .NET Framework 3.5 + it's SP1. None of this
apparently matters, though, because the problem described above happened on
the old image (before I zeroed out the hard drive, formatted, it, and
reinstalled everything). The old image had XP Pro sP2 and Visual Studio 2008
Pro with no SP. Now with everything reinstalled from scratch, it's still
doing this. It's actually a bit worse, because every other time,
approximately, that I try to run the application using the built-in Web
server, the IDE crashes with an error message stating that Visual Studio was
unable to connect to the built-in Web server.

Any ideas or suggestions for resolution? I don't want to reimage, as doing
so apparently has no effect on this problem.

Thanks.

Thanks for coming up with the detailed repro steps. This sounds like a
fantastic bug to file against Visual Studio, perhaps via a route like
Microsoft Connect. Or contacting Microsoft PSS since clearly the crash
is in a Microsoft product.

Only by digging into the crash dump of Visual Studio can one figure
out if the issue is actually caused by VS, ASP.Net, IIS, or something
else. But first investigation has to start with Visual Studio since it
is the program that is crashing and generating the crash dump.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Nov 4 '08 #2
For those interested in the resolution: The cause of this exotic problem is
that my antivirus software (Panda Antivirus 2008) was loading one of it's
dlls (pavlsp.dll) into the process along with devenv.exe (Visual Studio) and
causing the process to crash. Merely disabling Panda Antivirus was not
sufficient to cause the problem to go away. Instead, I uninstalled it (using
Panda's own uninstall utility) and then the problem went away entirely
(i.e,. Visual Studio would no longer fail as described in the OP).

The way I discovered that pavlsp.dll was crashing the process was through
the assistance of some very helpful Microsoft support folks. They installed
DebugDiag 1.1 (Debug Diagnostics Tool) onto the computer. That utility then
created some enormous log files (apparentlyl logs of all memory access) and
then had me upload them for further analysis. Those logs showed pavlsp.dll
as the problem here. Visual Studio was not, itself, choking in any way.

- HTH
"David Wang" <w3*****@gmail. comwrote in message
news:3b******** *************** ***********@v13 g2000pro.google groups.com...
On Nov 3, 9:48 pm, "Johnson" <A...@B.comwrot e:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual
Studio
2008 issue -- thus posting to 3 groups. Please don't be offended.

The problem I'm encountering is that Visual Studio closes unexpectedly and
without any error message being displayed, or error messages written to
the
system logs. Visual Studio closes when I attempt to open an ASP.NET Web
application (not Web site) solution for which IIS is set as the project's
Web server. If I switch the project to use the built-in Web server, then
Visual Studio opens with no problem.

How to reproduce.
1. Open Visual Studio 2008 pro to an empty IDE (no solution or project
opened)
2. Create a new ASP.NET Web application project (not Web site).
3. Add some text to default.aspx (e.g., "hello world").
4. Build and run the project (F5).
You will see default.aspx open, displaying the text you entered.
5. Stop debugging (close browser, tell Visual Studio to stop debugging).
6. Open the project's properties, go to the Web tab, and
select the radio button for "Use Local IIS Web server"
7. Save your changes and close the properties page.
If prompted to create the IIS Web site, agree to do so.
This happens only the first time you are doing this.
You can open the IIS console and see that this step has succeeded.
8. Build and run the project. It all works just fine.
9. Close Visual Studio.
10 Reboot the machine (or not - doesn't matter, I've tried both ways here)
11. Open Visual Studio to empty dev environment (no solution or project
opened).
12. Open the ASP.NET Web application project created in Step 2 above.
At this point Visual Studio will just close (disappear from the
screen, with
no error message appearing - it's just gone).
13. Navigate to the .csproj file and open it in notepad (NOT in Visual
Studio).
Find the <UseIISelemen t, and change the value from True to False, so
it looks like this: <UseIIS>False </UseIIS>
14. Now try to open the project again (do steps 11 and 12 again).
This time it opens just fine (no error message).

My development box is configured as such: XP Pro/SP3 with IIS installed
and
verified to be running just fine; Visual Studio 2008 Professional with
Service Pack 1. This is a brand new image. I zeroed out the hard drive
plus
partitioned and plus formatted it before and installing a fresh copy of XP
Pro. I have installed all of the latest updates and patches from Windows
Update. I have installed .NET Framework 3.5 + it's SP1. None of this
apparently matters, though, because the problem described above happened
on
the old image (before I zeroed out the hard drive, formatted, it, and
reinstalled everything). The old image had XP Pro sP2 and Visual Studio
2008
Pro with no SP. Now with everything reinstalled from scratch, it's still
doing this. It's actually a bit worse, because every other time,
approximately, that I try to run the application using the built-in Web
server, the IDE crashes with an error message stating that Visual Studio
was
unable to connect to the built-in Web server.

Any ideas or suggestions for resolution? I don't want to reimage, as doing
so apparently has no effect on this problem.

Thanks.

Thanks for coming up with the detailed repro steps. This sounds like a
fantastic bug to file against Visual Studio, perhaps via a route like
Microsoft Connect. Or contacting Microsoft PSS since clearly the crash
is in a Microsoft product.

Only by digging into the crash dump of Visual Studio can one figure
out if the issue is actually caused by VS, ASP.Net, IIS, or something
else. But first investigation has to start with Visual Studio since it
is the program that is crashing and generating the crash dump.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Nov 6 '08 #3
Glad to hear of your resolution.

Yes, using a tool like DebugDiag is a generally helpful
troubleshooting step, especially when you can reproduce a crash/hang/
issue reliably. At that point, a debugger can make short work of
determining the issue's culprit.

The file you uploaded is likely the memory dump file resulting from
the crash. DebugDiag's human-readable report is based on heuristic
analysis of the memory dump file, but a trained person can usually
make better sense/recommendation of that same memory dump.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


On Nov 6, 7:26*am, "Johnson" <A...@B.comwrot e:
For those interested in the resolution: The cause of this exotic problem is
that my antivirus software (Panda Antivirus 2008) was loading one of it's
dlls (pavlsp.dll) into the process along with devenv.exe (Visual Studio) and
causing the process to crash. Merely disabling Panda Antivirus was not
sufficient to cause the problem to go away. Instead, I uninstalled it (using
Panda's own uninstall utility) and then the problem went away entirely
(i.e,. Visual Studio would no longer fail as described in the OP).

The way I discovered that pavlsp.dll was crashing the process was through
the assistance of some very helpful Microsoft support folks. They installed
DebugDiag 1.1 (Debug Diagnostics Tool) onto the computer. That utility then
created some enormous log files (apparentlyl logs of all memory access) and
then had me upload them for further analysis. Those logs showed pavlsp.dll
as the problem here. Visual Studio was not, itself, choking in any way.

- HTH

"David Wang" <w3.4...@gmail. comwrote in message

news:3b******** *************** ***********@v13 g2000pro.google groups.com...
On Nov 3, 9:48 pm, "Johnson" <A...@B.comwrot e:


I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual
Studio
2008 issue -- thus posting to 3 groups. Please don't be offended.
The problem I'm encountering is that Visual Studio closes unexpectedly and
without any error message being displayed, or error messages written to
the
system logs. Visual Studio closes when I attempt to open an ASP.NET Web
application (not Web site) solution for which IIS is set as the project's
Web server. If I switch the project to use the built-in Web server, then
Visual Studio opens with no problem.
How to reproduce.
1. Open Visual Studio 2008 pro to an empty IDE (no solution or project
opened)
2. Create a new ASP.NET Web application project (not Web site).
3. Add some text to default.aspx (e.g., "hello world").
4. Build and run the project (F5).
You will see default.aspx open, displaying the text you entered.
5. Stop debugging (close browser, tell Visual Studio to stop debugging)..
6. Open the project's properties, go to the Web tab, and
select the radio button for "Use Local IIS Web server"
7. Save your changes and close the properties page.
If prompted to create the IIS Web site, agree to do so.
This happens only the first time you are doing this.
You can open the IIS console and see that this step has succeeded.
8. Build and run the project. It all works just fine.
9. Close Visual Studio.
10 Reboot the machine (or not - doesn't matter, I've tried both ways here)
11. Open Visual Studio to empty dev environment (no solution or project
opened).
12. Open the ASP.NET Web application project created in Step 2 above.
At this point Visual Studio will just close (disappear from the
screen, with
no error message appearing - it's just gone).
13. Navigate to the .csproj file and open it in notepad (NOT in Visual
Studio).
Find the <UseIISelemen t, and change the value from True to False, so
it looks like this: <UseIIS>False </UseIIS>
14. Now try to open the project again (do steps 11 and 12 again).
This time it opens just fine (no error message).
My development box is configured as such: XP Pro/SP3 with IIS installed
and
verified to be running just fine; Visual Studio 2008 Professional with
Service Pack 1. This is a brand new image. I zeroed out the hard drive
plus
partitioned and plus formatted it before and installing a fresh copy ofXP
Pro. I have installed all of the latest updates and patches from Windows
Update. I have installed .NET Framework 3.5 + it's SP1. None of this
apparently matters, though, because the problem described above happened
on
the old image (before I zeroed out the hard drive, formatted, it, and
reinstalled everything). The old image had XP Pro sP2 and Visual Studio
2008
Pro with no SP. Now with everything reinstalled from scratch, it's still
doing this. It's actually a bit worse, because every other time,
approximately, that I try to run the application using the built-in Web
server, the IDE crashes with an error message stating that Visual Studio
was
unable to connect to the built-in Web server.
Any ideas or suggestions for resolution? I don't want to reimage, as doing
so apparently has no effect on this problem.
Thanks.

Thanks for coming up with the detailed repro steps. This sounds like a
fantastic bug to file against Visual Studio, perhaps via a route like
Microsoft Connect. Or contacting Microsoft PSS since clearly the crash
is in a Microsoft product.

Only by digging into the crash dump of Visual Studio can one figure
out if the issue is actually caused by VS, ASP.Net, IIS, or something
else. But first investigation has to start with Visual Studio since it
is the program that is crashing and generating the crash dump.

//Davidhttp://w3-4u.blogspot.com http://blogs.msdn.com/David.Wang
//- Hide quoted text -

- Show quoted text -
Nov 6 '08 #4

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

Similar topics

2
3569
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing Visual Basic .net standard 2003. Not installing Visual Basic at the WinXP SP1A level - was the only way I found that I could install WinXPSP2. My...
1
1607
by: Veerle | last post by:
Hi, I have 5 files open in Visual Studio .NET. When I try to close the second file, Visual Studio closes too. When I reopen Visual Studio and then try to close the second file, Visual studio again closes. I can close the other files without any problems. So what I wanted to do is find where Visual Studio saves which files you have open...
2
1828
by: M Skabialka | last post by:
I installed Visual Studio Beta 2005 but setting up the SQL server was so complex I uninstalled it and put Visual Studio 2003 Academic on. I am totally new to Visual Studio and trying to teach myself from books and online classes. I tried to follow instructions to creating a new ASP.NET Web Application. The default location for this is...
0
2220
by: Massimiliano Polito | last post by:
It seems the option '/useenv' is no longer supported in in Microsoft Visual .NET 2005. If I run 'devenv /?' I get the following: ------------------------ Microsoft (R) Visual Studio Version 8.0.50727.42. Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Use: devenv
8
2197
by: HELLO $$$ | last post by:
To those who are familiar to MS Visual studio : I have recently Visual Studio 2005. Please can any body tells me , when I write a code: How can I separate the files of such code from the Studio program and operate it away from mother program (Studio). Thank you. =============================
2
2253
by: BrianHIckman | last post by:
MY MS Access application, all code in VBA, suddenly closes unexpectedly when attempting to open a specific form which contains combos and standard fields, fed by qry A which in turn calls qryB. I can't get at the form in design view or form view. Have tried Compact & Repair withou success. Can any genuis out there help please? XP HOme...
1
2335
by: Nathan Sokalski | last post by:
Visual Studio 2005 unexpectedly stopped generating the *.designer.vb files for *.aspx and *.ascx files. After a few days of frustration trying to fix this, I noticed that it had the following Warning in the Error List tab at the bottom of the screen: Generation of designer file failed: The relative virtual path '?/' is not allowed here....
15
12859
by: mlcampeau | last post by:
Does anyone know why my database sometimes closes on its own for no apparent reason? I don't think it has anything to do with my code because, as an example of when it closed on me, I was entering data on a form with a subform. I entered data for about 15 records and it worked absolutely fine, then I clicked next record as I did previously, and...
1
3502
by: Cramer | last post by:
I'm running XP Pro/SP2 + patches and updates, with Visual Studio Professional 2008 (and no prior installation of Visual Studio ever installed). When attempting to open an ASP.NET Web application project, Visual Studio shuts down immediately and with no error message. I can open Visual Studio - but when subsequently attempting to open the...
0
7679
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7996
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8191
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8049
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6392
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5284
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2185
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1289
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.