James
Mon Mar 26 05:20:31 CDT 2007
Hi Steven,
Thanks for your reply!
Yes, this error is occurred on the same application as I mentioned in
another thread. I'm still struggling with these "unmanged" problems. In
fact, my previous version is compiled by VB.NET 2003 and works fine. In
this version, the basic logic of printing and other functions don't change
much. So I wonder whether some behavior of .NET framework 2.0 changes from
ver 1.1. Anyway, I'll trying to add some codes to get error details.
Regards,
James Wong
"Steven Cheng[MSFT]" <stcheng@online.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:UIKtjq3bHHA.296@TK2MSFTNGHUB02.phx.gbl...
> Hi James,
>
> Regarding on this problem, the error message in the eventlog indicate that
> System.FormatException is throwed from the application (pos.exe?), is this
> the same application you mentioned in your previous thread?
>
> For this exception, it is quite general and hard to determine the exact
> cause. For example, functions like string.Format, Console.Write that take
> a
> string format template will probably raise this exception when the
> template
> syntax is incorrect. Or the ADO.NET SqlCommand will also raise this error
> during executing of command.
>
> So far for this kind of problem, if you want to troubleshoot it, there are
> two common approaches:
>
> 1. check all those code will potential raise this problem and add
> exception
> handle there(such as console output, string.Format , SqlCommand
> execute....)
>
> 2. Use some advanced debugging tools to perform live debugging against the
> application and capture the exact type of the exception. This is a bit too
> complex and generally it is done by the product support team's engineer
> when troubleshooting.
>
> Here is a blog article mentioned this:
>
> #ASP.NET 2.0 Crash case study: Unhandled exceptions
>
http://blogs.msdn.com/tess/archive/2006/04/27/584927.aspx
>
> Hope this helps.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
>
> ==================================================
>
> Get notification to my posts through email? Please refer to
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
>
>
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
>
http://msdn.microsoft.com/subscriptions/support/default.aspx.
>
> ==================================================
>
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>
>
>
>
>
>
>
>