Bug 22175 - Unable to draw WebBrowser on form with mwf-designer
Summary: Unable to draw WebBrowser on form with mwf-designer
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: master
Hardware: PC Linux
: --- normal
Target Milestone: Community
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-18 13:52 UTC by Arsen.Shnurkov
Modified: 2017-09-01 11:56 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 22175 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Arsen.Shnurkov 2014-08-18 13:52:52 UTC
steps to reproduce
1) run mwf-designer
2) create new form
3) place WebBroser control on it
... designer crashes

the error is in line 
https://github.com/mono/mono/blob/master/mcs/class/System.Design/System.Windows.Forms.Design/ControlDesigner.cs#L68

because
https://github.com/mono/mono/blob/master/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs#L157

stack trace:

user@machine:~/github.com/mono/mwf-designer$ make run
cp deps/*.dll build
cp deps/*.mdb build || true
mono --debug build/mwf-designer.exe
LoadFile: /home/user/github.com/arsenshnurkov/myformtest/form1.cs
System.NotSupportedException: Operation is not supported.
  at System.Windows.Forms.WebBrowserBase.set_Text (System.String value) [0x00000] in /home/user/github.com/mono/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs:157 
  at System.Windows.Forms.Design.ControlDesigner.Initialize (IComponent component) [0x0001d] in /home/user/github.com/mono/mono/mcs/class/System.Design/System.Windows.Forms.Design/ControlDesigner.cs:68 
  at System.ComponentModel.Design.DesignerHost.AddPostProcess (IComponent component, System.String name) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.Design.DesignerHost.Add (IComponent component, System.String name) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.Design.DesignerHost.CreateComponent (System.Type componentClass, System.String name) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.Design.DesignerHost.CreateComponent (System.Type componentClass) [0x00000] in <filename unknown>:0 
  at System.Drawing.Design.ToolboxItem.CreateComponentsCore (IDesignerHost host) [0x00000] in <filename unknown>:0 
  at System.Drawing.Design.ToolboxItem.CreateComponents (IDesignerHost host) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.ParentControlDesigner.CreateToolCore (System.Drawing.Design.ToolboxItem tool, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.ParentControlDesigner.OnMouseDragEnd (Boolean cancel) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.ControlDesigner.OnMouseUp () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.ParentControlDesigner.OnMouseUp () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.ControlDesigner.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.ScrollableControlDesigner.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.DocumentDesigner.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.FormDocumentDesigner.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.ControlDesigner.System.Windows.Forms.Design.IMessageReceiver.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Design.WndProcRouter.System.Windows.Forms.IWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in /home/wiwar/github.com/mono/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:209 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00085] in /home/user/github.com/mono/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:240 

error was first seen in 2006 
http://d.hatena.ne.jp/Kazzz/20060518
and still here