Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 644
  • Last Modified:

C# AxWebBrowser and Java

Hello,

I have an AxWebBrowser in a C# project and I am having a little difficulty with a Java applet.

If I visit the site (for example) liftoff.msfc.nasa.gov/realtime/jtrack/spacecraft.html, it attempts to run an applet and I get a security warning.

I would simply like to disable Java, or catch this security warning programatically and dismiss it.

The same for other plugins (Flash etc).

Appreciate any help.


0
Si-clone
Asked:
Si-clone
  • 4
  • 4
  • 2
2 Solutions
 
Chester_M_RagelCommented:
0
 
armoghanCommented:
Hi Si-clone,
Following is a link of IE clone in VB.NET. I pasted the url in it. you may have seen it earlier.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1953&lngWId=10

If you just Click yes on the warning it runs teh applet.
But if you still wnat to remove java and Flash from it.. You may need to lower the security from IE options


Cheers!
0
 
armoghanCommented:
i have tried running it with Silent=True on AxwebBrowser. but it does not work with me, probably it will work with @poster
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Chester_M_RagelCommented:
Hi armoghan,

For me, its not giving the worning when I use Silent = true which it gives when I use Silent = false.
0
 
armoghanCommented:
Have you tried the URL mentioned by the user i.e.
liftoff.msfc.nasa.gov/realtime/jtrack/spacecraft.html

I think it only hides Javascript windows, popups, not the JavaApplet Security Warning

0
 
Chester_M_RagelCommented:
To tell you the truth... I ONLY tried that one :)

Chester.
0
 
Si-cloneAuthor Commented:

Hello,

Thanks for all of you input.

The silent property does not assist me - I still get the Java prompt.

I found an article previously here: http://www.kbalertz.com/Feedback.aspx?kbNumber=329014 that outlines how to implement the IE Options dialog from within a C# application (much like the VB one offered by moghan above).  However, when I add the interface declarations, I get the following error when I try run my app:

(This occurs in InitializeComponent() )
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll

Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly.  Make sure "SB.resources" was correctly embedded or linked into assembly "SN".
baseName: SB  locationInfo: SN.SB  resource file name: SB.resources  assembly: SN, Version=1.0.1786.24616, Culture=neutral, PublicKeyToken=null.




I'm still looking at controlling this programatically.  Does anyone have any ideas about changing the IE security options through the registry?


0
 
Chester_M_RagelCommented:
This may be useful to you,

http://www.codeproject.com/csharp/webbrowser.asp

Chester
0
 
armoghanCommented:
You have to look into InternetSecurityManager object
This is a C++ example for changing settings of IE security.
http://www.codeguru.com/Cpp/I-N/ieprogram/displayinginformation/article.php/c8559/
0
 
Si-cloneAuthor Commented:
Hello,

None of the answers above helped with the original issue of being able to stop the Java error.  They have helped with subsequent issues.

Thanks to all
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now