MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
I believe we have gone through that previously. The problem is that you are showing Exception.StackTrace rather than Exception.ToString(). As a result when an exception happens you know just WHERE it happens while Exception.ToString() would show both WHAT
happens (including inner exceptions) as well as the stack trace.
Any chance you could know change this. It should really change your life ;-) - at least regarding debugging.
Contributor
6479 Points
5815 Posts
Problem to exception
Nov 06, 2018 05:02 AM|wmec|LINK
Hi,
I have got
with these codes
why?
Peter
Contributor
2150 Points
705 Posts
Re: Problem to exception
Nov 07, 2018 09:07 AM|Jenifer Jiang|LINK
Hi wmec,
It seems that the error message tells you that some of the values obtained are too long to be stored in the specified column.
I’m not sure about your database design about the sizes of your columns.
Maybe there's a limited size there and I suggest that you could check it.
For more about the solution of the error message, you could refer to the thread in this link:
https://stackoverflow.com/questions/27204284/c-sharp-connection-to-sql-database-error
Best Regards,
Jenifer
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
4923 Points
4198 Posts
Re: Problem to exception
Nov 07, 2018 01:25 PM|DA924|LINK
You have posted nothing about the exception. There has to be an exception message that you are not posting that tells what the exception is about.
All-Star
48500 Points
18071 Posts
Re: Problem to exception
Nov 07, 2018 02:19 PM|PatriceSc|LINK
Hi,
I believe we have gone through that previously. The problem is that you are showing Exception.StackTrace rather than Exception.ToString(). As a result when an exception happens you know just WHERE it happens while Exception.ToString() would show both WHAT happens (including inner exceptions) as well as the stack trace.
Any chance you could know change this. It should really change your life ;-) - at least regarding debugging.