I use visual studio.net 2008,sql server 2008,c# language,dataobjects.net v4 I need to integrate ado.net data service with the dataobjects.net4. I saw the sandbox example, and i ran successfully the server console program, but when i tried to run the silverlight application within the sample by launching http://localhost:4693/Data.svc/ I got this error: The server encountered an error processing the request. The exception message is 'The property 'VersionInfo' on type 'Server.Model.EntityBase' is not a valid property. Make sure that the type of the property is a public type and a supported primitive type or a entity type with a valid key or a complex type.' And when i build my own sample which use asp.net project i got the following error:
my code is
please help me ASAP, i need to make the integration between ADO.NET Data Service and DataObjects.Net. This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by moya180. |
Upgrade-related issue was already fixed in our repository: Domain upgrade mode in Web.config must be set to Recreate, otherwise it tries to upgrade the database created by another sample application, and obviously, fails, since there is no newer version of model assembly it expects to see, neither an upgrade handler capable to upgrade its structures. So I just fixed the bug with VersionInfo. If you need the fix ASAP, here it is: http://goo.gl/cP26 That is the reason to refresh v4.2 RC installer (rebuilding it now, the newest one will be available @ download section in ~ 1 hour). Funny, but I missed this bug completely on testing: Silverlight application was showing anyway (so I decided everything is ok), but Refresh button there does nothing. v4.2 RC installer is updated, so you can simply download it. moya180 wrote: Thanks Alex for your help, i got it worked now.Finally solved. Thanks :) Thank you for such a good bug report :) |