So, I ran the Secunia Online Vulnerability inspector on my work PC and noticed there were over a dozen missing patches. I ran WindowsUpdate and had to reboot.
After rebooting, I reloaded Visual Studio 2008 and my ASP.Net project that I’m working on. I noticed that the designer was unable to render on any of my pages that had an updatePanel and the error I got was:
asp:UpdatePanel could not be set on property 'ContentTemplate'
After some googling and reading and testing, here’s how I was able to fix the problem.
- In your project, close any pages that have the problem. This way, when you open the project again,it won’t try to display them upon loading the solution.
- Exit VS2008 entirely.
- Get to a CMD prompt (hit WindowKey-R and type cmd [enter]) and at the DOS-like prompt, type iisreset.
- From Windows Explorer (hit WindowKey-E) Navigate to and delete everything from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\[Your application name]. I actually just deleted the [Your application name] folder itself.
- Restart VS2008, load your solution. Now, select one of the problem files, and view with designer and hopefully, you will be all fixed up.
This problem occurred on VS2008, with SP1 installed, on a project under Framework 3.5, running on a Windows XP SP2 box, 32-bit. But I’ve heard it happens on 64-bit as well.
If this does not fix it or the problem keeps coming back, you might try this hotfix: http://code.msdn.microsoft.com/KB961864/Release/ProjectReleases.aspx?ReleaseId=2194
I deleted the [app] folder from the Temporary ASP.NET Files and restarted the VS 2008 Editor. And it worked.
Thanks a mil and keep on doing the fantastic job
It worked for me too !!! Thanks a lot !!!
thanks for the hint, worked perfectly!
It worked for me too then came back again later, is there a permanant fix for this?
I’m not aware of any permanent fix. So far, I’ve been lucky, it hasn’t come back.
it worked after fix but not for all pages
anyway, thanks
Thanks for the post. Worked like a charm.
Cheers, this did the job for me.
simple but efficient, thanks.
Thanks. It worked for me.
fixed the problem
how did you figure this out?
It took a good bit of looking at what others had tried and combining some things… experimentation… and finally figuring it out.
This worked. Thanks a lot
thank you david. Your post was very helpfull!!! i was trying to figure out what was happening in my code a lot of hours.
Very helpful! Thanks so much.
I did all the steps and it worked for me. Thanks a lot.
It didn’t work for me! Waah
make sure that you have all required properties on your controls. ie runat
Thanks, it worked for me.
Thanks man, It worked good…….