CSLA .NET Contrib News Feed 
Thursday, December 11, 2014  |  From CSLA .NET Contrib

Hello,


Our shop makes extensive use of CSLA.  We have written asp.net mvc, winforms, web services, etc all using CSLA.


One of the things that we are really struggling with is how to get back useful debugging information when an error occurs.  The thing that makes it complicated is that our a single application can pass through multiple application server "layers" to do what it needs.


For example, (and this is a real example), we have a winforms application that makes a call to a remote data portal.  Sometimes (ordering related), the data portal makes a call to a webservice on another machine.  The webservice makes another remote data portal call to a server inside our firewall. 


We have another scenario which is similar but in this case the UI is an asp.net mvc application and it hops to a diferent web service (REST based) but it calls the same final data portal as the above example.


My "holy grail" would be to get back object state and stacktrace information for ALL of the hops and log into a database somewhere.  The user  would just see a GUID or something that says (call tech support with this number) and we would be able to look it up and the log  would be have all of the information across all hops.


Right now we have to fire up a bunch of Visual Studio environments and point the data portal to production data to replicate the issues. 


I was thinking if we could override DataPortalException and add a GUID and then use implement IDataPortalExceptionInspector and change all of our configurations to call a custom exception that it would be the beginning of solving our problem.  But I am not able to get something like that to work so far (because the client side DataPortalException does not know how to deserialize the GUID property of the new exception type).  That was one of many errors I have encountered to try to get this to work.


Is there an easier way to do it?  Or am I on the right track?  I am not an engineer/architect so if you could give me an overview of the best solution that would be great.


We are testing this on the VERY NEWEST version of CSLA (4.5.601)  and .net 4.5.


Seth


 


 

Tuesday, December 09, 2014  |  From CSLA .NET Contrib

It seems to be inevitable that this will be a demand placed upon me and my team (though I sure plan to explore Xamarin.Forms or some other smart client cross-platform solution if one takes shape).  I will have to move our very large Silverlight application to HTML/JS.


For those that have used CSLA business objects with, say, an ASP.Net MVC application... is there a particular set of JavaScript frameworks/libraries that seem to work really well with CSLA business objects and those that do not work well?


At present, it seems like using Angular with Bootstrap is the flavor du jour that is more or less going to be dictated / but I don't want to just accept something without good reason.  Is Angular with Bootstrap as good as any to take on, or are there better JavaScript frameworks that make working with CSLA objects on the Web easier?


In the meantime, I will continue to hold out hope for something that won't have me writing JavaScript/HTML :).

Wednesday, November 19, 2014  |  From CSLA .NET Contrib

Hoping someone could offer some insight as I've been battling with this for some time.


I have a long term CSLA (4.5.6) web project that I'm trying to add the latest version of Application Insights. This was a simple process however it did not work. The site worked as usualt but nothing was posted to Application Insights, i.e there was an error in the HTTP Module added by AI, with no source I couldn't track this down.


After a long process of trial and error I narrowed it down to some binding redirect in the config file..


<dependentAssembly>
        <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
      </dependentAssembly>

Commenting this out resulted in Application Insights working however the site crashed completely. It seems Ai has a dependancy on the Microsoft.Bcl libraries (which incidently I didn't think were needed for 4.5) and adds the Microsoft.Threading.Tasks.*.dll's which kills CSLA.


Looking at CSLA source these are also referenced but never copied to bin folders.


Can anyone advise on the compatibility of the older .Net 4.0 async libs (ie Microsoft.Blc etc) and the CSLA. If I remove those dll;'s the app works again but Application Insights doesn't.


I don't think this is a CSLA issue but it would be nice to know what's going on. :(

Tuesday, November 18, 2014  |  From CSLA .NET Contrib

Hello


I would like to know how to use TransactionManager to manage a transaction on multiple oracle databases.I use TransactionManager for Root/Child transactions but on the same database, below is an example.


I don´t know how to set a TransactionManager that hold different connections object and that is able to commit or rollback the complete transaction. I think i have to use a UoW object but i don't how to wrap the complete process with one TransactionManager object.


Any help will be appreciated, thank in advance, Esteban


protected override void DataPortal_Update()
        {
            bool cancel = false;
            OnBeforeUpdate(ref cancel, this);
            if (cancel) return;
           
            RetailDto resultRetailDto = null;
           
         using (var ctx = DalFactory.GetManager())
         {
          var dal = ctx.GetProvider<IRetailDal>();
               
                using (var ctxConn = TransactionManager<OracleConnection, OracleTransaction>.GetManager(this.BreintekManager.ConnectStringDB, false, this.BreintekManager.DBConnId.ToString()))
                {
                    Csla.ApplicationContext.LocalContext[this.BreintekManager.DBConnId.ToString()] = "TransacOK";
          
                    using (BypassPropertyChecks)
                    {
                        RetailDto retailDto = new RetailDto(this.BreintekManager.CodigoAccesoSistema, this.BreintekManager.Usuario)
                        {
                            RetailId = this.RetailId,
                            ....
                        };
                       
                        retailDto.BreintekManager = this.BreintekManager;
                        retailDto.BreintekManager.AccionDB = BreintekAccionesDB.Update;                       
                       
                        retailDto.BreintekManager.EsTransaccion = true;
                       
                  resultRetailDto = dal.Update(retailDto);
                   
                        OnAfterUpdate(ref resultRetailDto);
                       
                        if(resultRetailDto.BreintekManager.TieneError)
                        {
                            if(resultRetailDto.BreintekManager.EsTransaccion)
                            {
                                var dalTrx = ctx.GetProvider<IManejoTransaccion>();
                                dalTrx.EjecutaTransaccion(resultRetailDto.BreintekManager, AdministraError.ListaErrorTrx);
                            }
                           
                            this.BreintekManager = resultRetailDto.BreintekManager;
                            ApplicationContext.LocalContext.Remove(this.BreintekManager.DBConnId.ToString());
                            return;
                        }
                    }
                   
                    cancel = false;
                    OnBeforeUpdateChild(ref cancel,  ref resultRetailDto);
                    if (cancel) return;


                    FieldManager.UpdateChildren(this);
                   
                    OnAfterUpdateChild(this, ref resultRetailDto);
               
                    if  ((!this.BreintekManager.TieneError) && (Csla.ApplicationContext.LocalContext[this.BreintekManager.DBConnId.ToString()].ToString() == "TransacOK"))
                    {
                        this.BreintekManager.Status = 1;
                        this.BreintekManager.OpcionDB = 0;
                        ctxConn.Commit();
                    }
                    else
                    {
                        this.BreintekManager.Status = -1;
                        this.BreintekManager.StatusMessage = String.Format("Se produjeron errores en objetos hijos.{0}{1}", Environment.NewLine, this.BreintekManager.StatusMessage);
                    }


                    ApplicationContext.LocalContext.Remove(this.BreintekManager.DBConnId.ToString());               
                }
            }
        }


 


 


 


 


 

Sunday, November 16, 2014  |  From CSLA .NET Contrib

I am running into a strange result. I have a business object with async rules. I am running unit tests to test basic crud operations. Update works fine. Insert gives me the Cannot save while IsBusy error. It seems IsBusy remains true even after the ValidationComplete event fires. Any ideas? Here is the code;


var validationCompleteEvent = new ManualResetEvent(false);


var item = MyEntity.New(Guid.NewGuid());


Assert.IsNotNull(item);


item.ValidationComplete += delegate { validationCompleteEvent.Set(); };


item.Name = "Test"; // Triggers the async rule.


validationCompleteEvent.WaitOne(5000,false);


item = item.Save(); // Get error here

Saturday, November 15, 2014  |  From CSLA .NET Contrib

Scenario: WinRT project with CSLA 4.5.


I've come across a weird situation where when I add one additional property to a particularly large object, the object breaks when the DP_Create method is called. It doesn't matter what kind of property I add (bool, int, whatever). The object has 58 properties, but when the 59th is added, I get an exception.


In a factory method on the object, I'm calling the DP_Create method as as follows:


var line = DataPortal.Create<OrderLineEdit>(criteria);


When this line is executed, I get back the following error without any chance of stepping into the DP_Create method even though a breakpoint is in there.


"An exception of type 'Csla.DataPortalException' occurred in mscorlib.dll but was not handled in user code


Additional information: DataPortal.Create failed (Object reference not set to an instance of an object.)"


I've spent hours going through the possibilities, including making sure all objects, including criteria objects, have default public constructors which I've found are needed in WinRT. The DP_Create method is run locally, per our custom proxy factory and by the fact it is in a compiler directive to run only NETFX_CORE, and I've even marked the method with the [RunLocal] attribute just to make sure, with that making no difference. Everything being done in this local DP_Create method does nothing spectacular (no database calls obviously, not interaction with other objects...simply setting simple type properties like ints, strings, etc.).


What I've finally stumbled onto is that when I remove a property (any property), everything starts working. And when I add a new property (of any data type, with any random name and not referenced by any code) it stops working and throws this exception. This leads me to the question of whether there is any sort of max # of properties allowed on an object running in the WinRT stack.


Any ideas? Thanks.

Tuesday, November 11, 2014  |  From CSLA .NET Contrib

when exist a VPN How affect our data acces layer or our WCF code?

Monday, November 10, 2014  |  From CSLA .NET Contrib

I am trying to find comparison data that compares the Entity framework and CSLA. Running head to head. Can't find anything. Anyone want to weigh in on this?


 


Dave

Monday, November 10, 2014  |  From CSLA .NET Contrib

Download video on youtube of what documentation do I need ? if there are good examples raid

Friday, November 07, 2014  |  From CSLA .NET Contrib

Hi friends,


Can anybody help me with this error.


 


Result Message:


Test method OrderTracker.Test.Library.OrderEditTest.GetOrder threw exception: 


Csla.DataPortalException: DataPortal.Fetch failed (Exception has been thrown by the target of an invocation.) ---> Csla.Reflection.CallMethodException: OrderEdit.DataPortal_Fetch method call failed ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Constructor on type 'Endoscopy.DalEf.EndoscopyEntities' not found.


Result StackTrace:


at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)


   at System.Activator.CreateInstance(Type type, Object[] args)


   at Csla.Data.EF6.DbContextManager`1..ctor(String database, String label, DbCompiledModel model, ObjectContext context)


   at Csla.Data.EF6.DbContextManager`1.GetManager(String database, String label, DbCompiledModel model)


   at Csla.Data.EF6.DbContextManager`1.GetManager(String database)


   at Endoscopy.DalEf.DalManager..ctor() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.DalEf\DalManager.cs:line 30


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243


   at lambda_method(Closure , Object , Object[] )


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243


   at lambda_method(Closure , Object , Object[] )


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__b.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__5.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Reflection.LateBoundObject.<CallMethodTryAsync>d__3.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Server.SimpleDataPortal.<Fetch>d__7.MoveNext()


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


 


 


 

Wednesday, November 05, 2014  |  From CSLA .NET Contrib

I need to run my existing SL csla application over https. I've setup the configuration in the files attached but still getting "The provided uri scheme 'https' is invalid; expected 'http'.


Server is windows 2003 with IIS 6.0 which is configured correct for ssl.


I've gone through all related posts here but I think I need a pair of fresh eyes on this one please.

Wednesday, November 05, 2014  |  From CSLA .NET Contrib

While this example was run error: Unable to find manifest signing certificate in the certificate store? and error connection string in the app.config file. thanks to bands such property protection. you see link: http://www.ardabasoglu.com/blog/encrypting-the-windows-forms-application-settings

Tuesday, November 04, 2014  |  From CSLA .NET Contrib

Hello, I'm trying to make a copy of a BO using the method that Rocky talked about in another post. My object graft looks something like this. I'm using CSLA 4.3.


parent


      single child


      single child


            child list


            child list


      single child


             child list


             child list


I have a static method on the parent object that accepts the "copy from" Id. 


Object from = GetObject(id);


Object newObject = from.Clone();


newObject.MarkNew()


newObject.Id = Guid.NewGuid();


newObject.Child.FixUpAfterCopy();


...


So the single child objects are cloning correctly but the child list objects of the single child objects are not cloning all the time. If I but a break point in the "FixUpAfterCopy()" of the child then it copies. Could it be the lazy loading of the child list? Any other suggestions?


Thanks,



 


 

Monday, November 03, 2014  |  From CSLA .NET Contrib

We're trying to upgrade to the latest Csla 4.5 on .Net 4.0.  We're still using remoting for the time being and will at some future point move to WCF, but for now remoting it is.  I've hit a problem where the BinaryFormatter hangs when deserizlizing one of our types.  The odd part is that it does work the first few times, it only fails after a few back and forths.  So I'm trying to move us to the NetDataContractSerializer, which we'd use on WCF anyway.


My issue there is that immediately we get an exception (before any of the remoting even happens) when trying to serialize the very first type.  It fails with a SerializationException: Type is not resolved for member "ABC"  I've not been able to find any useful information, and its my understanding the NDCS should pretty much be a drop in replacement for BinaryFormatter and thus honor the Serializable / NonSerializable attributes. 


This failure is happening just running our unit tests over remoting, both in R# and in the NUnit GUI.  Here's a portion of the  stack trace (omitted parts are our code / remoting proxy calling into serialize the object):


at System.AppDomain.GetHostEvidence(Type type)
at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext()
at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName)
at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath)
at System.Configuration.ClientConfigPaths..ctor(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Runtime.Serialization.Configuration.NetDataContractSerializerSection.TryUnsafeGetSection(NetDataContractSerializerSection& section)
at System.Runtime.Serialization.NetDataContractSerializer.get_UnsafeTypeForwardingEnabled()
at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex..ctor(NetDataContractSerializer serializer, Hashtable surrogateDataContracts)
at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph, DataContract contract, Hashtable surrogateDataContracts)
at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(Stream stream, Object graph)


Any ideas?

Monday, November 03, 2014  |  From CSLA .NET Contrib

Hi,


Currently we are using CSLA.NET version 4.3 in our applications. Most of the applicaiton are in .NET Framework 4. We are planning to migrate all applicaiton to latest .NET framework 4.5.2


Do we need to migrate CSLA.NET also to its latest version? Is latest CSLA.NET version is backward compatible to older CSLA.NET version?


Or , if we can get list of functionalitie sin CSLA.NET which wont be supported with .NET 4.5? 


Thanks,


Kshitiz


 


 

Thursday, October 30, 2014  |  From CSLA .NET Contrib

Hello


I'm upgrading some big Csla projects from 3.8 to 4.5. I'm also testing the new MobileProxy portal for 3-layer deployment.


 I've found that those projects use the SingleCriteria as the fetch parameter, where the parameter is another BusinessObject as a Filter, something like:   SingleCriteria<CustomerList, CustomerFilter>


When using this SingleCriteria parameter with a MobileProxy dataportal it fails with a "Serialization of type object is not supported" (it works OK with LocalPortal). I though it failed because the value property of SingleCriteria is not a managed property, however it still fails after changing to a managed property.


I know SingleCriteria is deprecated and that I can pass the CustomerFilter directly without the SingleCriteria, but I'd like to ask if I anyone know how can I modify this class temporaly so it works ok with serialization so I don't have to change the code when migrating to 4.5


Thank you
Jacobo

Wednesday, October 29, 2014  |  From CSLA .NET Contrib

We're moving our application from Csla 3.7 to 4.5, and it looks like the remoting proxy is no longer available as one of the remoting proxies.  Did Csla drop support for remoting?  I know we should move to WCF, but we were hoping to do that in a separate release, as a previous developer (no longer available) added some customizations to the data portal itself.

Wednesday, October 29, 2014  |  From CSLA .NET Contrib

After the load is connected to the variable string "connectionString", Question of the standard functions of C # can be taken out each piece as: [Server = localhost] and [Port = 5432] and ... [CommandTimeout = 10], to give them form into log form as SQL Server Management Studio 2005 from here Modifying, update, add delete, ... and after the break will be saved to the app.config file

Tuesday, October 28, 2014  |  From CSLA .NET Contrib

I develop a WinForm application with CSLA 4.3.13 and I have the following case:


I have a class with three properties:


CurrentValue


MaxValue


Result


The validation rule is CurrentValue<MaxValue


The business rule is that changing the value of the Result property changes the value of the MaxValue property.


I wrote the following rules to implement this scenario:


BusinessRules.AddRule(new Rules.MaxValueGetFromResult(MaxValueProperty, ResultProperty) { Priority = -1 });  //Business Rule


BusinessRules.AddRule(new Rules.LessThanProperty(CurrentValueProperty, MaxValueProperty) ); //Validation Rule


My problem is that when the user changes the Result property the validation rule is executed before the business rule and for that reason it uses the old value of MaxValue property and not the one that is set after the execution of the business rule.


Thanks



Tuesday, October 28, 2014  |  From CSLA .NET Contrib

I have one Project that holds the Web & Desktop application  (using VB )

In desktop app i am using a DataPortal.Update Method to update my Form Data, it works fine on my Local Machine................... but when i Deployed the project it is giving error on that Method.

Any help would really be appreaciated, unable to debug on Server.


---------------------------------------------------------------------------------------------------------------------------



EXCEPTION DETAILS
Message:
There was a problem updating the Contractor.
Source:
CSLA
Target Site:
System.Object Update(System.Object)
Exception:
DataPortal.Update failed
Inner Exception:
DataPortal_Update method call failed
Stack Trace:
at InnovationProperty.BusinessObjects.TypeOfLossList.DataPortal_Update()
at CSLA.Server.DataPortal.CallMethod(Object obj, String method, Object[] params)
at CSLA.Server.DataPortal.Update(Object obj, DataPortalContext context)
at CSLA.DataPortal.Update(Object obj)
at CSLA.BusinessCollectionBase.Save()
at InnovationProperty.frmContractorProfile.UpdateContractor()


---------------------------------------------------------------------------------------------------------------

 CSLA .NET Contrib News Feed 

 Code-gen Templates News Feed 
Thursday, December 11, 2014  |  From Code-gen Templates

Hello,


Our shop makes extensive use of CSLA.  We have written asp.net mvc, winforms, web services, etc all using CSLA.


One of the things that we are really struggling with is how to get back useful debugging information when an error occurs.  The thing that makes it complicated is that our a single application can pass through multiple application server "layers" to do what it needs.


For example, (and this is a real example), we have a winforms application that makes a call to a remote data portal.  Sometimes (ordering related), the data portal makes a call to a webservice on another machine.  The webservice makes another remote data portal call to a server inside our firewall. 


We have another scenario which is similar but in this case the UI is an asp.net mvc application and it hops to a diferent web service (REST based) but it calls the same final data portal as the above example.


My "holy grail" would be to get back object state and stacktrace information for ALL of the hops and log into a database somewhere.  The user  would just see a GUID or something that says (call tech support with this number) and we would be able to look it up and the log  would be have all of the information across all hops.


Right now we have to fire up a bunch of Visual Studio environments and point the data portal to production data to replicate the issues. 


I was thinking if we could override DataPortalException and add a GUID and then use implement IDataPortalExceptionInspector and change all of our configurations to call a custom exception that it would be the beginning of solving our problem.  But I am not able to get something like that to work so far (because the client side DataPortalException does not know how to deserialize the GUID property of the new exception type).  That was one of many errors I have encountered to try to get this to work.


Is there an easier way to do it?  Or am I on the right track?  I am not an engineer/architect so if you could give me an overview of the best solution that would be great.


We are testing this on the VERY NEWEST version of CSLA (4.5.601)  and .net 4.5.


Seth


 


 

Tuesday, December 09, 2014  |  From Code-gen Templates

It seems to be inevitable that this will be a demand placed upon me and my team (though I sure plan to explore Xamarin.Forms or some other smart client cross-platform solution if one takes shape).  I will have to move our very large Silverlight application to HTML/JS.


For those that have used CSLA business objects with, say, an ASP.Net MVC application... is there a particular set of JavaScript frameworks/libraries that seem to work really well with CSLA business objects and those that do not work well?


At present, it seems like using Angular with Bootstrap is the flavor du jour that is more or less going to be dictated / but I don't want to just accept something without good reason.  Is Angular with Bootstrap as good as any to take on, or are there better JavaScript frameworks that make working with CSLA objects on the Web easier?


In the meantime, I will continue to hold out hope for something that won't have me writing JavaScript/HTML :).

Wednesday, November 19, 2014  |  From Code-gen Templates

Hoping someone could offer some insight as I've been battling with this for some time.


I have a long term CSLA (4.5.6) web project that I'm trying to add the latest version of Application Insights. This was a simple process however it did not work. The site worked as usualt but nothing was posted to Application Insights, i.e there was an error in the HTTP Module added by AI, with no source I couldn't track this down.


After a long process of trial and error I narrowed it down to some binding redirect in the config file..


<dependentAssembly>
        <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
      </dependentAssembly>

Commenting this out resulted in Application Insights working however the site crashed completely. It seems Ai has a dependancy on the Microsoft.Bcl libraries (which incidently I didn't think were needed for 4.5) and adds the Microsoft.Threading.Tasks.*.dll's which kills CSLA.


Looking at CSLA source these are also referenced but never copied to bin folders.


Can anyone advise on the compatibility of the older .Net 4.0 async libs (ie Microsoft.Blc etc) and the CSLA. If I remove those dll;'s the app works again but Application Insights doesn't.


I don't think this is a CSLA issue but it would be nice to know what's going on. :(

Tuesday, November 18, 2014  |  From Code-gen Templates

Hello


I would like to know how to use TransactionManager to manage a transaction on multiple oracle databases.I use TransactionManager for Root/Child transactions but on the same database, below is an example.


I don´t know how to set a TransactionManager that hold different connections object and that is able to commit or rollback the complete transaction. I think i have to use a UoW object but i don't how to wrap the complete process with one TransactionManager object.


Any help will be appreciated, thank in advance, Esteban


protected override void DataPortal_Update()
        {
            bool cancel = false;
            OnBeforeUpdate(ref cancel, this);
            if (cancel) return;
           
            RetailDto resultRetailDto = null;
           
         using (var ctx = DalFactory.GetManager())
         {
          var dal = ctx.GetProvider<IRetailDal>();
               
                using (var ctxConn = TransactionManager<OracleConnection, OracleTransaction>.GetManager(this.BreintekManager.ConnectStringDB, false, this.BreintekManager.DBConnId.ToString()))
                {
                    Csla.ApplicationContext.LocalContext[this.BreintekManager.DBConnId.ToString()] = "TransacOK";
          
                    using (BypassPropertyChecks)
                    {
                        RetailDto retailDto = new RetailDto(this.BreintekManager.CodigoAccesoSistema, this.BreintekManager.Usuario)
                        {
                            RetailId = this.RetailId,
                            ....
                        };
                       
                        retailDto.BreintekManager = this.BreintekManager;
                        retailDto.BreintekManager.AccionDB = BreintekAccionesDB.Update;                       
                       
                        retailDto.BreintekManager.EsTransaccion = true;
                       
                  resultRetailDto = dal.Update(retailDto);
                   
                        OnAfterUpdate(ref resultRetailDto);
                       
                        if(resultRetailDto.BreintekManager.TieneError)
                        {
                            if(resultRetailDto.BreintekManager.EsTransaccion)
                            {
                                var dalTrx = ctx.GetProvider<IManejoTransaccion>();
                                dalTrx.EjecutaTransaccion(resultRetailDto.BreintekManager, AdministraError.ListaErrorTrx);
                            }
                           
                            this.BreintekManager = resultRetailDto.BreintekManager;
                            ApplicationContext.LocalContext.Remove(this.BreintekManager.DBConnId.ToString());
                            return;
                        }
                    }
                   
                    cancel = false;
                    OnBeforeUpdateChild(ref cancel,  ref resultRetailDto);
                    if (cancel) return;


                    FieldManager.UpdateChildren(this);
                   
                    OnAfterUpdateChild(this, ref resultRetailDto);
               
                    if  ((!this.BreintekManager.TieneError) && (Csla.ApplicationContext.LocalContext[this.BreintekManager.DBConnId.ToString()].ToString() == "TransacOK"))
                    {
                        this.BreintekManager.Status = 1;
                        this.BreintekManager.OpcionDB = 0;
                        ctxConn.Commit();
                    }
                    else
                    {
                        this.BreintekManager.Status = -1;
                        this.BreintekManager.StatusMessage = String.Format("Se produjeron errores en objetos hijos.{0}{1}", Environment.NewLine, this.BreintekManager.StatusMessage);
                    }


                    ApplicationContext.LocalContext.Remove(this.BreintekManager.DBConnId.ToString());               
                }
            }
        }


 


 


 


 


 

Sunday, November 16, 2014  |  From Code-gen Templates

I am running into a strange result. I have a business object with async rules. I am running unit tests to test basic crud operations. Update works fine. Insert gives me the Cannot save while IsBusy error. It seems IsBusy remains true even after the ValidationComplete event fires. Any ideas? Here is the code;


var validationCompleteEvent = new ManualResetEvent(false);


var item = MyEntity.New(Guid.NewGuid());


Assert.IsNotNull(item);


item.ValidationComplete += delegate { validationCompleteEvent.Set(); };


item.Name = "Test"; // Triggers the async rule.


validationCompleteEvent.WaitOne(5000,false);


item = item.Save(); // Get error here

Saturday, November 15, 2014  |  From Code-gen Templates

Scenario: WinRT project with CSLA 4.5.


I've come across a weird situation where when I add one additional property to a particularly large object, the object breaks when the DP_Create method is called. It doesn't matter what kind of property I add (bool, int, whatever). The object has 58 properties, but when the 59th is added, I get an exception.


In a factory method on the object, I'm calling the DP_Create method as as follows:


var line = DataPortal.Create<OrderLineEdit>(criteria);


When this line is executed, I get back the following error without any chance of stepping into the DP_Create method even though a breakpoint is in there.


"An exception of type 'Csla.DataPortalException' occurred in mscorlib.dll but was not handled in user code


Additional information: DataPortal.Create failed (Object reference not set to an instance of an object.)"


I've spent hours going through the possibilities, including making sure all objects, including criteria objects, have default public constructors which I've found are needed in WinRT. The DP_Create method is run locally, per our custom proxy factory and by the fact it is in a compiler directive to run only NETFX_CORE, and I've even marked the method with the [RunLocal] attribute just to make sure, with that making no difference. Everything being done in this local DP_Create method does nothing spectacular (no database calls obviously, not interaction with other objects...simply setting simple type properties like ints, strings, etc.).


What I've finally stumbled onto is that when I remove a property (any property), everything starts working. And when I add a new property (of any data type, with any random name and not referenced by any code) it stops working and throws this exception. This leads me to the question of whether there is any sort of max # of properties allowed on an object running in the WinRT stack.


Any ideas? Thanks.

Tuesday, November 11, 2014  |  From Code-gen Templates

when exist a VPN How affect our data acces layer or our WCF code?

Monday, November 10, 2014  |  From Code-gen Templates

I am trying to find comparison data that compares the Entity framework and CSLA. Running head to head. Can't find anything. Anyone want to weigh in on this?


 


Dave

Monday, November 10, 2014  |  From Code-gen Templates

Download video on youtube of what documentation do I need ? if there are good examples raid

Friday, November 07, 2014  |  From Code-gen Templates

Hi friends,


Can anybody help me with this error.


 


Result Message:


Test method OrderTracker.Test.Library.OrderEditTest.GetOrder threw exception: 


Csla.DataPortalException: DataPortal.Fetch failed (Exception has been thrown by the target of an invocation.) ---> Csla.Reflection.CallMethodException: OrderEdit.DataPortal_Fetch method call failed ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Constructor on type 'Endoscopy.DalEf.EndoscopyEntities' not found.


Result StackTrace:


at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)


   at System.Activator.CreateInstance(Type type, Object[] args)


   at Csla.Data.EF6.DbContextManager`1..ctor(String database, String label, DbCompiledModel model, ObjectContext context)


   at Csla.Data.EF6.DbContextManager`1.GetManager(String database, String label, DbCompiledModel model)


   at Csla.Data.EF6.DbContextManager`1.GetManager(String database)


   at Endoscopy.DalEf.DalManager..ctor() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.DalEf\DalManager.cs:line 30


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243


   at lambda_method(Closure , Object , Object[] )


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243


   at lambda_method(Closure , Object , Object[] )


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__b.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__5.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Reflection.LateBoundObject.<CallMethodTryAsync>d__3.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Server.SimpleDataPortal.<Fetch>d__7.MoveNext()


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


 


 


 

Wednesday, November 05, 2014  |  From Code-gen Templates

I need to run my existing SL csla application over https. I've setup the configuration in the files attached but still getting "The provided uri scheme 'https' is invalid; expected 'http'.


Server is windows 2003 with IIS 6.0 which is configured correct for ssl.


I've gone through all related posts here but I think I need a pair of fresh eyes on this one please.

Wednesday, November 05, 2014  |  From Code-gen Templates

While this example was run error: Unable to find manifest signing certificate in the certificate store? and error connection string in the app.config file. thanks to bands such property protection. you see link: http://www.ardabasoglu.com/blog/encrypting-the-windows-forms-application-settings

Tuesday, November 04, 2014  |  From Code-gen Templates

Hello, I'm trying to make a copy of a BO using the method that Rocky talked about in another post. My object graft looks something like this. I'm using CSLA 4.3.


parent


      single child


      single child


            child list


            child list


      single child


             child list


             child list


I have a static method on the parent object that accepts the "copy from" Id. 


Object from = GetObject(id);


Object newObject = from.Clone();


newObject.MarkNew()


newObject.Id = Guid.NewGuid();


newObject.Child.FixUpAfterCopy();


...


So the single child objects are cloning correctly but the child list objects of the single child objects are not cloning all the time. If I but a break point in the "FixUpAfterCopy()" of the child then it copies. Could it be the lazy loading of the child list? Any other suggestions?


Thanks,



 


 

Monday, November 03, 2014  |  From Code-gen Templates

We're trying to upgrade to the latest Csla 4.5 on .Net 4.0.  We're still using remoting for the time being and will at some future point move to WCF, but for now remoting it is.  I've hit a problem where the BinaryFormatter hangs when deserizlizing one of our types.  The odd part is that it does work the first few times, it only fails after a few back and forths.  So I'm trying to move us to the NetDataContractSerializer, which we'd use on WCF anyway.


My issue there is that immediately we get an exception (before any of the remoting even happens) when trying to serialize the very first type.  It fails with a SerializationException: Type is not resolved for member "ABC"  I've not been able to find any useful information, and its my understanding the NDCS should pretty much be a drop in replacement for BinaryFormatter and thus honor the Serializable / NonSerializable attributes. 


This failure is happening just running our unit tests over remoting, both in R# and in the NUnit GUI.  Here's a portion of the  stack trace (omitted parts are our code / remoting proxy calling into serialize the object):


at System.AppDomain.GetHostEvidence(Type type)
at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext()
at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName)
at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath)
at System.Configuration.ClientConfigPaths..ctor(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Runtime.Serialization.Configuration.NetDataContractSerializerSection.TryUnsafeGetSection(NetDataContractSerializerSection& section)
at System.Runtime.Serialization.NetDataContractSerializer.get_UnsafeTypeForwardingEnabled()
at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex..ctor(NetDataContractSerializer serializer, Hashtable surrogateDataContracts)
at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph, DataContract contract, Hashtable surrogateDataContracts)
at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(Stream stream, Object graph)


Any ideas?

Monday, November 03, 2014  |  From Code-gen Templates

Hi,


Currently we are using CSLA.NET version 4.3 in our applications. Most of the applicaiton are in .NET Framework 4. We are planning to migrate all applicaiton to latest .NET framework 4.5.2


Do we need to migrate CSLA.NET also to its latest version? Is latest CSLA.NET version is backward compatible to older CSLA.NET version?


Or , if we can get list of functionalitie sin CSLA.NET which wont be supported with .NET 4.5? 


Thanks,


Kshitiz


 


 

Thursday, October 30, 2014  |  From Code-gen Templates

Hello


I'm upgrading some big Csla projects from 3.8 to 4.5. I'm also testing the new MobileProxy portal for 3-layer deployment.


 I've found that those projects use the SingleCriteria as the fetch parameter, where the parameter is another BusinessObject as a Filter, something like:   SingleCriteria<CustomerList, CustomerFilter>


When using this SingleCriteria parameter with a MobileProxy dataportal it fails with a "Serialization of type object is not supported" (it works OK with LocalPortal). I though it failed because the value property of SingleCriteria is not a managed property, however it still fails after changing to a managed property.


I know SingleCriteria is deprecated and that I can pass the CustomerFilter directly without the SingleCriteria, but I'd like to ask if I anyone know how can I modify this class temporaly so it works ok with serialization so I don't have to change the code when migrating to 4.5


Thank you
Jacobo

Wednesday, October 29, 2014  |  From Code-gen Templates

We're moving our application from Csla 3.7 to 4.5, and it looks like the remoting proxy is no longer available as one of the remoting proxies.  Did Csla drop support for remoting?  I know we should move to WCF, but we were hoping to do that in a separate release, as a previous developer (no longer available) added some customizations to the data portal itself.

Wednesday, October 29, 2014  |  From Code-gen Templates

After the load is connected to the variable string "connectionString", Question of the standard functions of C # can be taken out each piece as: [Server = localhost] and [Port = 5432] and ... [CommandTimeout = 10], to give them form into log form as SQL Server Management Studio 2005 from here Modifying, update, add delete, ... and after the break will be saved to the app.config file

Tuesday, October 28, 2014  |  From Code-gen Templates

I develop a WinForm application with CSLA 4.3.13 and I have the following case:


I have a class with three properties:


CurrentValue


MaxValue


Result


The validation rule is CurrentValue<MaxValue


The business rule is that changing the value of the Result property changes the value of the MaxValue property.


I wrote the following rules to implement this scenario:


BusinessRules.AddRule(new Rules.MaxValueGetFromResult(MaxValueProperty, ResultProperty) { Priority = -1 });  //Business Rule


BusinessRules.AddRule(new Rules.LessThanProperty(CurrentValueProperty, MaxValueProperty) ); //Validation Rule


My problem is that when the user changes the Result property the validation rule is executed before the business rule and for that reason it uses the old value of MaxValue property and not the one that is set after the execution of the business rule.


Thanks



Tuesday, October 28, 2014  |  From Code-gen Templates

I have one Project that holds the Web & Desktop application  (using VB )

In desktop app i am using a DataPortal.Update Method to update my Form Data, it works fine on my Local Machine................... but when i Deployed the project it is giving error on that Method.

Any help would really be appreaciated, unable to debug on Server.


---------------------------------------------------------------------------------------------------------------------------



EXCEPTION DETAILS
Message:
There was a problem updating the Contractor.
Source:
CSLA
Target Site:
System.Object Update(System.Object)
Exception:
DataPortal.Update failed
Inner Exception:
DataPortal_Update method call failed
Stack Trace:
at InnovationProperty.BusinessObjects.TypeOfLossList.DataPortal_Update()
at CSLA.Server.DataPortal.CallMethod(Object obj, String method, Object[] params)
at CSLA.Server.DataPortal.Update(Object obj, DataPortalContext context)
at CSLA.DataPortal.Update(Object obj)
at CSLA.BusinessCollectionBase.Save()
at InnovationProperty.frmContractorProfile.UpdateContractor()


---------------------------------------------------------------------------------------------------------------

 Code-gen Templates News Feed 

 VS Templates News Feed 
Thursday, December 11, 2014  |  From VS Templates

Hello,


Our shop makes extensive use of CSLA.  We have written asp.net mvc, winforms, web services, etc all using CSLA.


One of the things that we are really struggling with is how to get back useful debugging information when an error occurs.  The thing that makes it complicated is that our a single application can pass through multiple application server "layers" to do what it needs.


For example, (and this is a real example), we have a winforms application that makes a call to a remote data portal.  Sometimes (ordering related), the data portal makes a call to a webservice on another machine.  The webservice makes another remote data portal call to a server inside our firewall. 


We have another scenario which is similar but in this case the UI is an asp.net mvc application and it hops to a diferent web service (REST based) but it calls the same final data portal as the above example.


My "holy grail" would be to get back object state and stacktrace information for ALL of the hops and log into a database somewhere.  The user  would just see a GUID or something that says (call tech support with this number) and we would be able to look it up and the log  would be have all of the information across all hops.


Right now we have to fire up a bunch of Visual Studio environments and point the data portal to production data to replicate the issues. 


I was thinking if we could override DataPortalException and add a GUID and then use implement IDataPortalExceptionInspector and change all of our configurations to call a custom exception that it would be the beginning of solving our problem.  But I am not able to get something like that to work so far (because the client side DataPortalException does not know how to deserialize the GUID property of the new exception type).  That was one of many errors I have encountered to try to get this to work.


Is there an easier way to do it?  Or am I on the right track?  I am not an engineer/architect so if you could give me an overview of the best solution that would be great.


We are testing this on the VERY NEWEST version of CSLA (4.5.601)  and .net 4.5.


Seth


 


 

Tuesday, December 09, 2014  |  From VS Templates

It seems to be inevitable that this will be a demand placed upon me and my team (though I sure plan to explore Xamarin.Forms or some other smart client cross-platform solution if one takes shape).  I will have to move our very large Silverlight application to HTML/JS.


For those that have used CSLA business objects with, say, an ASP.Net MVC application... is there a particular set of JavaScript frameworks/libraries that seem to work really well with CSLA business objects and those that do not work well?


At present, it seems like using Angular with Bootstrap is the flavor du jour that is more or less going to be dictated / but I don't want to just accept something without good reason.  Is Angular with Bootstrap as good as any to take on, or are there better JavaScript frameworks that make working with CSLA objects on the Web easier?


In the meantime, I will continue to hold out hope for something that won't have me writing JavaScript/HTML :).

Wednesday, November 19, 2014  |  From VS Templates

Hoping someone could offer some insight as I've been battling with this for some time.


I have a long term CSLA (4.5.6) web project that I'm trying to add the latest version of Application Insights. This was a simple process however it did not work. The site worked as usualt but nothing was posted to Application Insights, i.e there was an error in the HTTP Module added by AI, with no source I couldn't track this down.


After a long process of trial and error I narrowed it down to some binding redirect in the config file..


<dependentAssembly>
        <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
      </dependentAssembly>

Commenting this out resulted in Application Insights working however the site crashed completely. It seems Ai has a dependancy on the Microsoft.Bcl libraries (which incidently I didn't think were needed for 4.5) and adds the Microsoft.Threading.Tasks.*.dll's which kills CSLA.


Looking at CSLA source these are also referenced but never copied to bin folders.


Can anyone advise on the compatibility of the older .Net 4.0 async libs (ie Microsoft.Blc etc) and the CSLA. If I remove those dll;'s the app works again but Application Insights doesn't.


I don't think this is a CSLA issue but it would be nice to know what's going on. :(

Tuesday, November 18, 2014  |  From VS Templates

Hello


I would like to know how to use TransactionManager to manage a transaction on multiple oracle databases.I use TransactionManager for Root/Child transactions but on the same database, below is an example.


I don´t know how to set a TransactionManager that hold different connections object and that is able to commit or rollback the complete transaction. I think i have to use a UoW object but i don't how to wrap the complete process with one TransactionManager object.


Any help will be appreciated, thank in advance, Esteban


protected override void DataPortal_Update()
        {
            bool cancel = false;
            OnBeforeUpdate(ref cancel, this);
            if (cancel) return;
           
            RetailDto resultRetailDto = null;
           
         using (var ctx = DalFactory.GetManager())
         {
          var dal = ctx.GetProvider<IRetailDal>();
               
                using (var ctxConn = TransactionManager<OracleConnection, OracleTransaction>.GetManager(this.BreintekManager.ConnectStringDB, false, this.BreintekManager.DBConnId.ToString()))
                {
                    Csla.ApplicationContext.LocalContext[this.BreintekManager.DBConnId.ToString()] = "TransacOK";
          
                    using (BypassPropertyChecks)
                    {
                        RetailDto retailDto = new RetailDto(this.BreintekManager.CodigoAccesoSistema, this.BreintekManager.Usuario)
                        {
                            RetailId = this.RetailId,
                            ....
                        };
                       
                        retailDto.BreintekManager = this.BreintekManager;
                        retailDto.BreintekManager.AccionDB = BreintekAccionesDB.Update;                       
                       
                        retailDto.BreintekManager.EsTransaccion = true;
                       
                  resultRetailDto = dal.Update(retailDto);
                   
                        OnAfterUpdate(ref resultRetailDto);
                       
                        if(resultRetailDto.BreintekManager.TieneError)
                        {
                            if(resultRetailDto.BreintekManager.EsTransaccion)
                            {
                                var dalTrx = ctx.GetProvider<IManejoTransaccion>();
                                dalTrx.EjecutaTransaccion(resultRetailDto.BreintekManager, AdministraError.ListaErrorTrx);
                            }
                           
                            this.BreintekManager = resultRetailDto.BreintekManager;
                            ApplicationContext.LocalContext.Remove(this.BreintekManager.DBConnId.ToString());
                            return;
                        }
                    }
                   
                    cancel = false;
                    OnBeforeUpdateChild(ref cancel,  ref resultRetailDto);
                    if (cancel) return;


                    FieldManager.UpdateChildren(this);
                   
                    OnAfterUpdateChild(this, ref resultRetailDto);
               
                    if  ((!this.BreintekManager.TieneError) && (Csla.ApplicationContext.LocalContext[this.BreintekManager.DBConnId.ToString()].ToString() == "TransacOK"))
                    {
                        this.BreintekManager.Status = 1;
                        this.BreintekManager.OpcionDB = 0;
                        ctxConn.Commit();
                    }
                    else
                    {
                        this.BreintekManager.Status = -1;
                        this.BreintekManager.StatusMessage = String.Format("Se produjeron errores en objetos hijos.{0}{1}", Environment.NewLine, this.BreintekManager.StatusMessage);
                    }


                    ApplicationContext.LocalContext.Remove(this.BreintekManager.DBConnId.ToString());               
                }
            }
        }


 


 


 


 


 

Sunday, November 16, 2014  |  From VS Templates

I am running into a strange result. I have a business object with async rules. I am running unit tests to test basic crud operations. Update works fine. Insert gives me the Cannot save while IsBusy error. It seems IsBusy remains true even after the ValidationComplete event fires. Any ideas? Here is the code;


var validationCompleteEvent = new ManualResetEvent(false);


var item = MyEntity.New(Guid.NewGuid());


Assert.IsNotNull(item);


item.ValidationComplete += delegate { validationCompleteEvent.Set(); };


item.Name = "Test"; // Triggers the async rule.


validationCompleteEvent.WaitOne(5000,false);


item = item.Save(); // Get error here

Saturday, November 15, 2014  |  From VS Templates

Scenario: WinRT project with CSLA 4.5.


I've come across a weird situation where when I add one additional property to a particularly large object, the object breaks when the DP_Create method is called. It doesn't matter what kind of property I add (bool, int, whatever). The object has 58 properties, but when the 59th is added, I get an exception.


In a factory method on the object, I'm calling the DP_Create method as as follows:


var line = DataPortal.Create<OrderLineEdit>(criteria);


When this line is executed, I get back the following error without any chance of stepping into the DP_Create method even though a breakpoint is in there.


"An exception of type 'Csla.DataPortalException' occurred in mscorlib.dll but was not handled in user code


Additional information: DataPortal.Create failed (Object reference not set to an instance of an object.)"


I've spent hours going through the possibilities, including making sure all objects, including criteria objects, have default public constructors which I've found are needed in WinRT. The DP_Create method is run locally, per our custom proxy factory and by the fact it is in a compiler directive to run only NETFX_CORE, and I've even marked the method with the [RunLocal] attribute just to make sure, with that making no difference. Everything being done in this local DP_Create method does nothing spectacular (no database calls obviously, not interaction with other objects...simply setting simple type properties like ints, strings, etc.).


What I've finally stumbled onto is that when I remove a property (any property), everything starts working. And when I add a new property (of any data type, with any random name and not referenced by any code) it stops working and throws this exception. This leads me to the question of whether there is any sort of max # of properties allowed on an object running in the WinRT stack.


Any ideas? Thanks.

Tuesday, November 11, 2014  |  From VS Templates

when exist a VPN How affect our data acces layer or our WCF code?

Monday, November 10, 2014  |  From VS Templates

I am trying to find comparison data that compares the Entity framework and CSLA. Running head to head. Can't find anything. Anyone want to weigh in on this?


 


Dave

Monday, November 10, 2014  |  From VS Templates

Download video on youtube of what documentation do I need ? if there are good examples raid

Friday, November 07, 2014  |  From VS Templates

Hi friends,


Can anybody help me with this error.


 


Result Message:


Test method OrderTracker.Test.Library.OrderEditTest.GetOrder threw exception: 


Csla.DataPortalException: DataPortal.Fetch failed (Exception has been thrown by the target of an invocation.) ---> Csla.Reflection.CallMethodException: OrderEdit.DataPortal_Fetch method call failed ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Constructor on type 'Endoscopy.DalEf.EndoscopyEntities' not found.


Result StackTrace:


at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)


   at System.Activator.CreateInstance(Type type, Object[] args)


   at Csla.Data.EF6.DbContextManager`1..ctor(String database, String label, DbCompiledModel model, ObjectContext context)


   at Csla.Data.EF6.DbContextManager`1.GetManager(String database, String label, DbCompiledModel model)


   at Csla.Data.EF6.DbContextManager`1.GetManager(String database)


   at Endoscopy.DalEf.DalManager..ctor() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.DalEf\DalManager.cs:line 30


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243


   at lambda_method(Closure , Object , Object[] )


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243


   at lambda_method(Closure , Object , Object[] )


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)


   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__b.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__5.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Reflection.LateBoundObject.<CallMethodTryAsync>d__3.MoveNext()


--- End of stack trace from previous location where exception was thrown ---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


   at Csla.Server.SimpleDataPortal.<Fetch>d__7.MoveNext()


 --- End of inner exception stack trace ---


    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)


   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)


   at System.Activator.CreateInstance(Type type, Boolean nonPublic)


   at System.Activator.CreateInstance(Type type)


   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22


 


 


 

Wednesday, November 05, 2014  |  From VS Templates

I need to run my existing SL csla application over https. I've setup the configuration in the files attached but still getting "The provided uri scheme 'https' is invalid; expected 'http'.


Server is windows 2003 with IIS 6.0 which is configured correct for ssl.


I've gone through all related posts here but I think I need a pair of fresh eyes on this one please.

Wednesday, November 05, 2014  |  From VS Templates

While this example was run error: Unable to find manifest signing certificate in the certificate store? and error connection string in the app.config file. thanks to bands such property protection. you see link: http://www.ardabasoglu.com/blog/encrypting-the-windows-forms-application-settings

Tuesday, November 04, 2014  |  From VS Templates

Hello, I'm trying to make a copy of a BO using the method that Rocky talked about in another post. My object graft looks something like this. I'm using CSLA 4.3.


parent


      single child


      single child


            child list


            child list


      single child


             child list


             child list


I have a static method on the parent object that accepts the "copy from" Id. 


Object from = GetObject(id);


Object newObject = from.Clone();


newObject.MarkNew()


newObject.Id = Guid.NewGuid();


newObject.Child.FixUpAfterCopy();


...


So the single child objects are cloning correctly but the child list objects of the single child objects are not cloning all the time. If I but a break point in the "FixUpAfterCopy()" of the child then it copies. Could it be the lazy loading of the child list? Any other suggestions?


Thanks,



 


 

Monday, November 03, 2014  |  From VS Templates

We're trying to upgrade to the latest Csla 4.5 on .Net 4.0.  We're still using remoting for the time being and will at some future point move to WCF, but for now remoting it is.  I've hit a problem where the BinaryFormatter hangs when deserizlizing one of our types.  The odd part is that it does work the first few times, it only fails after a few back and forths.  So I'm trying to move us to the NetDataContractSerializer, which we'd use on WCF anyway.


My issue there is that immediately we get an exception (before any of the remoting even happens) when trying to serialize the very first type.  It fails with a SerializationException: Type is not resolved for member "ABC"  I've not been able to find any useful information, and its my understanding the NDCS should pretty much be a drop in replacement for BinaryFormatter and thus honor the Serializable / NonSerializable attributes. 


This failure is happening just running our unit tests over remoting, both in R# and in the NUnit GUI.  Here's a portion of the  stack trace (omitted parts are our code / remoting proxy calling into serialize the object):


at System.AppDomain.GetHostEvidence(Type type)
at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext()
at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName)
at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath)
at System.Configuration.ClientConfigPaths..ctor(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Runtime.Serialization.Configuration.NetDataContractSerializerSection.TryUnsafeGetSection(NetDataContractSerializerSection& section)
at System.Runtime.Serialization.NetDataContractSerializer.get_UnsafeTypeForwardingEnabled()
at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex..ctor(NetDataContractSerializer serializer, Hashtable surrogateDataContracts)
at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph, DataContract contract, Hashtable surrogateDataContracts)
at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(Stream stream, Object graph)


Any ideas?

Monday, November 03, 2014  |  From VS Templates

Hi,


Currently we are using CSLA.NET version 4.3 in our applications. Most of the applicaiton are in .NET Framework 4. We are planning to migrate all applicaiton to latest .NET framework 4.5.2


Do we need to migrate CSLA.NET also to its latest version? Is latest CSLA.NET version is backward compatible to older CSLA.NET version?


Or , if we can get list of functionalitie sin CSLA.NET which wont be supported with .NET 4.5? 


Thanks,


Kshitiz


 


 

Thursday, October 30, 2014  |  From VS Templates

Hello


I'm upgrading some big Csla projects from 3.8 to 4.5. I'm also testing the new MobileProxy portal for 3-layer deployment.


 I've found that those projects use the SingleCriteria as the fetch parameter, where the parameter is another BusinessObject as a Filter, something like:   SingleCriteria<CustomerList, CustomerFilter>


When using this SingleCriteria parameter with a MobileProxy dataportal it fails with a "Serialization of type object is not supported" (it works OK with LocalPortal). I though it failed because the value property of SingleCriteria is not a managed property, however it still fails after changing to a managed property.


I know SingleCriteria is deprecated and that I can pass the CustomerFilter directly without the SingleCriteria, but I'd like to ask if I anyone know how can I modify this class temporaly so it works ok with serialization so I don't have to change the code when migrating to 4.5


Thank you
Jacobo

Wednesday, October 29, 2014  |  From VS Templates

We're moving our application from Csla 3.7 to 4.5, and it looks like the remoting proxy is no longer available as one of the remoting proxies.  Did Csla drop support for remoting?  I know we should move to WCF, but we were hoping to do that in a separate release, as a previous developer (no longer available) added some customizations to the data portal itself.

Wednesday, October 29, 2014  |  From VS Templates

After the load is connected to the variable string "connectionString", Question of the standard functions of C # can be taken out each piece as: [Server = localhost] and [Port = 5432] and ... [CommandTimeout = 10], to give them form into log form as SQL Server Management Studio 2005 from here Modifying, update, add delete, ... and after the break will be saved to the app.config file

Tuesday, October 28, 2014  |  From VS Templates

I develop a WinForm application with CSLA 4.3.13 and I have the following case:


I have a class with three properties:


CurrentValue


MaxValue


Result


The validation rule is CurrentValue<MaxValue


The business rule is that changing the value of the Result property changes the value of the MaxValue property.


I wrote the following rules to implement this scenario:


BusinessRules.AddRule(new Rules.MaxValueGetFromResult(MaxValueProperty, ResultProperty) { Priority = -1 });  //Business Rule


BusinessRules.AddRule(new Rules.LessThanProperty(CurrentValueProperty, MaxValueProperty) ); //Validation Rule


My problem is that when the user changes the Result property the validation rule is executed before the business rule and for that reason it uses the old value of MaxValue property and not the one that is set after the execution of the business rule.


Thanks



Tuesday, October 28, 2014  |  From VS Templates

I have one Project that holds the Web & Desktop application  (using VB )

In desktop app i am using a DataPortal.Update Method to update my Form Data, it works fine on my Local Machine................... but when i Deployed the project it is giving error on that Method.

Any help would really be appreaciated, unable to debug on Server.


---------------------------------------------------------------------------------------------------------------------------



EXCEPTION DETAILS
Message:
There was a problem updating the Contractor.
Source:
CSLA
Target Site:
System.Object Update(System.Object)
Exception:
DataPortal.Update failed
Inner Exception:
DataPortal_Update method call failed
Stack Trace:
at InnovationProperty.BusinessObjects.TypeOfLossList.DataPortal_Update()
at CSLA.Server.DataPortal.CallMethod(Object obj, String method, Object[] params)
at CSLA.Server.DataPortal.Update(Object obj, DataPortalContext context)
at CSLA.DataPortal.Update(Object obj)
at CSLA.BusinessCollectionBase.Save()
at InnovationProperty.frmContractorProfile.UpdateContractor()


---------------------------------------------------------------------------------------------------------------

 VS Templates News Feed 

Last edited Jan 18, 2007 at 7:55 PM by RockfordLhotka, version 2

Comments

No comments yet.