Metadata undefined

Jul 11, 2012 at 8: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 9: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


Jul 12, 2012 at 6:11 AM


I'm glad you found the solution for it :). I also wrote a post about it some months ago, you can find it here: This explains how you can get started.