Click here to Skip to main content
13,189,506 members (50,647 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Here is my code:
SHDocVw.InternetExplorer ie= new SHDocVw.InternetExplorer();
mshtml.HTMLDocument doc = (mshtml.HTMLDocument)ie.Document;
mshtml.IHTMLWindow2 win = doc.parentWindow as mshtml.IHTMLWindow2;
win.execScript("insertUnit($('#unit_input_light')," + 1000+ ")", "javascript");

On my PC(windows 7) is working but on another PC (with win XP) using an administrator user throw this error:

at mshtml.IHTMLWindow2.execScript(String code, String language)
at Farmator.Form1.trimiteAtac(Int32 s1, Int32 s2)
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Why should i do to fix this ?
Posted 11-Dec-12 4:22am
Eli Huang 24-Nov-15 6:33am
This funtion havn't error code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171016.2 | Last Updated 11 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100