'There is no editor available' error in VS

2020-03-18 04:15发布

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?

12条回答
何必那么认真
2楼-- · 2020-03-18 04:34

To solve that issue just check your reference and fix those that has "!".

This happened to me also: related/additional notes related to this fix.

Solution Explorer

--> Expand References

--> Right click on the item with "Yellow Triange w/ "!" point"

--> select "Remove"

Open the "Build" Menu at the top

--> select: Rebuild "filename"

Double clicking on the from name in Solution Explorer would then open the from normally for me.

查看更多
Bombasti
3楼-- · 2020-03-18 04:35

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.

查看更多
劫难
4楼-- · 2020-03-18 04:41

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.

查看更多
孤傲高冷的网名
5楼-- · 2020-03-18 04:43

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

查看更多
你好瞎i
6楼-- · 2020-03-18 04:43

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
    
查看更多
走好不送
7楼-- · 2020-03-18 04:49

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♦

查看更多
登录 后发表回答