Download Hotfix for Visual Studio 2008 Property Serialization Issue

Download KB967253 Hotfix Download and install this latest Microsoft hotfix which corrects the dreaded 'property serialization issue'.

First The Solution

Click here to download the 6mb Hotfix KB967253. A single (exe) file which updates your Visual Studio 2008 instance.

The Issue

Changes made in Visual Studio designer were not saved when going to the source view. The issue was first found with DevExpress ASP.NET controls. However, after further inspection, we found that this was a general bug with Visual Studio 2008.

You can see the bug by following these 5 steps:

  1. Create a new web site
  2. Put a standard Wizard control
  3. Put a standard GridView inside the wizard's editable region (framed area)
  4. Go to the GridView's properties and set the PagerSettings.Visible to False
  5. Switch to Source view

What do you see? If the changes are not serialized then grab the hotfix.

You can read more about the original issue I reported on Microsoft Connect. The KB967253 hotfix addresses 7 issues in all and you can read about them on the Visual Web Developer Team blog.

Thanks Microsoft

Special thanks goes to Microsoft Developer Extraordinaire, Mikhail Arkhipov, for fixing these issues in both Visual Studio 2008 and Visual Studio 2010.

Dan Parsons

Ah, Microsoft.   Tried to download and jet a javascript dialog...  "Could not connect to the database"

23 March, 2009

Hi Dan,

Yes. Unfortunately, it looks like the Microsoft Connect site is down temporarily. Please check back later and hopefully it will be back up soon.

23 March, 2009

Looks like only an x86 file.  Wonder if a separate x64 fix is required?

23 March, 2009

Looks like the Microsoft connect site is back up. Commence Downloading ...

23 March, 2009

Hi Neal,

Mikhail says,

"VS is not 64bit and neither is Office." Smile

23 March, 2009
heather

Hi Mehul,

Thanks for the update.  I installed the patch and it definitely solved the serialization issue but it seems another oldy but goody is back...

The ole &nbsp corruption within properties for the source file.  I went into a grid and changed a column from hidden to visible and it definitely persisted the change but also introduced a pile of &nbsp in this case around properties for ALL my embedded text edits.

I don't understand how Microsoft tests these fixes.  This &nbsp is another major hassle and this just continues to erode productivity.

If VS210 isn't a good fix for these basic problems I think Microsoft can pretty count on hoards of developers leaving...we are pretty much at the end of getting bit by Microsoft...our applications are hard enough to write without all these productivity hassles.  Maybe Microsoft needs to hand the IDE over to you guys and Mark.  At least we know Mark would a proper and complete job.

23 March, 2009

Glenn,

Hmm, that's weird. That's one of the issues it solves. Email me the details please.

23 March, 2009

Bout dam time they published this bloody fix!! yay! :)

23 March, 2009

Thank you Mehul for the info and for report the update. Like this big issue.. many other has been reported and not fixed yet. I'm having troubles with exceptions with resources and compiler issues.

And... working in VS2010...? LOL

Regards

24 March, 2009

Heather - can you please contact me with repro steps and sample page: mikhaila-at-microsoft-dot-com.

Unfortunately, &nbsp issues have been difficult to track, perhaps there is something special in the page or control generated HTML.

24 March, 2009

Hi Cesar,

Mikhail has provided his contact info. Contact him about some of these issues.

24 March, 2009

Good to see this one off the list - highly relieved!  It was getting a nuisance to have to keep a spare project with items NOT contained in another control just to be able to cut and paste the changes into projects where the problem was appearing.

This is also corrected when using (eg) GridViews in RoundedPanels (hooray) - many thanks for pointing this fix out - cheers, David

24 March, 2009
Lars Christiansen

Unfortunately the hotfix introduces a new (an worse) bug:

Try add a standard panel to a form.

Place a standard html <img> on to it.

Switch between design and code mode.

The designer amends the filepath of the img scr property adding absolute filepath and/or Angel , [R] or Sleep to the path making it unusable.

If you have a few nested panels vs will hang.

Lars

25 March, 2009

Hi Lars,

Thanks for the heads up. If you find a workaround or have an update to this issue, please post a comment here for others. Smile

25 March, 2009

At last!  How MS can have left this gaping hole I just don't know.  The days I've lost to it are inestimable, and finally some dedicated geek cranks out a fix.  There are still bugs, but this hotfix does solve a lot of problems and is highly recommended.

26 March, 2009

Unfortunately the only "workarounds" we have found are:

Change all img tags to image server controls

or

uninstall hotfix ;-(

26 March, 2009

Lars,

Sorry to hear about that issue. If there is a MS Connect link, then please post it here. Also, would it help if you used ASPxImage control instead of the IMG tags?

26 March, 2009

Doesn't fix the problem for me, but didn't create any new problems either, so I guess that's good.

How is it that a hotfix like this works for some but not all? What gives?

I've changed the widths of the columns in my aspxGridView about a hundred times now and they just keep changing back.

26 March, 2009

Whoops, I spoke to soon. The fix did not work at first, but I rebooted and now it does seem to have fixed the serialization problem.

26 March, 2009
Saif Khan

I saw this in VS 2005 a while back.

28 March, 2009
Sue C

I installed the fix and had the same problem with my IMG tags .... I uninstalled the fix.    I just don't want to buck-up on other problems later on.

30 March, 2009

Ok, so the serialization of properties has been fixed, but I am now experiencing two new issues that are worse.

1) Same as Sue and Lars- Some of my img tags have been ruined. The path is about a mile long and starts with an [R] and then file:///. The path repeats over and over and over again, and it is a absolute path to the file on the local development machine. Fix it, it comes back the next time you switch between the designer and markup.

2) Extreme lag in the code behind editor. It is inconsistent, but unlike any lag I have seen before in the VB source code editor. But essentially VS just locks up for 3-10 seconds while typing VB code, randomly. SOmetimes it is just really slow, like as I type each letter it is a second or two before that letter appears on screen.

2 April, 2009

Josh, Sue, Lars,

Mikhail will post an update to the hotfix that addresses a couple issues, including the IMG tags. I don't have a release date yet but it will take some weeks to go through the process. Of course, I'll update you once it's released.

7 April, 2009

Yeah, the [R] and then file:/// problem has also wrecked out code because of this hotfix. Thanks for letting us know about this.  We're uninstalling now.

Don't they test this stuff first?

Chris

17 April, 2009

The hotfix has been temporarily removed. Hope it comes back with all it's issues fixed as I'd be happy to see the end of this bug.

blogs.msdn.com/.../hotfix-for-design-view-does-not-update-html-and-to-designer-inserts-a-lot-of-nbsp.aspx

23 April, 2009

This is still not posted.    Just today I started having this issue with a specific Grid, am I going crazy or is this just an intermittent bug, anyone know how to avoid the bug??  Once you can not edit with the visual designer it starts takes a lot longer to edit code,   I hope someone can get this issue resolved and soon, is there something DevExpress can do to work aroud the issue?  Sorry to ask, but this is so critical.

4 May, 2009

Hi Shawn,

As Renae mentioned, the hotfix has been temporarily pulled. I'll update this blog once the hotfix has been replaced.

4 May, 2009
Didik Ismoyo

I have a solution for GridView, not the best but at least can solve the problem while waiting microsoft to fix the bugs.

Everytime we've changed the GridView properties (Columns, Settings etc.), don't forget to change the Width or Height of the GridView. This will make the source code to write our design time form.

As I said, this is just an alternate way to solve the problem. But the truth is, Microsoft should respons this VS 2008 bugs instead of advising developer to consume VS 2010. I don't think it's a satisfied answer.

5 May, 2009

THANKS for the solution regarding the GridView. The workaround works great!!!

This issue was driving me nuts when i added or deleted columns.

I wonder why it taks over 4 months to create a working hotfix...

7 May, 2009
SamP

!!! KB967253 has been updated/replaced with a new version. !!!

13 May, 2009

Microsoft just released an updated hotfix to the Visual Studio 2008 Serialization issue . Why release

13 May, 2009
Evan

I installed the updated hotfix today, but the designer changes to an ASPxGridView object still don't show up in the markup. Tried a reinstall, but it still doesn't work. I'm running 2008 SP1 w/DX 9.1.3 on Vista 32.

18 May, 2009
SamP

Evan, make sure you reboot. Several people have reported that it doesn't take effect until you reboot.

Sam

19 May, 2009

installed and working fine on my pc

29 May, 2009
Tim

I have this issue, but the hot fix is  missing, page not found.

Where can I get this fix?

12 June, 2009

Hi Tim,

Looks like the hotfix has been pulled. Mikhail at Microsoft says they're working to get it back online.

15 June, 2009

So no idea why they pulled it?

15 June, 2009

Richard,

Mikhail said there was confusion about possible worm but it was a mistake. They're working to get it back online ASAP. Not sure when that could be but keep checking a couple times a day. :)

15 June, 2009

Looks like the hotfix is available now.

18 June, 2009
Filip Cornelissen

Hotfix doesn't work :(

13 August, 2009

Bloody hell, turned me crazy the bug!

13 November, 2009

Does anyone know if this bug fixed all their problems?  I am still having problems getting controls to serialize their changes to output if they are contained within a CallbackPanel or other container.

12 January, 2010

@Brandon,

Yes, the bug is fixed with this patch. If you still have issues, then contact Mikhail from Microsoft who left his email in one of the comments above.

12 January, 2010

Thanx, this fixed this indeed.

13 February, 2010

I have installed the fix, and i still have designer code not showing in source code, for example i remove an updatepanel trigger and it STILL shows in the source code....

26 February, 2010

@Mahieddine,

I recommend contacting Mikhail at Microsoft. He left this comment above with his email:

>>can you please contact me with repro steps and sample page: mikhaila-at-microsoft-dot-com.

26 February, 2010

I've got this property serialization problem on a lot of out controls.  We are using windows 7 64 bit with DX 9.3.4 and VS 2010.  

We had this serialization issue on VS 2008 as well.  Now I tried to install this patch on my PC and it tells me:  "No products affected by this package installed on system"

How ever I've got office 2010 installed and remove 2010 and install 2007 as the file name indicates office 2007.  No luck.

Any Ideas anyone?

10 May, 2010

@Paul,

Seems unusual as I think this hotfix was already rolled into VS2010. I recommend that you ping Mikhail from Microsoft, his email is:

mikhaila-at-microsoft-dot-com

10 May, 2010

Thanks Mehul.  

This property serialization issue is very bad in 2010.

I have made contact with mikhaila, and hopefully he can assist me.

Regards

Paul

10 May, 2010

Paul or Mehul,

Did you find out why the hotfix does not install for VS 2010? I too am suffering with this problem and have all of the latest software installed.

Thanks,

Shaun

11 February, 2011

Shaun,

The hotfix is made for VS2008 and not VS2010.

I recommend that you contact Mikhail from Microsoft, his email is:

mikhaila-at-microsoft-dot-com

14 February, 2011

I had the same problem in WinXP and VS2008 pro. After I installed the hotfix and it work's fine.

Today I have another problem: I have Windows 7 x64!!!

I can't find the fix for x64, only for x86 :(

I can't to install: "The detection failed, this can be due to a corrupted installation database".

Any suggestion?

12 April, 2012

C#ristian,

There is no Visual Studio for x64 (yet):

blogs.msdn.com/.../visual-studio-why-is-there-no-64-bit-version.aspx

As for the hotfix issue, please contact Microsoft and they can probably help you.

Thanks.

12 April, 2012

I have Windows 7 x64 and I have the same problem! :@

What can I do? The changes in design mode doesn't generating code!!!

24 April, 2012

C#ristian,

Please ping Microsoft support about this issue and they can help you.

Thanks.

24 April, 2012

Please login or register to post comments.