I was using Visual Studio 2010. I was debugging a web application and an exception happened and VS 2010 froze. I ended the VS 2010 in the task manager and when I went back to developing, I found on every form for every ASP.net control I get:
Error Creating Control -
Error HRESULT E_FAIL has been returned from a call to a COM component.
Also I am unable to edit the form or add anything from the toolbox.
Solution:
This error comes because of Caching of Visual Studio
Delete the Cache.
You can delete the project cache at "Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache", then run "devenv /setup" to build the cache again to see if it helps.
This worked great - thank you! In my case, the designer was throwing up E_FAILs for my master page and intellisense started to get 'confused'. This sorted both out.
ReplyDeleteWorked great for me too, thanks :)
ReplyDeleteits not working to re-install cache.please help
ReplyDeleteRemoving and re-adding work for me
ReplyDeleteThis error occurs when open pdf files from my application.I have distributed my app's setup to all clients and application working fine except this error.So how to fix this from client's system now.??
ReplyDeleteIt didn't work for me. Do I have to restart my server?
ReplyDeletedidn't work for me
ReplyDeleteHo to run "devenv /setup" to build the cache again
ReplyDeleteHi Raj,
DeleteTo run devenv /setup" to build the cache again below is the path.
Start—>Run—> C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /setup