[Mono-winforms-list] Exception while creating WebBrowser URI
Tripathi, Prakash
prakash.tripathi at hp.com
Fri Jan 23 15:05:55 EST 2009
Hello,
In my C# application on Linux, I am creating a WebBrowser and when I create a URL for that WebBrowser assigning it a local HTML file, it crashes -
.
.
Try
{
.
.
webBrowser1.url = new Uri(Application.StartupPath + @"/test.htm");
.
.
Catch(Exception e)
{
MessageBox.Show(e.ToString());
}
but the program crashes with the given stack trace -
Could not set X locale modifiers
Stacktrace:
at (wrapper managed-to-native) Mono.Mozilla.Base.gluezilla_getWebNavigation (intptr) <0x00004>
at (wrapper managed-to-native) Mono.Mozilla.Base.gluezilla_getWebNavigation (intptr) <0xffffffff>
at Mono.Mozilla.Base.GetWebNavigation (Mono.WebBrowser.IWebBrowser) [0x00013] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Mono.WebBrowser/Mono.Mozilla/Base.cs:208
at Mono.Mozilla.WebBrowser.get_Navigation () [0x0000b] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Mono.WebBrowser/Mono.Mozilla/WebBrowser.cs:112
at System.Windows.Forms.WebBrowser.Navigate (System.Uri) [0x0000e] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:285
at System.Windows.Forms.WebBrowser.set_Url (System.Uri) [0x00000] in /home/sseva_Om/MONO/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:213
at (wrapper remoting-invoke-with-check) System.Windows.Forms.WebBrowser.set_Url (System.Uri) <0xffffffff>
at MForm..ctor () <0x003be>
at (wrapper remoting-invoke-with-check) MForm..ctor () <0xffffffff>
at MApplication.Main () <0x00018>
at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
Detailed Stack Trace Report is attached with the mail.
I just want to know whether It is the correct way to create URI or Am I missing anything?
Thanks,
Om..
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: monotestLog.txt
Url: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090123/18955246/attachment.txt
More information about the Mono-winforms-list
mailing list