VG.net in Internet Explorer

Anything other than problems and feature requests.

Moderators: Frank Hileman, Anne Szyjan

VG.net in Internet Explorer

Postby Frank Hileman » Thu Feb 11, 2010 3:42 pm

It is possible to run a VG.net application in Internet Explorer, because this browser has the ability to download .net assemblies and host .net Controls. VG.net ships with a sample that does this. The object code is found in the VG.net Samples, WebControls folder. The source code is found in the Extras installation location.

Debugging such an application is not as easy as a normal windows forms application:

  • You must wait for an assembly to load, before you can attach a debugger. You cannot put breakpoints in start-up code, such as constructors.
  • Internet Explorer has an assembly cache that may mislead you into thinking you are running the latest version when you are running an older version. "gacutil.exe /cdl" will flush the download cache.
  • fuslogvw.exe will help you debug assembly loading.
  • Microsoft changed the default security policy between .net 1.1 and .net 2.0, requiring you to grant permissions to all needed assemblies on each client. This can be done with an installer.
  • You can connect back to the original server but you cannot easily connect to other servers, if you wish to download data dynamically.
The best way to proceed is to create a windows forms application hosting your control, and use that for most debugging.

More information:
http://blogs.msdn.com/andrewdownum/archive/tags/Control+in+Browser/default.aspx
http://blogs.msdn.com/andrewdownum/archive/2006/01/10/ControlInBrowserIntroduction.aspx
http://blogs.msdn.com/andrewdownum/archive/2006/02/10/Using_DebugIEHost.aspx
http://blogs.msdn.com/andrewdownum/archive/2006/02/10/AllowPartiallyTrustedCallers_StrongName.aspx
http://windowsclient.net/articles/iesourcing.aspx
http://msdn.microsoft.com/en-us/library/ms951290.aspx
http://msdn.microsoft.com/en-us/magazine/cc301790.aspx
http://www.15seconds.com/Issue/030610.htm
http://www.mastercsharp.com/article.aspx?ArticleID=70&&TopicID=14
User avatar
Frank Hileman
Site Admin
 
Posts: 1399
Joined: Sun Jul 25, 2004 8:16 pm
Location: California

Return to General

Who is online

Users browsing this forum: No registered users and 3 guests

cron