PC Review


Reply
Thread Tools Rate Thread

Debug advise please

 
 
John
Guest
Posts: n/a
 
      4th Feb 2009
Hi

I have a strongly typed dataset winform app. When I try to update a table
via;

daStaff.Update(ds.Staff)

I get an 'Expression too complex' exception but it does not tell me which
expression is too complex or which table field(s) is involved. What is the
way to proceed from here to debug this problem? MS Access is the backend
database.

Thanks

Regards


 
Reply With Quote
 
 
 
 
Frans Bouma [C# MVP]
Guest
Posts: n/a
 
      4th Feb 2009
John wrote:
> Hi
>
> I have a strongly typed dataset winform app. When I try to update a table
> via;
>
> daStaff.Update(ds.Staff)
>
> I get an 'Expression too complex' exception but it does not tell me which
> expression is too complex or which table field(s) is involved. What is the
> way to proceed from here to debug this problem? MS Access is the backend
> database.


Do you have a stacktrace? The stacktrace will show you if this happened
inside ms access (or better: the oledb provider), or that it happened
inside the dataset for example.

You could try to switch off optimistic concurrency, so there's no long
WHERE clause in updates to see if that fixes it for you

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Where is MMA Script Debug - java debug source path? Bill Sanderson Spyware Discussion 0 28th Nov 2009 03:22 PM
random Microsoft Visual C++ Debug Library Debug Error =?Utf-8?B?ZGNobWFu?= Microsoft Access VBA Modules 1 26th Apr 2006 03:25 PM
How to tell if your C# code is running in debug mode (debug compil =?Utf-8?B?TWF4IE0uIFBvd2Vy?= Microsoft C# .NET 3 20th Oct 2005 10:39 PM
V Studio 2003 Doesn't Load Supporting DLL Debug Symbols for Windows Service Remote Debug INGSOC Microsoft C# .NET 0 8th Feb 2005 09:19 AM
Visual C++ Debug Library. Debug Error! Abnormal program termination John Microsoft Outlook Discussion 1 25th Sep 2004 09:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 PM.