Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > VS 2008 SP1 - empty property window in WPF designer
 

VS 2008 SP1 - empty property window in WPF designer

I just installed Net3.5 SP1, VS 2008 Professional and then its SP1 on WinXP Pro SP3.

I created a new C# WPF app and added a button.
In the WPF designer, theproperty window is empty.
The combo box to select a control is empty, too.

In the Outline view, the controls are shown.
The toolbox window lists a bunch of WPF controls.
The WPF app compiles and runs fine.
No exeptions or other error messages during VS load or later.
Right click and OpenWith on xaml in SolutionExplorer shows WPF designer as default.
devenv /resetskippkgs doesnt help.
Reinstall of VS2008 and SP1 doesnt help.
Never had any CTP or beta stuff installed on this machine.

Any ideas ?
  • Edited byMillKa Thursday, August 14, 2008 10:51 PMtypo
  • Edited byMillKa Thursday, August 14, 2008 10:52 PMtypo
  • Edited byMillKa Thursday, August 14, 2008 10:23 PMtypo
  • Edited byMillKa Thursday, August 14, 2008 10:20 PMtypo
  • Edited byMillKa Thursday, August 14, 2008 10:52 PMtypo
  •  
MillKa  Thursday, August 14, 2008 10:18 PM
Thank you again for the detailed information. I still have one other suspicion I would like to investigate though. What about the regional settings, specifically the number format setting? Is it set to treat the comma as a decimal point?

I.e., which one is it?
  1. 1.000,00 (default for DE)
  2. 1,000.00 (default for US)

Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
  • Marked As Answer byMillKa Friday, August 22, 2008 12:04 AM
  •  
Marco Goertz - MSFT  Thursday, August 21, 2008 9:10 PM

This sounds like you are seeing the empty default property browser as opposed to the WPF version, which has a little preview window and a search filter instead of the combobox).Let me ask you afew clarifying questions:

  • Is this on a localized version of VS (if so what language)?
  • Version of VS (as seen in the About Box)?
  • What is the file version of thePresentationFramework assembly in the GAC?
    (right click on PresentationFramework in %windir%\assembly, Properties, Version tab)

Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
Marco Goertz - MSFT  Monday, August 18, 2008 5:53 PM

Hi Marco,

Localized ? Nope, OS and VS is all en/US.

VS Version ? 9.0.30729.1 SP

PresentationFramework file version ? File & Product Version: 3.0.6920.1427, Comments: Flavor=Retail, Private Build Description: DDBLD211, Architecture MSIL. Same version info on PF.Aero, PF.Classic, PF.Luna, PF.Royale.

I forgot one Beta thing in my first post: I have Silverlight 2 Beta 2 installed (v2.0.30523.8, just Runtime, no SL dev stuff).

MillKa  Tuesday, August 19, 2008 6:11 PM
Your WPF is outdated. I just checked on a clean machine with VS 2008 SP1 installed and the version of PresentationFramework there is3.0.6920.1453. I would try uninstalling .NET 3.5 and installing .NET 3.5 SP1 from here:

http://www.microsoft.com/downloads/details.aspx?familyid=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en
Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
Marco Goertz - MSFT  Tuesday, August 19, 2008 6:53 PM

I un- and then reinstalled Net 3.5 using your link, but the version is still 1427.
Then I uninstalled Net 3.5 and 3.0. After uninstall the PresentationFramework assembly is still in the GAC. I would have expected it to be gone. Then I reinstalled Net 3.0 and 3.5 SP1. Version is still 1427. Property window in Cider is still empty.

After installing VS 2008 SP 1, I installed SQL Server 2008 Express and MSDN Lib for VS 2008 SP1. Does that prevent proper uninstalling Net 3.0 and 3.5 ?

Shall I try to uninstall and reinstall SQL / VS / Net 3.x ? Or is there a way to force the Net Installer to overwrite that 1427 dll with the current one ?

MillKa  Tuesday, August 19, 2008 9:19 PM
No, I just double checked with the WPF team, and the version number forVista/2008 is3.0.6920.1453 otherwise it isindeed 3.0.6920.1427. If you don't mind,could youcheck the version number of our designer assemblies in the GAC?

  • Microsoft.VisualStudio.Xaml
  • Microsoft.VisualStudio.Xaml.LanguageService
  • Microsoft.Windows.Design.Markup
  • Microsoft.Windows.Design.Developer
  • Microsoft.Windows.Design
  • Microsoft.Windows.Design.Extensibility
  • Microsoft.Windows.Design.Host
  • Microsoft.Windows.Design.Interaction

Just having the runtime of Silverlight installed wouldn't cause this (SL Tools would be a whole different story).


Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
Marco Goertz - MSFT  Tuesday, August 19, 2008 11:46 PM

Meanwhile i took the brute force approach and deinstalled SQL 2008, VS 2008, Net 3.5, 3.0,2.0 and SL and anything else that seemed to be related. That way i finally got rid of that dll.

Then i reinstalled Net 3.5 SP1 (which installed Net 2.0 and 3.0). Now i am installing VS 2008 and then its SP1.

Next i will check the assemblies you listed.

I will leave installing MSDN lib and SQL for later ..

MillKa  Tuesday, August 19, 2008 11:56 PM
VS 2008 SP is installed now.

PresentationFramework is still version 3.0.6920.1427.
All assemblies you listed show version9.0.30729.1 in Properties/Version.
In Explorer, the XAML assemblies are shown as version 9.0.0.0 MSIL, and the Designer assemblies are shown as version 3.5.0.0 MSIL.

I guess the versionsare ok, however when i try to edit the WPF app, the Property window is unfortunately still empty.

Its a bit late here now. Tomorrow i will continue to reinstall MSDN lib and SQL Server so that i can work again on my WinForms stuff.
I will try to avoid installing Silverlight or any other NET related stuff until the WPF designer issue is fixed.
MillKa  Wednesday, August 20, 2008 1:38 AM
OK, good. That's the way it should be. There is one more assembly version I would like you to check: PresentationBuildTasks. We have had one report of a mismatch here.

Besides that, let's try and attach to the VS process (devenv.exe) from another VS instance via "Tools->Attach to Process..." before opening any WPF projects. I would like to know if there are any exceptions in the Output window when you open a XAML file. Once you have the type of the exception thrown, attach to another VS instance again,go to "Debug->Exceptions..." and enable the "Thrown" checkbox for that exception, and open a XAML file again. Hopefully, this time it will stop in the debugger and you will be able to look at the exception information (type $exception in the Watch window). Interesting information here is the description, callstack, and inner exceptions.

Also, could you check the Windows Event Viewer to see if there are any error/warning entries that look like they have anything to do with .NET or VS?
Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
Marco Goertz - MSFT  Wednesday, August 20, 2008 9:10 PM
Also, could you check the Windows Event Viewer to see if there are any error/warning entries that look like they have anything to do with .NET or VS?
Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
Marco Goertz - MSFT  Wednesday, August 20, 2008 9:11 PM

Hi Marco,

PresentationBuildTasks is version 3.0.6920.1427 too, as well as all other Presentation* assemblies.

I found nothing in the EventViewer that looked like being related to VS/NET/WPF.

When VS runs in the debugger, an exception is thrown while opening the xaml. You find the test project, contents of output, callstack, exception wizard and fusion logs in a zip whose URL is very similar to:

( hxxp://sites DOT inka DOT de/mill/ftp/vswpfbug1.zip )- delete the blanks and replace DOT with you guess what .. ;-P

  • Edited byMillKa Thursday, August 21, 2008 5:09 PMtypo
  •  
MillKa  Thursday, August 21, 2008 5:07 PM
Excellent! Got it, thank you. Is this is a german version of VS on a german XP?
Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
Marco Goertz - MSFT  Thursday, August 21, 2008 5:28 PM

Nope, OS and VS is all en/US. No MUI or language packs either.
All other installed stuff is en/US too. If something localized crept in, im not aware of it ..
So unless my machine does secret traceroutes, it shouldn't have a clue about being in Germany .. ;-P

The exception thrown looks like a xaml parser exception. However, since the test app is just the C# WPF template plus one innocent button dropped on it, I assume this exception is just a symptom. I would bet the real problem is somehow version related. Thats why I recorded the fusion logs.

I have no clue if it is important, but before I installed VS 2008 SP1 a few days ago, I had VS 2005 (+ SP) andSQL Server 2005 Express on that machine, but no Net 3.x development preview or CTP stuff. Later, when VS 2008 RTM shipped, I installed that too (without uninstalling VS 2005) and moved my projects to VS 2008. Then a few days ago, I uninstalled VS 2008, SQL Server 2005 and VS 2005, but left the NET runtime 1.0, 1.1, 2.0, 3.0, 3.5 untouched. Then I installed VS 2008 and its SP1 and then SQL Server Express 2008. During the 2nd un- and reinstall 2 days ago (see above) I only left Net runtime 1.0 and 1.1 untouched.

MillKa  Thursday, August 21, 2008 8:46 PM
Thank you again for the detailed information. I still have one other suspicion I would like to investigate though. What about the regional settings, specifically the number format setting? Is it set to treat the comma as a decimal point?

I.e., which one is it?
  1. 1.000,00 (default for DE)
  2. 1,000.00 (default for US)

Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
  • Marked As Answer byMillKa Friday, August 22, 2008 12:04 AM
  •  
Marco Goertz - MSFT  Thursday, August 21, 2008 9:10 PM

*blush*

In ControlPanel/RegionalAndLanguageOptions/RegionalOptions I had selected English(US), but later I had customized some individual settings to german conventions, so that my number format was german.
Now I have switched back to English(US) and the WPF property window works !

Problem solved - Thanks a lot !!

So my theory about what was going on is:
I guess the VS installer checks the general locale (but not the individual, possibly customized settings) and picksmatching preformatted project templates to install.
But the xaml parser usesthe individual (customized) regional settings, which dont match the xaml from the project template.
Does that make sense ?
Not really - then VS wouldn't have been able to open the xaml at all.
Must be more complex, but something in that direction ...

MillKa  Friday, August 22, 2008 12:04 AM
You're welcome. I'm glad we got you unblocked. I will try to repro this behavior here and follow up with the WPF guys to see what could have gone wrong here.

Thanks again for all your help.
Marco Goertz \ Sr. Dev Lead \ WPF Designer "Cider" \ Microsoft
Marco Goertz - MSFT  Friday, August 22, 2008 9:22 PM

Thanks for your help !

To reproduce set RegionalOptions to EnglishUS and then customize the individual formats like this:

[HKEY_CURRENT_USER\Control Panel\International]
"iCountry"="1"
"iCurrDigits"="2"
"iCurrency"="3"
"iDate"="2"
"iDigits"="2"
"iLZero"="1"
"iMeasure"="0"
"iNegCurr"="8"
"iTime"="1"
"iTLZero"="1"
"Locale"="00000409"
"s1159"="AM"
"s2359"="PM"
"sCountry"="United States"
"sCurrency"="â‚?quot;
"sDate"="-"
"sDecimal"=","
"sLanguage"="ENU"
"sList"=";"
"sLongDate"="ddd, yyyy-MMMM-dd"
"sShortDate"="yyyy-MM-dd"
"sThousand"="."
"sTime"=":"
"sTimeFormat"="HH:mm:ss"
"iTimePrefix"="1"
"sMonDecimalSep"=","
"sMonThousandSep"="."
"iNegNumber"="1"
"sNativeDigits"="0123456789"
"NumShape"="1"
"iCalendarType"="1"
"iFirstDayOfWeek"="6"
"iFirstWeekOfYear"="0"
"sGrouping"="3;0"
"sMonGrouping"="3;0"
"sPositiveSign"=""
"sNegativeSign"="-"


That should mess it up .. ;-P

MillKa  Friday, August 22, 2008 9:56 PM

I am seeing the same issue of not being able to load WPF designer and intellisense not working after installing VS 2008 SP1. I tried your solution of attaching one instance of VS from another. I am getting the following exceptions (though I haveMicrosoft.VisualStudio.WPFFlavor.dll at the location below):

Could not load file or assembly 'D:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\Microsoft.VisualStudio.WPFFlavor.dll' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)


System.IO.FileLoadException occurred
Message="Could not load file or assembly 'D:\\\\Program Files\\\\Microsoft Visual Studio 9.0\\\\Common7\\\\IDE\\\\Microsoft.VisualStudio.WPFFlavor.dll' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)"
Source="mscorlib"
FileName="D:\\\\Program Files\\\\Microsoft Visual Studio 9.0\\\\Common7\\\\IDE\\\\Microsoft.VisualStudio.WPFFlavor.dll"
FusionLog=""
StackTrace:
at System.Reflection.AssemblyName.nInit(Assembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
InnerException:



System.Resources.MissingManifestResourceException occurred
Message="Could not find any resources appropriate for the specified culture or the neutral culture. Make sure \"VSPackage.resources\" was correctly embedded or linked into assembly \"Microsoft.VisualStudio.WPFFlavor\" at compile time, or that all the satellite assemblies required are loadable and fully signed."
Source="mscorlib"
StackTrace:
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
InnerException:



System.EntryPointNotFoundException occurred
Message="Unable to find an entry point named 'nonexistent_dummy' in DLL 'MSVCR80.dll'."
Source="PresentationCore"
TypeName=""
StackTrace:
at nonexistent_dummy()
at InitCRT()
InnerException:

EternalCoder  Friday, October 03, 2008 10:04 PM
Has anyone found a workaround for this?
I realy need my regional settings to becustomized and it stops me from using properties window.
Is there any way to set up different regional settings only for vs?
nikola.k  Thursday, January 08, 2009 2:07 PM

I have the same problem and think this might help:
InTools/Options/Environment/International Settings,change Language to "Same as Microsoft Windows",
then restart VS

Edit: forgot to remind that check "Show all settings" in Options window

  • Proposed As Answer byReplika Monday, April 06, 2009 10:34 AM
  •  
Replika  Saturday, January 31, 2009 12:05 PM
Thank you Replika, that solves the problem.

By the way, I have found that the registry value sDecimal inHKEY_CURRENT_USER\Control Panel\International is the source of the problem. If this value is other than "." andInternational Settings in vs are set to English, proprty window can not be shown.
I hope MS will release a patch for this, it's really annoying.
nikola.k  Tuesday, February 03, 2009 8:24 AM
I had the same issue, I set the International settings as you stated "Same as Microsoft Windows" and now I can see my properties again. Thank you.
ReggieH  Tuesday, February 03, 2009 4:45 PM

You can use google to search for other answers

Custom Search

More Threads

• smart tags in beta2
• Remove Items from ObservableCollection
• mouse events at design time
• Placing WPF user control dynamically on the page
• Working with a Canvas in Cider Designer
• add <?Mapping .... ?> to the xaml file cause error.
• Accessing VS Package Services from the WPF Designer extensibility
• Loading November CTP for WPF and WCF on production development system
• How can I change properties for elements in custom control?
• Collection Editor for List of String