473,396 Members | 2,090 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,396 software developers and data experts.

Visual Studio Shuts Down Unexpectedly When Loading Project - ASP.NET Web Application running against IIS

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 project, Visual Studio
immediately shuts down.

More specifically:
I can create a new ASP.NET Web application project. By default it uses the
ASP.NET development server. The project loads and runs just fine that way.
But I want to run the application via IIS. So I go to the project properties
| Web Tab | then select "Use IIS Web server", then click on Create Virtual
Directory. At this point I can save changes and press F5 to run the project.
It fires up just fine, displaying the default.aspx in IE7. I can stop and
start the project multiple times and everything seems fine. But if I close
the project in Visual Studio (File |
Close Solution) - and then attempt to open the project again (via any
method, including File | Recent Projects) Visual Studio will close almost
immediately and with no error message at all.

The only way I can get the project to open again (without VS shutting down
unexpectedly) is to manually edit the .csproj file and change
<UseIIS>True</UseIISto <UseIIS>False</UseIIS>. That is, I manually
reconfigure the project to NOT use IIS. Doing this lets me back in and I can
compile and run the project. If I then switch it back to using IIS, it will
run just fine until I close the project and subsequently open it again - at
which point VS will shut down without warning (again).

What I have done to fix (but to no avail) includes:
1. uninstalled and reinstalled IIS
2. repaired my Visual Studio installation
3. uninstalled and reinstalled Visual Studio
4. ran aspnet_regiis -i several times (after each time I did any of the
above).

Separately, I have a second development machine with a virtually identical
software configuration (XP Pro/SP2 with Visual Studio 2008 Pro) and it has
no such problems. The other machine (that works fine) has identical project,
security and IIS settings. I can follow the exact same steps to create the
Web application project and switch to IIS and everything is just fine on
that other machine.

I would really appreciate useful suggestions on how to fix this, as I don't
want to reimage the machine if possible.

Thanks!

FWIW, in a separate post regarding a similar problem experienced earlier
(but now replaced by this new problem) I mentioned that I had been
developing ASP.NET 1.1 ---- BUT that was on a completely different machine.
I have never had the 1.1. Framework on either of the machines described
above (the one that fails and the identical one that works). These are the
first ASP.NET Web applications I have attempted to work with on these
machines.

Apr 5 '08 #1
1 1867
Had similar problems with random crashes in VS 2005 but only with ASP
projects and only when integrated with SourceSafe. The problem went away when
I removed the SourceSafe integration. Might be related...are you using
SourceSafe?

Pete

"Cramer" wrote:
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 project, Visual Studio
immediately shuts down.

More specifically:
I can create a new ASP.NET Web application project. By default it uses the
ASP.NET development server. The project loads and runs just fine that way.
But I want to run the application via IIS. So I go to the project properties
| Web Tab | then select "Use IIS Web server", then click on Create Virtual
Directory. At this point I can save changes and press F5 to run the project.
It fires up just fine, displaying the default.aspx in IE7. I can stop and
start the project multiple times and everything seems fine. But if I close
the project in Visual Studio (File |
Close Solution) - and then attempt to open the project again (via any
method, including File | Recent Projects) Visual Studio will close almost
immediately and with no error message at all.

The only way I can get the project to open again (without VS shutting down
unexpectedly) is to manually edit the .csproj file and change
<UseIIS>True</UseIISto <UseIIS>False</UseIIS>. That is, I manually
reconfigure the project to NOT use IIS. Doing this lets me back in and I can
compile and run the project. If I then switch it back to using IIS, it will
run just fine until I close the project and subsequently open it again - at
which point VS will shut down without warning (again).

What I have done to fix (but to no avail) includes:
1. uninstalled and reinstalled IIS
2. repaired my Visual Studio installation
3. uninstalled and reinstalled Visual Studio
4. ran aspnet_regiis -i several times (after each time I did any of the
above).

Separately, I have a second development machine with a virtually identical
software configuration (XP Pro/SP2 with Visual Studio 2008 Pro) and it has
no such problems. The other machine (that works fine) has identical project,
security and IIS settings. I can follow the exact same steps to create the
Web application project and switch to IIS and everything is just fine on
that other machine.

I would really appreciate useful suggestions on how to fix this, as I don't
want to reimage the machine if possible.

Thanks!

FWIW, in a separate post regarding a similar problem experienced earlier
(but now replaced by this new problem) I mentioned that I had been
developing ASP.NET 1.1 ---- BUT that was on a completely different machine.
I have never had the 1.1. Framework on either of the machines described
above (the one that fails and the identical one that works). These are the
first ASP.NET Web applications I have attempted to work with on these
machines.

Apr 8 '08 #2

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

Similar topics

7
by: Bob L. | last post by:
Hi everyone, I am working on converting a VB6 project to .NET, and I am astounded at how amazingly slow Visual Studio is when loading a solution. For example, I have a solution with 11 class...
63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
7
by: Charles | last post by:
I have Visual Studio 6.0 stand-alone (with C++) and as part of Compaq Visual Fortran 6.6c. I am moving my development from a Win 98 SE machine w/2x 10 Gb HDD (each w/ 1Gb free), 768 Mb RAM to a...
2
by: Roberto Rocco | last post by:
Whenever I try to create a new ASP Web Page I get this message : "Visual Studio cannot create or open the application because the Web server on this computer is not running. Start the Web server...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
0
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...
1
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...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
3
by: Johnson | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
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
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,...

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.