开发者

Can't get up with RIA demo

开发者 https://www.devze.com 2022-12-25 00:30 出处:网络
Based the articleI\'ve tried to start-up the RIA services. At the moment there are 2 blockers: On the client side I don\'t have

Based the article I've tried to start-up the RIA services.

At the moment there are 2 blockers:

  1. On the client side I don't have <datagrid:DataGrid component. Does anybody know what namespace contains this object? (already resolved with Silverlight Toolkit usage, thanks to Refracte开发者_开发技巧d Paladin for help)
  2. On the client side I don't have access to my DomainService... don't know why. Also, I con't see "System.ServiceModel.DomainServices.Client" assembly available to be added to the projects references.

Could anybody help to resolve the 2nd problem?

Thank you.

P.S. I have VS2008, SP1, Silverlight, RIA Services installed.


System.ServiceModel.DomainServices.Client is part of the RIA Services RC for SL4/VS2010. The DLL's for RIA Services RTW for SL3/VS2008 are completely different. And to my knowledge, they can't be installed side-by-side - I have tried.

This article points out some of the differences between the 2 versions, and how to move to RIA Services for SL4/VS2010: http://jeffhandley.com/archive/2010/03/15/contososales-mix10.aspx

If you do end up installing RIA Services for SL4/VS2010, you access the "System.ServiceModel.DomainServices" namespace with a reference to "C:\Program Files\Microsoft SDKs\RIA Services\v1.0\Libraries\Silverlight\System.ServiceModel.DomainServices.Client.dll".


Guess, the problem was in some mistery (my machine has different issues last few days). As a results my ReSharper wasn't able to find the class in a namespace that was not mentioned in the "using" section.

At the moment domain service is accessible on the client side of my Silverlight app. I clicked "Show All Files" for the Silverlight project and found 'Generated_Code' folder that contained all required generated files. In that file full class name is specified, I've used it in my pages and all is workable now.

Thanks to all.

0

精彩评论

暂无评论...
验证码 换一张
取 消