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\websit开发者_运维技巧e2\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?
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
.
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:
- Open a new command prompt window.
- 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. Execute the following command, where "
devenv
" is the name of the executable you use to start
the Visual Studio IDE:devenv /resetskippkgs
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.
I switched my target framework for this project from older 2.0 to 4.0 and designer opened.
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.
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!!!
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
Well I faced the same issue. I right clicked on edmx file and opened it with Entity Data model designer. Hope this helps.
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.
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.
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:
- Close all the opened programs on your machine.
- Go to Command Prompt window
- Give the following command : c:\program Files\Microsoft Visual Studio 9.0\Common7\IDE
- Now run: devenv /resetskippkgs
♦Enjoy coding my pals♦
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.
精彩评论