all groups > dotnet web services > may 2005 >
You're in the

dotnet web services

group:

Problems Connecting to COM in WebService



Re: Problems Connecting to COM in WebService erymuzuan
5/1/2005 12:00:00 AM
dotnet web services: Basically you have to do impersonation, thus the application must run
with a credential that have the access to the COM, on IIS 5 you'll need
to modified to <impersonation> element while on IIS 6 just use diferrent
app pool.

BTW , a better approach is to run the component is a seperate process
and use remoting from your web service to call the component

regards
erymuzuan mustapa

[quoted text, click to view]
Problems Connecting to COM in WebService Flynn Arrowstarr
5/1/2005 4:05:01 PM
I'm trying to connect to the iTunes COM library through a web service. I have
created a basic web service that returns the HelloWorld item correctly, but
when I try to create an instance of the COM interop for iTunes, I get an
UnauthorizedAccessException error. From what I can tell, this seems to be a
problem in IIS security, however even adding the ASPNET user account to
Administrator doesn't allow the instance to be created.

What could I be missing? I've been working on this problem for awhile, and
there doesn't seem to be a lot of information on the internet or in the
couple of books I have. =(

Thanks for any help you can provide.

Flynn

---------------
If we can't corrupt the youth of today,
Re: Problems Connecting to COM in WebService Flynn Arrowstarr
5/5/2005 2:12:04 PM
Hi, erymuzuan.

So, if I'm understanding correctly, it should work if I have a formless
desktop application that handles the connection to iTunes. The formless app
periodically checks a command stack on the web service to see if there's
anything it needs to process. The app would then return the requested
information back through the web service to the consuming application.

Sort of like this:

iTunes <-> formless app <-> web service <-> app consuming webservice

Correct? =)

Flynn

[quoted text, click to view]
AddThis Social Bookmark Button