Microsoft.com
All DevCenters
MSDN Home
MSDN Archive:
MSDN Archive Home
|
Browse Archive
|
Share Code
|
Help and FAQs
Composite Web Apps With Prism
Home
Downloads
Discussions
People
License
Close
RSS
All Resource Updates
Discussions
Releases
Wiki
RSS
Comments
|
Print
|
Page Info
|
Change History (all pages)
Search Wiki:
Home
Resource Page Description
Composing Applications with Silverlight and Prism.
Last edited
Jun 17 2009 at 12:40 AM
by
adargel
, version 2
Comments
anderswq
wrote
Jul 13 2009 at 9:15 AM
When I downloaded this sample I had already Silverlight 3 installed. Visual studio converted the project without reporting any errors. It
compiles, but it runtime it throws a XamlParseException referring to Line: 1 Position:102. Is there an incompatibility with Silverlight 3 in the xaml code?
kentzhou
wrote
Jul 30 2009 at 2:47 PM
I have same problem.
VectorOne
wrote
Aug 1 2009 at 6:06 PM
just check each assembly reference and fix.
Braulio
wrote
Aug 12 2009 at 8:57 PM
A dummy thing to save five minutes googling...
If you are going to attach the mdf /ldf files and you have Vista, choose Run Administrator to launch SQL Server Management Studio, otherwise it will fail :-( (at least on 2008).
Braulio
wrote
Aug 12 2009 at 9:15 PM
got same XamlParseException... pain in the neck.
I think it will save tons of time to users to upload a SL 3 version.
Braulio
wrote
Aug 12 2009 at 9:58 PM
Got it working !!!
In my case it was a missing reference (that one with exclamation mark), on the project GameEditor.GameList DLL Microsoft.Windows.Controls, just installed prism and add that reference from the toolkit.
anderswq
wrote
Aug 14 2009 at 1:44 PM
I have not been able to locate any missing references (with exclamation marks) in any of the projects. I suppose a reference still could be missing, but since the solution compiles I have no way of knowing what reference in which project. A SL 3 version would be nice!!
jackkordas
wrote
Aug 14 2009 at 7:50 PM
I also have Silverlight 3 as well as VS 2008. Here is what I did to get it to function.
1. Open solution file, let VS 2008 perform the conversion of the project files.
2. Attach the database to my local SQLExpress instance, making sure the DB was names XBoxGames.
3. Searched for "Data Source" and changed value from "." to .\SQLExpress ( two places ).
4. In the GameEditor.GameList project, there was a bad reference to Microsoft.Windows.Controls.
It looks like the namespace changed from Microsoft.Windows.Controls to System.Windows.Controls in the transition between Silverlight 2 and 3.
I removed the bad reference and added a reference to System.Windows.Controls which for me was at the following location: c:\Program Files\Microsoft SDKs\Silverlight\v3.0\Libraries\Client\System.Windows.Controls.dll
The following link may be of use for the namespace change: http://silverlight.net/forums/t/83746.aspx
5. After all of this, I still get the error. This is because the old namespace is referenced in GameListView.xaml. I then changed this to the new namespace name, System.Windows.Controls. The line in question looks as follows when I have make the switch.
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
6. And we still get the error, but we are getting closer, at least I think we are.
7. In that same xaml file, I notice that visual studio has indicated that it does not like "controls:WrapPanel"
It looks like WrapPanel is now located in the SilverLight toolkit located on codeplex.
http://silverlight.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24246
I downloaded and installed this. I then added a reference in the GameEditor.GameList project to System.Windows.Controls.Toolkit. I then had to adjust the xaml to refer to the new location of WrapPanel.
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
anderswq
wrote
Aug 17 2009 at 2:41 PM
Thanks jackkordas - you nailed it for me. I was unaware of the namespace changes. It's now working for me as well!
ahole
wrote
Apr 11 2010 at 2:35 AM
This code throws an exception and does now work,
I am so sick of ahole posting code that is crap then write a worthless article
ahole
wrote
Apr 11 2010 at 2:41 AM
could not attach the database becuase it was version 655
Who is the gd sob with posted this crapola
ahole
wrote
Apr 13 2010 at 2:58 AM
Sounds like a GD SOB with a monkey for a mama posted this article with sht nggr code that crapola
Sign in to add a comment
Current Release
Example Prism Application
Thu Jun 18 2009 at 7:00 AM
More Tags ...
Popular Tags
.NET
.NET 2.0
.NET 3.5
.NET Framework
2008
2009
2010
2011
2012
ADO.NET
ASP.NET
Azure
C#
C++
CRM
Entity Framework
Hotfix
LINQ
LINQ to SQL
March Issue
MCMS
MSDN Magazine
Samples
SharePoint
SharePoint 2010
silverlight
SQL Server
tfs
VB.NET
Visual Basic
Visual Studio
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
VS SDK
VSTO
VSX
WCF
windows 7
Windows Forms
Windows Mobile
WPF
Manage Your Profile
Contact Us
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.
Terms of Use
Trademarks
Privacy Statement
Updating...