Please report confirmed 4.1 bugs in our issue tracker at CodePlex

linq to umbraco error on datefolder type

Go directly to solutionA reply has been marked as a solution
12/20/2009 11:44:44 PMAvataruiruLocation: Melbourneposts: 3Karma: 23

Hi ,

Has anyone played around with Linq to Umbraco on Blog Package ?

I created two blogposts based on the original blog structure:

( 2009 (DateFolder type) -> 12 (DateFolder type) -> 11 ( DateFolder type)  -> blogpost 1 , blogpost

basically I wanted to get the name of day folder ( the folder which contains two blogpost). So here was my simple Linq query

var temp = from folder in _ctx.DateFolders
                       where folder.BlogPosts.Count() > 0
                       select folder;

Instead of DateFolder object expected , these were the error  I got when I ran the debugger :

base { System.System Exceaption }  :{"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."}
LoaderException : {"Declaration referenced in a method implementation cannot be a final method.  Type: 'umbraco.DataLayer.SqlHelpers.VistaDB.VistaDBInstaller'.  Assembly: 'VistaDB For Umbraco, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'.":"umbraco.DataLayer.SqlHelpers.VistaDB.VistaDBInstaller"}

Any clues? is thig a bug or I just missed something?

P.S : I was following the screencasts  provided on Slace's website about Linq to Umbrco.

Thanks and Merry X'Mas everyone.

 

12/21/2009 3:25:28 AMAvatarslaceLocation: Coogee, Sydney, AustraliaCore.posts: 567Karma: 1520
Solution Comment with ID: 21697
0

The problem is caused by types which aren't on the machine but have referenced from an assembly which is on the machine.

I found the problem myself and it's going to be fixed in the next beta of Umbraco 4.1.

For the time being, make sure that you have all the VistaDB files in your bin folder

Please login or Sign up To post replies