Solved

interegating Excel - permissions problem

Posted on 2004-03-22
4
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

615 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