Forum Moderators: open
using SHDocVw;
try
{
SHDocVw.InternetExplorerClass myie = new SHDocVw.InternetExplorerClass();
}
catch (Exception e1)
{
Response.Write (e1.Message);
}
This fails. I get an error Access is denied
And I don’t know why? This is a Web application
Basicaly because the SHDocVw interacts with the desktop you need to run it as the currently logged in user. THe dude at the bottom of the thread says that if you're running it as someone else or as a service, you'll get the Access Denied problem. To access a webpage, you could use the HttpWebRequest class.
-=casey=-