Manole, what country are you in?

On 10/31/06, Manole Bogdan <[EMAIL PROTECTED]> wrote:
I think somewhere in the EntityClass is a property who auto reference to the same instance. That will raise the exception. I have some problem and i didn't had the time to find where is the problem. I believe the solution is to set that member to null before of the returning from ajaxmethod. If you will find before me the solution please report in the group.
 
thx

 
On 10/30/06, scotteggert <[EMAIL PROTECTED] > wrote:

Hi There,
I have started messing around with NetTiers, and I like it.  The
problem is that I am trying to do something like the following:

<AjaxPro.AjaxMethod()> _
   Public Function GetOffice() As TList(Of Offices)
       return DataRepository.OfficesProvider.GetAll()
   End Function


-- Now, this works fine if I am doing anything server-side, but when it
gets sent up to the client, I get a StackOverflowException.  When I F11
through it after the end of the function, it appears that there is an
endless loop going through all of the properties of the Offices class
(which also has other sub-collections).  I have found that if I return
it as a dataset, all is good, but I'd like to know why this wouldn't
work with AjaxPro.  I am assuming it's because I need to manually
serialize the thing myself, but I have hundreds of tables to deal with,
and I don't feel like making a serialization class for each of them...

Any ideas?

Thanks,
se






--
.net noobie

You know this framework is not big enough for the two of us!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/

The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---

Reply via email to