CSLA 4.5.5 FileNotFound - Microsoft.Threading.Tasks on ASP.NET website

CSLA 4.5.5 FileNotFound - Microsoft.Threading.Tasks on ASP.NET website

Old forum URL: forums.lhotka.net/forums/t/12333.aspx

swegele posted on Friday, January 24, 2014

Just upgraded my CSLA to latest 4.x today.  It was laborious but I emerged victorious from "Find and Replace Land"

This is a simple ASP.NET website.  The only interesting thing is I have my own version of the MembershipIdentity and IdentityFactory classes.  This is where it is blowing up on logon.

I try to login to my website and I get this wierd error pointing to files on Rhocky's Computer???  I am not sure where to start.  I noticed a couple threads having to do with WCF and Silverlight but nothing jumped out at me there.


Login Failed, error text below System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Threading.Tasks, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Threading.Tasks, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at Csla.DataPortal`1.DoFetchAsync(Type objectType, Object criteria, Boolean isSync) at Csla.DataPortal`1.Fetch(Type objectType, Object criteria) in

d:\Users\Rockford\Documents\GitHub\MarimerLLC\csla\Source\Csla\DataPortalT.cs:line 471 at Csla.DataPortal`1.Fetch(Object criteria) in

d:\Users\Rockford\Documents\GitHub\MarimerLLC\csla\Source\Csla\DataPortalT.cs:line 463 at Csla.DataPortal.Fetch[T](Object criteria) in

d:\Users\Rockford\Documents\GitHub\MarimerLLC\csla\Source\Csla\DataPortal.cs:line 235 at IRB.BusinessObjects.Security.IRBMembershipIdentity.GetIRBMembershipIdentity[T](String userName, String password) in

c:\Users\swegele\Source\Workspaces\AnchorWeb\DEV\IRB.BusinessObjects\Security\IRBMembershipIdentity.cs:line 117 at IRB.BusinessObjects.Security.IRBPrincipal.Login(String username, String password)


Found this link http://cslacontrib.codeplex.com/workitem/34405 which leaves me scratching my head...huh?  I just downloaded CSLA and ran the installer and grabbed the DLLs into my project.

And this link http://forums.lhotka.net/forums/t/11927.aspx which leaves me equally bewildered...what the heck is Microsoft.Async.BCL or whatever?

Thanks for the help.

swegele replied on Friday, January 24, 2014

OK OK I think I am getting somewhere...I chose the csla.dll from the NET4 folder which I thought meant .NET 4 but when I opened the source code for CSLA I see that project is compiled for the ".NET 4 Client Profile".  Which would explain why the data portal was calling "doasync"

I will assume it is that and redo my dependencies on the correct csla.dll

where is the embarrased face Embarrassed there it is


Copyright (c) Marimer LLC