Forum Moderators: open

Message Too Old, No Replies

Access Deined using SHDocVw in ASP.NET

         

SEhunter

5:19 am on Mar 10, 2005 (gmt 0)

10+ Year Member



I have a problem with the new Fax program. (the very first line)

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

CaseyRyan

3:29 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



I found this thread [error-bank.com] pertaining to the SHDocVw object and access denied.

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=-