Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Service Cannot create ActiveX component

Status
Not open for further replies.

hyugo

Technical User
Jul 20, 2004
7
US
I'm learning to program web services while I'm try to create a web service project. I trying to control an appliction running on the server if it is running when the webmethod is called. I use GetObject() to get the application and I get the error:

Server was unable to process request. --> Cannot create ActiveX component.

I know the application is open already, so does anyone know if it is not possible to use the GetObject() call in a web service?
 
What are you trying to do to the application that is running? I'm guessing you'll want to use the System.Diagnostics.Process.GetProcessesByName but you'll need to answer my question first.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
I'm trying to use the application. Right now it's excel, so I want to get the current running application and then be able to edit the workbook and worksheets. This will be used later with programs other than excel, but for now that's what it's trying to get.
 
Is there a reason you need to use that particular instance of Excel that is running? Can't you just use the Excel object library, open a file and perform any logic needed?


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top