Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

interegating Excel - permissions problem

Posted on 2004-03-22
4
Medium Priority
?
312 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 1500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

971 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