Re: System.NotSupportedException - on F5 debug but not on CTRL-F5

From: (ctacke/)
Date: 02/17/05


Date: Wed, 16 Feb 2005 21:31:36 -0500

How big is InitalizeComponent? If you remove some code from it does it run?

-Chris

"Carl Perkins" <CarlPerkins@discussions.microsoft.com> wrote in message
news:FCD5B81B-8232-44A7-B813-0D57828A5C38@microsoft.com...
> More info! It has NOTHING to do with System.Convert or Parse() or
> anything
> else.
> I put a string xyz = "aaa"; before the system.convert and the string
> command
> debugged out!
> It is something esoteric not related to the actual instruction identified.
> Geeeeeeeeeeez!
> Has anyone encountered this?
> It happens right after the InitializeComponent(); is executed.
>
> "Carl Perkins" wrote:
>
>> I built an application that works 100% ok when I run it in debug mode but
>> with CTRL-F5.
>> I changed to deploy and get the System.NotSupportedException message.
>> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
>> Here is a partial piece of code:
>>
>> using System;
>> using System.Drawing;
>> using System.Windows.Forms;
>> using System.Data;
>> using System.Data.SqlServerCe;
>> using System.Text.RegularExpressions;
>>
>> namespace NJ5J_CarLog_PocketPC
>> {
>> public class formCarLog : System.Windows.Forms.Form
>> {
>> public string wrkMaximumMileageStart = "9999991.0";
>> public string wrkMaximumMileageEnd = "9999999.9";
>> public decimal maximumMileageStart = 0;
>> public decimal maximumMileageEnd = 0;
>> public formCarLog()
>> {
>> InitializeComponent();
>> maximumMileageStart =
>> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
>>
>> The last instruction above is what gives the exception. I found another
>> solution on this newsgroup and tried Parse() but it also gives the
>> exception.
>> Is there a namespace I am omitting? The MSDN help shows that this is
>> supported in the .Net Compact Framework.
>> Thanks in advance,
>> Carl Perkins



Relevant Pages

  • Axis2 vs. multirefs
    ... I'm trying to parse following SOAP response from a service: ... Exception in thread "main" java.lang.RuntimeException: ... Seems like Axis2 can't parse multirefs properly, ... handle multirefs but it is used on the server side and set in service ...
    (comp.lang.java.programmer)
  • Re: catch UnicodeDecodeError
    ... exception, then the exception did not originate from the place where you ... because of one single character in one single file. ... When I read and parse a directory with such different ... will not exit with any hint as to where the error occurred. ...
    (comp.lang.python)
  • Re: Exception handling?
    ... I have no data on .NET exception handling. ... would have applied a Parse operation to something vastly more complex than ... what does it matter if you are parsing ints or scripts? ... If I am parsing integers, I might need to parse millions of them; if I am parsing scripts, ...
    (microsoft.public.vc.mfc)
  • UnicodeEncodeError - a bit out of my element...
    ... I'm trying to parse an email message, ... exception. ... Traceback: ...
    (comp.lang.python)
  • openSAML
    ... I am using openSAML in a servlet and try to parse the request body with the SAMLRequest class, however I am always getting an exception ). ... Now after having done a short visit to openSAML's mailing list I believe I had the wrong understanding of openSAML parsing the entire SOAP message, while it only parses the SAML part. ...
    (comp.lang.java.programmer)