Hi
using latest csla (4.2.2) and cslagen templates have just created a new solution (vs2010, SL4). Project tree looks good and have added one BO for testing.
I get this error in the call back (after fetching an object)
{System.InvalidOperationException: Object type or assembly could not be loaded (ITAS.Business.Venue, ITAS.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
at Csla.Server.Hosts.Silverlight.SilverlightRequestProcessor.Fetch(SilverlightCriteriaRequest request)
}
[Csla.DataPortalException]: {System.InvalidOperationException: Object type or assembly could not be loaded (ITAS.Business.Venue, ITAS.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
at Csla.Server.Hosts.Silverlight.SilverlightRequestProcessor.Fetch(SilverlightCriteriaRequest request)
}
Data: {System.Collections.ListDictionaryInternal}
InnerException: null
Message: "Object type or assembly could not be loaded (ITAS.Business.Venue, ITAS.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)"
StackTrace: null
I have created a win forms test app and this works okay i.e. it returns the BO. Therefore the error lies somewhere in the SL area I guess.
The above error occurs after execution of:
public static void GetVenue(Guid venueID, EventHandler<DataPortalResult<Venue>> callback) { DataPortal.BeginFetch<Venue>(venueID, callback); }
and appears in GetVenueCompleted:
private void button1_Click(object sender, System.Windows.RoutedEventArgs e) { Guid ID = new Guid(txtID.Text); Venue.GetVenue(ID,GetVenueCompleted); } private void GetVenueCompleted(object sender, DataPortalResult<Venue> e) { if (e.Object != null && e.Error == null) txtVenueName.Text = e.Object.VenueName; else txtVenueName.Text = e.Error.Message; }Can anyone please advise?ThanksRichard
Did your WinForm test call the data portal server?
It looks like the issue is on the data portal server. The exception comes from Csla.Server.Hosts - and that is purely server-side code.
Hi Rocky
I am running on my local\development pc. I assumed the win form app was calling data portal. Irrespective of this, any clues as to where to look for the solution
Thanks
I'm suggesting you look at the app server project and make sure it references Csla.dll and your business assemblies all built for .NET.
Hi
Have rebuilt some of the projects and re-added references and all appear okay now, thanks
hii..
I also did the same & it works fine now.
Thanks..
I deleted Bin folders & re-compiled all the projects.Then i re-added the refferences & project referrences.It worked fine for me.
Thanks...
Copyright (c) Marimer LLC