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,
the adults of tomorrow won't be any fun.
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
> 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
[quoted text clipped - 14 lines]
> If we can't corrupt the youth of today,
> the adults of tomorrow won't be any fun.
Flynn Arrowstarr - 05 May 2005 22:12 GMT
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
> 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