Solved

ASP.NET VisualStudio 2008 error

Posted on 2013-12-12
9
312 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
  • 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
 

Author Comment

by:toooki
ID: 39715944
Thanks but sorry I still get error.
error
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

948 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now