Bei meinen Streifzügen durchs Web bin ich über folgendes Video gestolpert. Es zeigt Rick Barraza, User Experience Architect bei Cynergy Systems, der aus einer Wii-Remote, zwei Handschuhen, einer Funkmaus und WPF innerhalb von acht Tagen ein Minority Report ähnliches User Interface gebaut hat.

minority

Hat ein wenig etwas von MacGyver, oder :-)

Technorati tags:

Kick it on dotnet-kicks.de
 
4/7/2008 - 04:41 PM | Comments [0] | Categories: .NET | DotNetGerman Bloggers | WPF
© Andre Kraemer | RSS/Subscribe Feed your aggregator (RSS 2.0)

As I’m very interested in new technologies, I recently downloaded – like maybe hundreds of other people – Infragistics NetAdvantage for WPF 2007 Vol 2. My goal was to evaluate Infragistics newest technology.

Unfortunately, my enthusiasm was dampend a little bit, when I tried to run the sample application “xamFeatureBrowser”. Instead of showing the newest and coolest WPF features, the application crashed and displayed the windows error reporting dialog. Actually, this wasn’t what I really expected :-)

3ndmessage

My sales contact at Infragistics confirmed, that the sample application shows this quite unexpected behavior on non English operating systems only.

In order to find a solution for that problem, I opened the xamFeatureBrowser solution in Visual Studio 2005 and started the debugger. Immediately after starting, the following dialog appeared on my screen:

1stmessage

 2ndmessage

System.IO.IOException was unhandled

Message="Cannot locate resource  \"app.xaml\"."

Afterwards, the application crashed again. A short research on the internet showed, that this problem mostly occurs if you save a solution with Visual Studio 2008 Beta 1 and try to open it with VS 2005 later – independent of the operating system language. As the application runs fine under English operating systems, this couldn’t be the problem's root cause.

My next step in hunting down this error was using windows debugging tools, which showed the following exception:

0:000> .loadby sos mscorwks

0:000> !pe

*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll -

PDB symbol for mscorwks.dll not loaded

Exception object: 01429598

Exception type: System.Resources.MissingManifestResourceException

Message: Für die angegebene Kultur oder die neutrale Kultur konnten keine Ressourcen gefunden werden.

Stellen Sie sicher, dass xamFeatureBrowser.g.resources beim Kompilieren richtig in die Assembly

xamFeatureBrowser eingebettet wurde, oder dass die erforderlichen Satellitenassemblys geladen werden

können und vollständig signiert sind.

An exception like this occurs, when the CLR can’t find a resource file for your current culture and there’s no resource file for the invariant culture.

The Solution:

On my system, I’ve got the samples running by following these steps:

  1. Open the xamFeatureBrowser solution. On my system it's located at:
    "C:\Users\Public\Documents\Infragistics\NetAdvantage for WPF 2007 Vol. 2\Samples\xamFeatureBrowser"
  2. Change solution configuration from "Debug - Full trust" to "Release". I’m not sure, if this step is necessary with Visual Studio 2008, too.

    projectconfiguration
  3. Open app.xaml.cs and add the following constructor:

            public App()

            {

                CultureInfo objCI = new CultureInfo("en-US");

                Thread.CurrentThread.CurrentCulture = objCI;

                Thread.CurrentThread.CurrentUICulture = objCI;

            }


    Thanks to heroic, who posted this code in the infragistics forum.
  4. Change the file properties of "TableOfContents.xml". I set Build Action to Content and Copy to Output Directory to Copy always
    toc
  5. Run the solution :-)
    xambrowser

Those 5 steps should do the trick. Let's hope, that Infragistics fixes the bug in the next version :-)




kick it on DotNetKicks.com


Kick it on dotnet-kicks.de
 
4/3/2008 - 12:42 PM | Comments [1] | Categories: english posts | Infragistics | WPF
© Andre Kraemer | RSS/Subscribe Feed your aggregator (RSS 2.0)

Als technologiebegeisteter Mensch lud ich mir kürzlich, wie wahrscheinlich außer mir noch 100te andere, Infragistics NetAdvantage for WPF 2007 Vol 2 runter, um Infragistics neueste Technologie zu evaluieren.

Leider kam bereits beim öffnen der Beispielsapplikation "xamFeatureBrowser" die erste Enttäuschung. Die Applikation zeigte nämlich nicht Infragistics neueste Features, sondern präsentierte statt dessen den relativ langweiligen Windows-Fehlerreportingdialog:

3ndmessage

Eine kurze Rückfrage bei meinem Kontakt zu Infragistics ergab, dass das Problem anscheinend nur unter "nicht englischen Betriebssystemen" auftritt.

Um der Sache nun auf den Grund zu gehen, öffnete ich die xamFeatureBrowser Solution unter Visual Studio 2005 und warf den Debugger an. Sofort nach dem Start wurde mir folgende Meldung mit anschließender Exception um die Ohren geworfen:

1stmessage

System.IO.IOException was unhandled

Message="Cannot locate resource  \"app.xaml\"."

2ndmessage

Anschließend stürzte die Applikation wieder ab. Eine kurze Recherche im Internet ergab, dass das Problem mit .NET 3.0 Solutions zusammen hängt, die unter Visual Studio 2008 Beta 1 gespeichert und später unter Visual Studio 2005 wieder geöffnet wurden. Einen Einfluss auf die von Infragistics ausgelieferte kompilierte Version der Anwendung sollte diese Situation jedoch nicht haben.

Um dem Fehler also auf die Spur zu kommen, warf ich als nächstes die Windows Debugging Tools an. Hier bekam ich die recht interessante Meldung, dass er für die angegebene Kultur keine Ressourcen finden kann. Dieses Verhalten würde auch zum Phänomen passen, dass der xamFeatureBrowser nur unter englischen Betriebssystemen läuft, da für die englische Kultur Ressourcen vorhanden sind.

0:000> .loadby sos mscorwks

0:000> !pe

*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll -

PDB symbol for mscorwks.dll not loaded

Exception object: 01429598

Exception type: System.Resources.MissingManifestResourceException

Message: Für die angegebene Kultur oder die neutrale Kultur konnten keine Ressourcen gefunden werden.

Stellen Sie sicher, dass xamFeatureBrowser.g.resources beim Kompilieren richtig in die Assembly

xamFeatureBrowser eingebettet wurde, oder dass die erforderlichen Satellitenassemblys geladen werden

können und vollständig signiert sind.

Die Lösung

Auf meinem System konnte ich das Problem wie folgt lösen:

  1. Öffnen der Solution. Diese lag bei mir unter:
    "C:\Users\Public\Documents\Infragistics\NetAdvantage for WPF 2007 Vol. 2\Samples\xamFeatureBrowser"
  2. Umschalten der Solution Konfiguration von "Debug - Full Trust" auf "Release". Dieser Schritt ist eventuell nur unter VS 2005 notwendig. Zumindest kommt dann keine Meldung mehr, dass die App.xaml fehlt.
    projectconfiguration
  3. Öffnen der App.xaml.cs und hinzufügen des folgenden Konstruktors:

            public App()

            {

                CultureInfo objCI = new CultureInfo("en-US");

                Thread.CurrentThread.CurrentCulture = objCI;

                Thread.CurrentThread.CurrentUICulture = objCI;

            }


    Diesen Tipp bekam ich übrigens von heroic im Infragics Forum
  4. Ändern der Eigenschaften für die Datei "TableOfContents.xml". Die Build Action muss auf Content und die Copy to Output Directory auf Copy always gesetzt werden.
    toc
  5. Starten des Projekts :-)
    xambrowser 

Bleibt nun zu hoffen, dass Infragistics den Bug in der nächsten Version behebt ...


Kick it on dotnet-kicks.de
 
4/2/2008 - 02:52 PM | Comments [0] | Categories: .NET | DotNetGerman Bloggers | Infragistics | WPF
© Andre Kraemer | RSS/Subscribe Feed your aggregator (RSS 2.0)