BrightAuthor presentation files (.bpf files) created on one computer may fail to open on another computer due to the language that the operating system is set to. Verify the operating systems on both computers are set to the same language, change the language to English temporarily, then try to open the presentation file in BrightAuthor. For example:
Action
You attempt to cast a numeric string to a numeric data type, using code similar to the following:
Dim strInput As String = "10"
Dim intResult As Integer = 0
Try
intResult = Convert.ToInt16(strInput)
Catch ex As Exception
MessageBox.Show("Error: " & ex.Message)
End Try
Result
You receive a System.FormatException with "Input string was not in a correct format" and this stack trace:
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt16(String value)
at TypeConversionTest.Form1.cmdConvert_Click(Object sender, EventArgs e) in C:\Source\TypeConversionTest\TypeConversionTest\Form1.vb:line 7
Cause
There is an incorrect value in the following value in the Windows registry:
HKEY_CURRENT_USER\Control Panel\International\sPositiveSign
This value should be empty for most English Language settings. Note that when this error occurs, the value may appear empty visually, but may contain a space or unprintable character.
Resolution
While it is possible to directly edit the value for the problem key, the preferred method is to change the Regional Settings to a different Region/Language and then reset it to the desired setting:
Open the Regional and Language Options applet from the Control Panel.
Note the Current Format.
Change the Current Format to "English (Australian)".
Click Apply.
Change the Current Format to the desired format (for example, "English (American)").
Click Apply and then click OK.
This action resets every value under the HKEY_CURRENT_USER\Control Panel\International
registry key.