ScintillaNet Configuration problem with Configuration.getcolor() function.

Topics: Developer Forum, User Forum
Aug 2, 2010 at 6:02 AM
Edited Aug 2, 2010 at 8:31 AM

Hi, I am getting this exception on Windows 7 (32 Bit) machine related to ScintillaNet editor.    But  ScintillaNet editor is working fine on Windows XP machine.

System.Exception:  is not a valid value for Int32.  Getting exception on TypeConverter.ConvertFromString(String text) under the ScintillaNet.Configuration.Configuration.getColor(String s) function.

Please suggest or give any reference to find out the solution of this issue.

Thanks & Regards,

Vinit Kumar

Aug 3, 2010 at 4:12 PM

Sounds like you have a "" value in your config somewhere. If declared, color attributes (ForeColor, BackColor) should have values otherwise leave the entire attribute out. The behavior you see (thrown Exception) should be the same across Windows Versions.

Aug 4, 2010 at 5:49 AM

Hi Chris,

Thank u so much for reply.

You are right. There is one xml name as " default.xml " which is having color attributes (ForeColor, BackColor).

But all atributes in this xml file is having the value. One think i want to ask.  In this "default.xml"  file all atributes related to color is having color value in the string format like "red" , "Green" , "Orange" etc  like this <Style Name="ATTRIBUTE" ForeColor="Red" />.  And these attributes are having only ForeColor attribute, not "BackColor" attribute.

But only one attribute is having color value like this <Style Name="STRINGEOL" ForeColor="Red" BackColor="#ffaaa" EolFilled="True"/>. In this Element both attribute is present.

Is there any think related to this think. One important think i want to tell you. These ScintillaNet configuration setting are working on Windows XP machine and our Windows 7(32 bit ) machine also But this is not working on my client machine which is having Windows 7(32 bit) machine itself.

So, is there any think related to system configuration(color isnstalled or else) think.

Please suggest me and let me know if any other information you want.  Awaiting for response.

Thanks & Regards,

Vinit Kumar