Ask a questionAsk a question
 

QuestionTypeLoadException when using SPMetal proxy

  • Sunday, October 25, 2009 4:12 PMjoergkrause Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I try to use ADO.NET Data Services using the SPMetal tool provied with SharePoint 2010. (Console App, x64)

    When a LINQ query executes, the following TypeLoadException occures:

    Could not load type 'System.Data.Services.OpenTypes.LateBoundMethods' from assembly 'Microsoft.Data.Services, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    Using Reflector I see that the LINQ assembly tries to call "LateBoundMethods" property, but it's not available in Microsoft.Data.Services.dll. I can see the assembly loaded in Module Windows

    Version/Token etc. is right. Same behavior with CTP 1 and CTP 2.

    There is probably a compatibility issue between SharePoint 14 and .NET 3.5 SP1. Any idea what combination is currently working? I really need to check out some things to get prepared before final codes arrives.

    Thanks,

    Joerg

    Configuration:
    Windows 2008 Standard x64, SharePoint 2010 TAP, Visual Studio 2010 Beta 2, .NET 3.5 SP 1
    JK64

All Replies

  • Friday, October 30, 2009 12:33 PMjoergkrause Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    just as a follow up. Uninstalling ADO.NET Data Service puts SPMetal classes back into operation.

    I'm pretty sure that the current ADO.NET Data Service CTP 2 is not compatible with SharePoint 2010 Beta.

    Joerg
    JK64