TeaDrinkingGeek
TeaDrinkingGeek

Reputation: 2023

'There is no editor available' error in VS 2010

When I tried to select designer view in VS 2010 I get this error:

There is no editor available for 'c:\user\teadrinkinggeek\documents\visual studio 2010\websites\website2\About.aspx'.

Make sure the application for the file type (.aspx) is installed.

I opened a different website and the error is still there.

How do I resolve this?

Upvotes: 7

Views: 22180

Answers (11)

Sagar Pegantar
Sagar Pegantar

Reputation: 1

I've also encountered the same problem in Visual Studio 2008. But don't worry folks it's damn simple to solve.

Just follow the simple steps stated as follows:

  1. Close all the opened programs on your machine.
  2. Go to Command Prompt window
  3. Give the following command : c:\program Files\Microsoft Visual Studio 9.0\Common7\IDE
  4. Now run: devenv /resetskippkgs

♦Enjoy coding my pals♦

Upvotes: 0

Casey Plummer
Casey Plummer

Reputation: 3088

You can also receive this message if the Build Action property is set to None on the (.cs/.vb) file.

Click on the (.cs/.vb) file in your project, look at the Properties Window (press F4 if not visible), make sure that the Build Action property is set to Compile.

Its a really misleading error message in this case.

Upvotes: 0

user2406571
user2406571

Reputation: 111

I had this issue and it was easly resolved by the following:

Right-Click on the .edmx file --> Open With --> ADO.NET Entity Data Model Designer and then Set as Default.

Upvotes: 11

Israel Margulies
Israel Margulies

Reputation: 8962

Sometimes it happens because one of the references of the project are making problems.

Solution:

Build your solution to Identify the reference that is making problems, remove the reference and add it again, after rebuilding your project everything will work fine.

Upvotes: 2

Lissa
Lissa

Reputation: 1

I tried the devenv /resetskippkgs command with no results. However, after it failed, I played around with the form properties. When I clicked on frmFormName.vb in the Solution Explorer, the properties window showed something different for "build action" than did my other form. I changed this property to "compile" to match my other form. Now, everything is working fine. I hope this helps.

Upvotes: 0

Chris Webb
Chris Webb

Reputation: 11

I've been struggling with this issue with Visual Basic Express 2008 for ages and have tried just about every solution that I came across. As per the solution from Cody Gray I opened a command prompt at c:\program Files\Microsoft Visual Studio 9.0\Common7\IDE and then executed

vbexpress /resetskippkg

When VB Express 2008 opened all was well and I could at last access the form designer window! Worked a treat!!!

Upvotes: 1

TeaDrinkingGeek
TeaDrinkingGeek

Reputation: 2023

I made a ‘painful’ decision to uninstall all things related to VS 2010, and re-install from scratch. After 6 hours of troubleshooting, re-installing VS 2010 again, it worked.

Note: I initially run Visual Web Developer side-by-side with VS 2010. I uninstalled that package too. Maybe the two packages caused the problem? However I spoke to one developer on Twitter, he said he had no problem with both packages working side-by-side. Maybe it was the way I initially installed them.

If you have the same problem, please backup your work, projects etc, before you uninstall, otherwise you might run into more problems.

Upvotes: 1

kayess
kayess

Reputation: 1

Well I faced the same issue. I right clicked on edmx file and opened it with Entity Data model designer. Hope this helps.

Upvotes: 0

user3793508
user3793508

Reputation: 1

I am very new to VS 2010 and I had this same problem. I spent hours on the net to no avail. Out of desperation I created a new solution and the copied all my existing files into it's directory. I then entered my new app and said "show all files". All my 'old' files were displayed, with "white icons" . I then right-clicked each file and said add to project for each one. I then rebuilt all and everything is back to normal and it did not take long. Hope it can help someone. I know it does not sound to professional, but hey, it works. Arthur Oliver

Upvotes: 0

Shaoden
Shaoden

Reputation: 65

I switched my target framework for this project from older 2.0 to 4.0 and designer opened.

Upvotes: 1

Cody Gray
Cody Gray

Reputation: 244981

This problem is somewhat difficult to diagnose. The easiest thing is probably to re-install your copy of Visual Studio. Most likely, something got corrupted during the installation, or you failed to install a crucial component required for opening ASPX files.

Aside from that, there is one trick that I've seen work before. I suppose it's worth a try before you go through the trouble of re-installing. Here are the steps:

  1. Open a new command prompt window.
  2. Navigate to the directory path in which you installed Visual Studio.
    (I have no experience with the Express editions, so I'm not sure if the paths and names of the executables are the same as the
    full versions. I suspect they're probably not. Thus, the best way to get this information is right-clicking on your shortcut icon.
  3. Execute the following command, where "devenv" is the name of the executable you use to start
    the Visual Studio IDE:

    devenv /resetskippkgs
    

Upvotes: 2

Related Questions