ASP.NET 2.0 calling a COM object

Q

Queue

Hi,

I have a ASP.NET 2.0 application running on IIS 6. The application pool
associated with the application is running under the "Network Service"
account.

Within the app, a COM object is instantiated and used. Within this COM
object access to a file share on the same server is needed, but it cannot be
accessed. I have tried including the "Network Service" account in the
Administrator group (just for testing), but no results.

Any suggestions?

Regards,
 
M

MikeS

Maybe the Network Service account aka the MACHINE$ account will need
rights to the share set up on whichever server the share is set up.
 
Q

Queue

Mike,

The share resides on the same server as the ASP.NET application, but due to
configuration purposes I have to use the share. However, the account has
sufficient rights on both the share and the NTFS file system.

Regards
 
M

MikeS

OK, I see, so for however you have it set up in IIS with IWA or
anonymous and in web.config with impersonation or not, I assume you are
getting a path/file access error?

Whatever System.Security.Principal.WindowsIdentity.GetCurrent.Name
returns should have change permission on the share and write permission
on the directory as well as exec on the COM dll.

That works for me here.

If it is a file permissions problem, filemon from sysinternals.com will
show the access denieds.
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top