Why isn't my shared resource file working in my Silverlight RIA project?

前端 未结 2 972
栀梦
栀梦 2021-01-27 06:54

I\'m working on a Silverlight project with the WCF RIA Services beta. I\'m using the BlahDomainService.metadata.cs file to validate a field by adding validation attributes, e.g

相关标签:
2条回答
  • 2021-01-27 07:27

    Everything was okay except that I hadn't set the AccessModifier for the .resx to Public. Once I'd done that and Rebuilt All, it worked.

    0 讨论(0)
  • 2021-01-27 07:33

    You also have add a resources (.resx) as a link in the client silverlight project for the web project. See template Silverlight Bussiness Application in VS 2010. It has a very good sample.

    0 讨论(0)
提交回复
热议问题