Skip to main content

Microsoft Silverlight

calling COM component from WebServiceRSS Feed

(0)

geetanjali
geetanjali

Member

Member

52 points

32 Posts

calling COM component from WebService

Hi,

can anybody tell me the procedure of calling COM component from WebService.i tried by creating a proxy, but it is displaying the message SOAP exception, any idea whts the problem????

y_makram
y_makram

Contributor

Contributor

6172 points

1,233 Posts

Re: calling COM component from WebService

Can you provide more explanation,  What is the SOAP exception? Is the web service at the same domain as your silverlight application or in another domain?

Thanks
Yasser Makram
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.

geetanjali
geetanjali

Member

Member

52 points

32 Posts

Re: Re: calling COM component from WebService

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {A81CDE91-0F79-11D3-939E-004033E0AB6A} failed due to the following error: 80070005.
  at WebService1.Service1.HelloWorld() in c:\inetpub\servicecom6\WebService1\Service1.asmx.cs:line 42
  --- End of inner exception stack trace ---

this is the error message i m getting, Actually, i was able to call webservice from SL Project, that web service was just returning HelloWorld Message, but when i included a COM component call in this web service, i got this error, i created a proxy for the COM component also n tried to call the COM interfaces through this proxy..

thanx.

y_makram
y_makram

Contributor

Contributor

6172 points

1,233 Posts

Re: Re: calling COM component from WebService

This error indicates that ASP .NET does not have the priviliges to access this resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6)

Thanks
Yasser Makram
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.

y_makram
y_makram

Contributor

Contributor

6172 points

1,233 Posts

Re: Re: calling COM component from WebService

And here is a link to an ASP.NET forum thread that discusses this issue

http://forums.asp.net/p/992028/1291146.aspx 

Thanks
Yasser Makram
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities