Solved

interegating Excel - permissions problem

Posted on 2004-03-22
4
263 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

759 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