Jump to content
Xtreme .Net Talk

COMTI, Component Services, Invalid Cast Webservice VB HELP


Recommended Posts

Posted

I'm getting a System.InvalidCastException: Query Interface for interface CapacityPricing._Login failed.

 

CapacityPricing._Login is a TLB created through Microsoft Component Services.

 

This is running as a Web Service; however, when I run the EXACT same code as a WinForms application it works as I expect it to.

 

I'm using asp.net 1.1, I can post the code for the function if it'll help, but the same code does work as WinForms app, it just doesn't work when Invoked through the web browser as a WebService.

 

Thanks In Advance.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

  • Administrators
Posted

You might need to adjust the permissions on the component to allow the ASPNet account to access / create and instance of the component.

 

You should be able to do this through the component services mmc tool - can't remember exactly where and this machine doesn't have it installed.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...