Solved

ASP.NET VisualStudio 2008 error

Posted on 2013-12-12
9
317 Views
Last Modified: 2013-12-28
I have a web application written in C# in Visual Studio 2008. It was an working application that I compiled and run on my local PC(windows 7).

but now I get the error:
unable to connect to the asp.net development server

When I run the application, the compilation succeeds but then it returns the error. I attached the screenshot.
error
Could you please suggest me how to fix the error? Thanks a lot.
0
Comment
Question by:toooki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 20

Expert Comment

by:TheAvenger
ID: 39715915
Right click on the project and select properties. Then go to Web and change the configuration options, i.e. change from local server to a remote and then back. Just change them as you need them, save and retry.
0
 

Author Comment

by:toooki
ID: 39715924
Thanks a lot. When I right click on the project and select properties. Then go to Web, I get the attached screen below.

error
Could you please let me know which one I change here under the "Servers" menu?
This is my PC file folder:
C:\PDPM\int_2.11\PDPMWebSln\ProductHealth\ProductHealthDashboard.aspx (which is my start page).
0
 
LVL 20

Expert Comment

by:TheAvenger
ID: 39715930
Try selecting Current page at the top and Specific port at the middle
0
Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

 

Author Comment

by:toooki
ID: 39715944
Thanks but sorry I still get error.
error
0
 
LVL 20

Expert Comment

by:TheAvenger
ID: 39715950
A person reports that the web server was stuck. Have you tried restarting the machine? Or just killing the process "WebDev.WebServer40.EXE" (or similar, this one is for VS 2010)?

Another option: Replace WebDev.WebServer.exe with another exe C:\Program Files (x86)\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.exe. Restart your machine .
0
 

Author Comment

by:toooki
ID: 39716006
Thank you. I killed the processes like WebDev.WebServer40.EXE and tried. I got the same error.

Then I restarted the PC and then run. This time I get a different error (It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. ) and I attached the screenshot. Could you please suggest what could cause the error?
error
0
 
LVL 20

Expert Comment

by:TheAvenger
ID: 39716012
Can you try to use the standard IIS instead of the development one? It is done at the same place in the properties of the project but you need to have IIS installed locally. If this one runs, then your development server is damaged and you might need to reinstall VS
0
 

Author Comment

by:toooki
ID: 39716256
Thank you. But I think I am in big problem. Now I right-click on the project and do not see the "Property" menu any more.
error
0
 
LVL 20

Accepted Solution

by:
TheAvenger earned 500 total points
ID: 39716259
You have to click on the project itself, not on a folder in it.
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question