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:

No upgrade handler is found for assembly 'Web', version '1.0.0.0'.
   at Xtensive.Storage.Upgrade.SystemUpgradeHandler.CheckAssemblies()
   at Xtensive.Storage.Upgrade.SystemUpgradeHandler.CheckMetadata()

my code is

private void BuildDomain()
        {
            lock (syncRoot)
            {
                if (domain == null)
                {                    
                    DomainConfiguration configuration = DomainConfiguration.Load("mssql");
                    configuration.Types.Register(typeof(Requests).Assembly, typeof(Requests).Namespace);
                    configuration.Types.Register(typeof(Reservations).Assembly, typeof(Reservations).Namespace);
                    configuration.Types.Register(typeof(Resources).Assembly, typeof(Resources).Namespace);
                    configuration.Types.Register(typeof(ResourcesTypes).Assembly, typeof(ResourcesTypes).Namespace);
                    configuration.Types.Register(typeof(Users).Assembly, typeof(Users).Namespace);
                    try
                    {
                        var newDomain = Domain.Build(configuration);
                        domain = newDomain;                    
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
        }

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.

asked Feb 16 '10 at 17:31

Editor's gravatar image

Editor
46156156157


One Answer:

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.

answered Feb 17 '10 at 03:22

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

v4.2 RC installer is updated, so you can simply download it.

(Feb 17 '10 at 03:22) Alex Yakunin Alex%20Yakunin's gravatar image

moya180 wrote: Thanks Alex for your help, i got it worked now.Finally solved. Thanks :)

(Feb 17 '10 at 03:22) Editor Editor's gravatar image

Thank you for such a good bug report :)

(Feb 17 '10 at 03:22) Alex Yakunin Alex%20Yakunin's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA