468,256 Members | 1,458 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,256 developers. It's quick & easy.

Excel in WindowsForms: Access Denied

I am trying to open an Excel file from a C# Windows Forms application.

On the statement:
ExcelObj = new Excel.Application();
I get an "Access is Denied" error (System.UnauthorizedAccessException).

The curious thing is that this error occurs only on my home computer, but
not on my office computer where the application runs without problems. The
two computers are practically identical, both with Windows XP Pro. Clearly
there is something in my home computer that causes this error, but what can
it be?

Thanks for any help.
Ariel
--
==================================================
Ariel Dolan
ar******@netvision.net.il

Artificial Life and other Experiments
http://www.aridolan.com
==================================================
May 3 '06 #1
1 1096
Check the Launch and Activation permissions for the Excel COM controls in
dcomcnfg: http://www.devcity.net/Articles/239/2/article.aspx

-- scott
"Ariel Dolan" wrote:
I am trying to open an Excel file from a C# Windows Forms application.

On the statement:
ExcelObj = new Excel.Application();
I get an "Access is Denied" error (System.UnauthorizedAccessException).

The curious thing is that this error occurs only on my home computer, but
not on my office computer where the application runs without problems. The
two computers are practically identical, both with Windows XP Pro. Clearly
there is something in my home computer that causes this error, but what can
it be?

Thanks for any help.
Ariel
--
==================================================
Ariel Dolan
ar******@netvision.net.il

Artificial Life and other Experiments
http://www.aridolan.com
==================================================
Jul 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by sk | last post: by
2 posts views Thread by Ryan Ternier | last post: by
8 posts views Thread by jack | last post: by
12 posts views Thread by D. Shane Fowlkes | last post: by
reply views Thread by =?Utf-8?B?TW9udGU=?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.