Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

Problems Connecting to COM in WebService

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Flynn Arrowstarr - 02 May 2005 00:05 GMT
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.
erymuzuan - 02 May 2005 02:38 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.