Error 6 'System.Collections.Generic.IEnumerable<Microsoft.Samples.Web.Bing.Model.WebResult>' does not contain a definition for 'Count'

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/14/2010 7:04:58 PM
Gravatar
Total Posts 1

Error 6 'System.Collections.Generic.IEnumerable<Microsoft.Samples.Web.Bing.Model.WebResult>' does not contain a definition for 'Count'

Gent's,

I have just downloaded a fresh copy from the repository and complied (mojoportal-core.net35. and get 2 errors:

Error 6 'System.Collections.Generic.IEnumerable<Microsoft.Samples.Web.Bing.Model.WebResult>' does not contain a definition for 'Count' and the best extension method overload 'System.Linq.Queryable.Count<TSource>(System.Linq.IQueryable<TSource>)' has some invalid arguments C:\xxx\MojoPortal\Web\Controls\Microsoft\BingSearchControl.ascx.cs 112 31 mojoPortal.Web.net35

Error 5 Instance argument: cannot convert from 'System.Collections.Generic.IEnumerable<Microsoft.Samples.Web.Bing.Model.WebResult>' to 'System.Linq.IQueryable<Microsoft.Samples.Web.Bing.Model.BaseResult>' C:\xxx\MojoPortal\Web\Controls\Microsoft\BingSearchControl.ascx.cs 112 31 mojoPortal.Web.net35
 

Any idea's?

6/15/2010 6:09:52 AM
Gravatar
Total Posts 18439

Re: Error 6 'System.Collections.Generic.IEnumerable<Microsoft.Samples.Web.Bing.Model.WebResult>' does not contain a definition for 'Count'

Hi,

Thanks for letting me know, I guess it is a difference between 3.5 and 4.0 .NET. I was able to fix it, you can get the fix by pull changes and update.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.