I'm trying to open a word.doc in a web form using a Microsoft Web Browser control.
If I write a small project which simply executes the following line of code inside a script block in the HTML then it works fine... document.getElementById("BrowserControl").Navigate ("http://server/directory/filename.doc");
However if I add any more code above this line e.g. alert("hello"); I get the following error... 'Microsoft JScript runtime error: Permission denied’.
I've tried using <identity impersonate="true"/> in the web.config and enabling anonymous access... but to no avail. I do have all permissions on the server where the word.doc lives. Is this somethng to do with the asp.net security framework …?
Any help would be appreciated, cheers.