Solved

ASP.NET VisualStudio 2008 error

Posted on 2013-12-12
9
311 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

22 Experts available now in Live!

Get 1:1 Help Now