Visual Studio Cache
I was getting an error Element UpdatePanel is not a known element, also intellisense was not working in the aspx designer for ajaxcontrol toolkit controls
The fix: Close Visual Studio, delete the schema cache, and re-open Visual Studio. You
can find the schemas under something like:
%appdata%\Microsoft\VisualStudio\10.0\ReflectedSchemas
Please note that the AppData folder is invisible, so it can be accessed by navigating to the C:\Users\UserName folder and then type \AppData\Roaming\Microsoft\VisualStudio\ in front of it.
It is safe to delete all files in this folder.
refered from this post
http://forums.asp.net/t/1646008.aspx/1
Component Cache
Also there is a component cache used for designers (like user control designer). If this cache is invalid then user gets an error message like
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information. 1) Sequence contains no matching element Resulting in: An exception occurred while calling the 'OnImportsSatisfied' method on type 'Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.PackageViewModel'.
- Close Visual Studio IDE
- Delete the folder %localappdata%\Microsoft\VisualStudio\12.0\ComponentModelCache
- Repair Visual Studio Installation from Add/Remove Programs
BDC Entities
On another note, while deploying BDC entities I faced a problem because of caching in visual studio.
To clear this cache delete files in
- %Temp%\VWDWebCache
- %LocalAppData%\Microsoft\WebsiteCache
- %LOCALAPPDATA%\Microsoft\VisualStudio\11.0\Designer\ShadowCache
- Deploy SharePoint features using PowerShell rather than visual studio
More information about the issue can be found here:
http://stackoverflow.com/questions/520593/how-do-you-clear-your-visual-studio-cache-on-windows-vista
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/6c042390-0782-4afe-94be-9746d75f5d34/
http://www.stuartroberts.net/index.php/2010/12/01/visual-studio-caching/
Language Dependency
When I used workaround mentioned in the last post above, I got an error
Invalid option '3' for /langversion; must be ISO-1, ISO-2 or Default
The issue here is Visual Studio has language dependency on ISO-1 or ISO-2. To change change language dependancy of VS project follow the steps mentioned here:
http://stackoverflow.com/questions/6460310/how-to-remove-language-dependency-in-vs-2010
TFS Cache
Clear files in %LocalAppData%\Microsoft\Team Foundation\1.0\Cache
These are some more links which discuss different scenarios when clearing visual studio cache might be necessary.
MSDN blog
http://blogs.msdn.com/b/jamesway/archive/2011/05/23/sharepoint-2010-clearing-the-configuration-cache.aspx
http://weblogs.asp.net/psheriff/archive/2011/11/08/clean-up-after-visual-studio.aspx
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /resetuserdata
No comments:
Post a Comment