Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

.Net 2.0 - WebBrowser control embedded in IE causes problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
L. Chernov - 16 Jul 2006 13:07 GMT
Hello,

I am trying to work with .Net 2005 WebBrowser object,
and put it on a "Windows control library" (embedded in a user control class)
and then I
am executing it from an ASP.Net webform(with IE6) with the following object
tag:
   <OBJECT id="ModPkiObj" height="550" width="800"
classid="http:ModPkiNew.dll#Mod.Online.Client.ModPkiNew.SignForm"
   name="ModPkiObj" VIEWASTEXT>
  </OBJECT>

And I get the following error:

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'WebBrowser'.
  at System.Windows.Forms.WebBrowser.get_AxIWebBrowser2()
  at System.Windows.Forms.WebBrowser.PerformNavigate2(Object& URL, Object&
flags, Object& targetFrameName, Object& postData, Object& headers)
  at System.Windows.Forms.WebBrowser.PerformNavigateHelper(String
urlString, Boolean newWindow, String targetFrameName, Byte[] postData,
String headers)
  at System.Windows.Forms.WebBrowser.Navigate(String urlString)
  at Mod.Online.Client.ModPkiNew.SignForm.button1_Click(Object sender,
EventArgs e)
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  at System.Windows.Forms.Button.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Remark: When using this control library class from a winform container I
dont get this bug.

Thank You
Alessandro Zifiglio - 18 Jul 2006 14:27 GMT
hi, I notice that you have embedded the object in your html source versus
via script. Try the suggestions in the following post :
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.webcontr
ols/browse_frm/thread/6d4649164c444cd3/55aa645f38887e76?lnk=st&q=windows+control
+in+.aspx+page&rnum=3&hl=en#55aa645f38887e76


Regards,
Alessandro Zifiglio
http://www.AsyncUI.net

> Hello,
>
[quoted text clipped - 41 lines]
>
> Thank You

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.