472,954 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 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 3446
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...
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
1
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.