Productview.xaml Not Showing Up In Editor |
![]() ![]() |
Productview.xaml Not Showing Up In Editor |
Feb 13 2009, 11:16 PM
Post
#1
|
|
|
|
The culprit seems to be this StaticResource:
Style="{StaticResource TextBlockCaptionStyle}" which is used many times in the file. Removing allows you to view the page, but the text doesn't look so good. Page: xx of the Preface in the book mentions that the styles and templates are to be provided at www.silverlight-Data.com, but I was not able to find them. Probably a simple fix, but I'm such a SilverLightWeight I can't figure it out! Thanks, Phil K. BTW: I spent 10 hours reading about ADO.NET and SL2 on the web and was totally confused. One hour with Chapter 11 and it filled in many of the gaps! Great Job John! This post has been edited by Phil_K: Feb 13 2009, 11:17 PM |
|
|
|
Feb 14 2009, 06:11 PM
Post
#2
|
|
|
|
I'm repling to my own post as I couldn't see where I could 'add to it'. I can 'fix' the problem first noted by moving the TextBlockCaptionStyle' from Application.xaml to ProductView.xaml. So maybe the problem has something to do with the way my 'OUt of the box' VS2008 settings and John's settings on his VS2008. I looked at the EFDataServices.4.1.resharper.user file and it seems to have GUIDs associated with most of the VB files that are NOT auto generated, but it's not obvious how this connects. A much more serious symptom of this 'project settings' problem is that even the slighest change to the NorthwindModel.edmx in the designer (like simply moving a table over 1/2 inch) causes many compiler errors... C:\Demos\_Code-1\Chp 11\EFDataServices_VB\EFDataServices\ProductView.xaml.vb(19) : error BC30002: Type 'NorthwindEntities' is not defined. C:\Demos\_Code-1\Chp 11\EFDataServices_VB\EFDataServices\ProductView.xaml.vb(37) : error BC30002: Type 'NorthwindEntities' is not defined. C:\Demos\_Code-1\Chp 11\EFDataServices_VB\EFDataServices\ProductView.xaml.vb(77) : error BC30456: 'OrderDetails' is not a member of 'EFDataServices.NWServiceReference.Product'. C:\Demos\_Code-1\Chp 11\EFDataServices_VB\EFDataServices\ProductView.xaml.vb(77) : error BC30456: 'OrderDetails' is not a member of 'EFDataServices.NWServiceReference.Product'. C:\Demos\_Code-1\Chp 11\EFDataServices_VB\EFDataServices\ProductView.xaml.vb(81) : error BC30456: 'OrderDetails' is not a member of 'EFDataServices.NWServiceReference.Product'. ... I can play with the Imports statements at the head of ProductView.xaml.vb and get some of these reference errrors to go away, but it results in multiple reference errors. When I make the slighest change to the edmx file it auto generates the Reference.vb file and somehow the reference to NorthwindEntities does not get updated. I tried updating the model from the database and maybe that is the problem? Every time I update the model it adds a line to the output... Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. So it looks like it adds another registration in the web.config file, but it's not adding anything to the file. I know this is some simple thing, but after about 6 hours and starting over 10 or 15 times with a fresh demo project I'm still not able to figure it out. Any help would be appreciated. Thanks Phil |
|
|
|
Aug 22 2009, 10:27 PM
Post
#3
|
|
|
|
I think there is some problem with the source code,
I checked it out again and again on silverlight but it is not responding! -------------------- Does Someone Do Medical Assistant Jobs like me? then please guide me to start a Medical Assistant Career.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 08:38 PM |