Solved

interegating Excel - permissions problem

Posted on 2004-03-22
4
275 Views
Last Modified: 2008-02-01
Hi there,


Using ASP.NET and C#.
I'm having problems running the following line of code on my local machine

Excel app = new Excel.Application();

It's returning the following error:

The server process could not be started because the configured identity is incorrect. Check the username and password.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The server process could not be started because the configured identity is incorrect. Check the username and password

I presume it's using the ASPNET account ?   I've tried to give it permissions to the com object but still no joy.

Any ideas?
0
Comment
Question by:xloop
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:DaniPro
ID: 10647934
For default the ASP.NET user hasn't the right for execute application (it's managed from Framework .NET).
You can see this link for more details of the .NET security
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/thcmch06.asp
0
 
LVL 1

Author Comment

by:xloop
ID: 10647995
Excuse my ignorance but how do i give execute permission????

I've read the link above but it still doesn't give much away.
0
 
LVL 6

Accepted Solution

by:
DaniPro earned 500 total points
ID: 10648048
0
 
LVL 1

Author Comment

by:xloop
ID: 10648092
Right..............still not exactly sure how to do it...........

????
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now