Blogs

This Blog

Subscribe (RSS, Email)

Mehul Harry's DevExpress Blog

JavaScript, HTML 5, ASP.NET, DevExpress, ASP.NET MVC & WebForms, and News - Mehul Harry's DevExpress blog

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.

Published Mar 23 2009, 02:10 PM by
Bookmark and Share

Comments

Dan Parsons

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

March 23, 2009 5:31 PM

Mehul Harry (DevExpress)

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.

March 23, 2009 5:39 PM

Neal

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

March 23, 2009 7:04 PM

Mehul Harry (DevExpress)

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

March 23, 2009 7:04 PM

Mehul Harry (DevExpress)

Hi Neal,

Mikhail says,

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

March 23, 2009 7:24 PM

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.

March 23, 2009 7:24 PM

Mehul Harry (DevExpress)

Glenn,

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

March 23, 2009 8:07 PM

Chris Walsh [DX-Squad]

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

March 23, 2009 10:22 PM

CESAR F. QüEB

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

March 24, 2009 11:01 AM

Mikhail Arkhipov (MSFT)

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.

March 24, 2009 12:06 PM

Mehul Harry (DevExpress)

Hi Cesar,

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

March 24, 2009 12:16 PM

David Mustard

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

March 24, 2009 12:54 PM

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

March 25, 2009 2:07 PM

Mehul Harry (DevExpress)

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

March 25, 2009 4:01 PM

Peter Hearn

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.

March 26, 2009 8:28 AM

Lars Christiansen

Unfortunately the only "workarounds" we have found are:

Change all img tags to image server controls

or

uninstall hotfix ;-(

March 26, 2009 9:41 AM

Mehul Harry (DevExpress)

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?

March 26, 2009 2:08 PM

Josh Sommers

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.

March 26, 2009 3:50 PM

Josh Sommers

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.

March 26, 2009 4:26 PM

Saif Khan

I saw this in VS 2005 a while back.

March 28, 2009 11:34 PM

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.

March 30, 2009 5:48 PM

Josh Sommers

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.

April 2, 2009 3:24 PM

Mehul Harry (DevExpress)

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.

April 7, 2009 6:37 PM

Christopher Lee

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

April 17, 2009 11:51 AM

Renae Sutherland

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

April 23, 2009 9:40 PM

Shawn Oles

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.

May 4, 2009 12:58 PM

Mehul Harry (DevExpress)

Hi Shawn,

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

May 4, 2009 1:38 PM

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.

May 5, 2009 11:33 AM

Ralf Kaiser

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...

May 7, 2009 6:34 AM

SamP

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

May 13, 2009 2:58 PM

The ASPx Blog - Mehul Harry's DevExpress Blog

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

May 13, 2009 7:21 PM

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.

May 18, 2009 1:48 PM

SamP

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

Sam

May 19, 2009 1:38 PM

pagerank

installed and working fine on my pc

May 29, 2009 9:04 AM

Tim

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

Where can I get this fix?

June 12, 2009 3:07 PM

Mehul Harry (DevExpress)

Hi Tim,

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

June 15, 2009 4:32 AM

Richard Berman_1

So no idea why they pulled it?

June 15, 2009 6:50 PM

Mehul Harry (DevExpress)

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. :)

June 15, 2009 8:17 PM

Mehul Harry (DevExpress)

Looks like the hotfix is available now.

June 18, 2009 8:23 PM

Filip Cornelissen

Hotfix doesn't work :(

August 13, 2009 10:53 AM

Marc Enzler_1

Bloody hell, turned me crazy the bug!

November 13, 2009 11:01 AM

Brandon Ryan

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.

January 12, 2010 11:13 AM

Mehul Harry (DevExpress)

@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.

January 12, 2010 1:16 PM

Hakan Mesakkat

Thanx, this fixed this indeed.

February 13, 2010 2:03 PM

Mahieddine Aggoun

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....

February 26, 2010 11:59 AM

Mehul Harry (DevExpress)

@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.

February 26, 2010 4:51 PM

Paul Coetzer

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?

May 10, 2010 9:19 PM

Mehul Harry (DevExpress)

@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

May 10, 2010 9:39 PM

Paul Coetzer

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

May 10, 2010 10:31 PM

Shaun Huszarik

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

February 11, 2011 10:07 AM

Mehul Harry (DevExpress)

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

February 14, 2011 5:22 AM

C#ristian

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?

April 12, 2012 1:18 PM

Mehul Harry (DevExpress)

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.

April 12, 2012 1:56 PM

C#ristian

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

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

April 24, 2012 11:01 AM

Mehul Harry (DevExpress)

C#ristian,

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

Thanks.

April 24, 2012 1:40 PM

About Mehul Harry (DevExpress)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2014 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners