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.


Si-cloneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.