I have a problem where my ASP.NET controls are not able to be referenced from the code behind files.
I found a solution in Stack Overflow question ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008.
But I cannot seem to find my Visual Studio cache to clear it. I am using Visual Studio 2005 on Windows Vista.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
The accepted answer gave two locations:
here
C:Documents and SettingsAdministratorLocal SettingsTempVWDWebCache
and possibly here
C:Documents and SettingsAdministratorLocal SettingsApplication DataMicrosoftWebsiteCache
Did you try those?
Edited to add
On my Windows Vista machine, it’s located in
%Temp%VWDWebCache
and in
%LocalAppData%MicrosoftWebsiteCache
From your additional information (regarding team edition) this comes from Clear Client TFS Cache:
Clear Client TFS Cache
Visual Studio and Team Explorer
provide a caching mechanism which can
get out of sync. If I have multiple
instances of a single TFS which can be
connected to from a single Visual
Studio client, that client can become
confused.To solve it..
For Windows Vista delete contents of this folder
%LocalAppData%MicrosoftTeam Foundation1.0Cache
Method 2
I experienced this today. The value in Config was the updated one but the application would return the older value, stop and starting the solution did nothing.
So I cleared the .Net Temp folder.
C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files
It shouldn’t create bugs but to be safe close your solution down first. Clear the Temporary ASP.NET Files then load up your solution.
My issue was sorted.
Method 3
I had the same issue but when i deleted the cached items from Temp folder the build failed.
In order to make the build work again I had to close the project and reopen it.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0