By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,960 Members | 990 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,960 IT Pros & Developers. It's quick & easy.

Excel Automation in C#....getting "Access Denied" error

P: n/a
Hello. I'm trying to automate Excel in a C# Windows Service. This windows
service has to be able to access files on network shares, so it uses a
domain account on a WinNT 4.0 domain server, rather than the Local Service
or Network Service, or System account. I'm running into a problem, though,
with trying to instantiate Excel. When I execute the following:

using Excel = Microsoft.Office.Interop.Excel;
using Microsoft.Office.Core;

// .....

// Instantiate excel object
Excel.Application myExcel = new Excel.Application();

I recieve an excetion with the message "Access Denied.". I'm assuming this
is due to the fact that I am using a network domain account, rather than a
local system account. I do not, however, know how to solve the problem, or
where to look to find help solving it. Any ideas?
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.