Need Help! System.UnauthorizedAccessException: Access is denied.

J

Joseph Burton

I'm trying to create a com object to visio using the visio type library 11.0.

appVisio = Server.CreateObject("Visio.invisibleapp")

When the program hits this line I get the error message:
'System.UnauthorizedAccessException: Access is denied. '

The same code works fine for the desktop application.

I have set up access permissions for the visio app, the root folder, and in
IIS 5,
and I still can't figure out what to do.
It's just trying to get this to work under asp.net is a pain.

Can someone help?
 
J

Joseph Burton

Ok, I did some reading and decided to impersonate the login user that logs in
on the machine.
I added this line in the web.config file:
<identity impersonate="true" userName="" password=""/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top