Re: Web service in .net not able to create Excel com object
From: Joe H (jharri_at_hotmail.com)
Date: 04/18/04
- Previous message: David: "webexception 404"
- In reply to: Nalina Vemparala via .NET 247: "Web service in .net not able to create Excel com object"
- Next in thread: Dino Chiesa [Microsoft]: "Re: Web service in .net not able to create Excel com object"
- Reply: Dino Chiesa [Microsoft]: "Re: Web service in .net not able to create Excel com object"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 18 Apr 2004 09:22:56 -0500
the asp.net process runs under a special user. that user will not by
default have rights to resources outside the scope of the web service.
imagine what would happen if a web service could call ANY code on your
server. there are many ways to approach this depending on your environment
and what it is that you are trying to achieve. but at the most basic level,
you need to give the aspnet user the rights to launch excel.
"Nalina Vemparala via .NET 247" <anonymous@dotnet247.com> wrote in message
news:#tvUZyMJEHA.1192@TK2MSFTNGP11.phx.gbl...
> (Type your message here)
> Hi!
> I created a web service in .net where in the web method makes call to a
function in which I am creating an excel object using
> Dim objXl As New Microsoft.Office.Interop.Excel.Application()
> objXl.Workbooks.Open("C:\C\Test.xls")
> objXl.Visible = True
> However, I am getting the error Access denied, Cannot create Activex
component.
> The same code works in a ASP page and also in .net windows application.
> But if I access this code through web service I get the error Access
denied, Cannot create Activex component.
> I checked the permissions etc for this web service project
> Could anyone please help me please.
> --------------------------------
> From: Nalina Vemparala
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>K4FlI6gD5EyFFDUQg55O5g==</Id>
- Previous message: David: "webexception 404"
- In reply to: Nalina Vemparala via .NET 247: "Web service in .net not able to create Excel com object"
- Next in thread: Dino Chiesa [Microsoft]: "Re: Web service in .net not able to create Excel com object"
- Reply: Dino Chiesa [Microsoft]: "Re: Web service in .net not able to create Excel com object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|