Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Here is my code:
C#
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
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900