Groups | Blog | Home
all groups > dotnet interop > november 2006 >

dotnet interop : c# interop webservice


Sean McGinnis
11/9/2006 2:16:49 PM
[quoted text, click to view]

It does sound like a security problem. I've never tried it, but I would
guess the web service doesn't have permission. You could try changing
the identity of your AppPool to another account, restart IIS, and try it
again to see if it does make a difference.

Running IIS long term under an account that has higher permissions is
something you would need to think about before putting in to production.
Berger
11/9/2006 4:58:33 PM
Hello

I have a c# console application who generate a new excel file vie Interop.
All works fine.
Now I want to move the code in a c# webservice. When I try to build an
instance of the excel object I got an Access Denied exception. I think it is
a security config problem. But I don´t know how to fix it. Can anyone help
me.

regards

Björn

-------
Example code works fine in console but not in webservice:

Excel.Application excelApp = null;
//create excel process
try
{
excelApp = new Excel.ApplicationClass();
}
catch(Exception er)
{
throw new Exception("Can´t load excel: "+er.Message);
}

Berger
11/10/2006 3:44:10 PM
Hi

Thanks or your answer, with another appPool with higher permissions does it
work.
But I don´t like the idea of having a webservice with userrights.

What´s about the Component Services Snap-In in Windows?
Can´t I configure Excel permissions here?

regards

Björn

"Sean McGinnis" <smcginnis@NOSPAMcompellent.com> schrieb im Newsbeitrag
news:O2l79vDBHHA.2316@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button