Metadata undefined

Jul 11, 2012 at 7:46 AM

This is a great example, however it's not working for me because the metadata is not resolved.

In web.config i have: transmitMetadata="true"

However in upshot.js result.Metadata is undefined.

        return {
            type: result.Metadata[0].type,
            metadata: metadata,
            entities: result.RootResults,
            includedEntities: includedEntities,
            totalCount: result.TotalCount || 0
        };

I am using Ria4HTMLWithoutSPA
Any advice? Thx.

Jul 11, 2012 at 8:25 AM

I found the solution :)
Wrong dll version: Microsoft.ServiceModel.DomainServices.Hosting

Must be:
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Toolkit\Libraries\Server\SP2\Microsoft.ServiceModel.DomainServices.Hosting.dll

Instead of:
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Toolkit\Libraries\Server\Microsoft.ServiceModel.DomainServices.Hosting.dll

Info:
http://forums.silverlight.net/t/236962.aspx/2/10?Problem+going+to+through+BigShelf+RiaServices+Jquery+Metadata+is+undefined

Coordinator
Jul 12, 2012 at 5:11 AM

Hi,

I'm glad you found the solution for it :). I also wrote a post about it some months ago, you can find it here: http://www.kristofdegrave.be/2012/04/upshotjs-knockoutjs-html5-client-for.html. This explains how you can get started.

Greetings,

Kristof