Nate Bross Posted November 17, 2006 Posted November 17, 2006 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. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Administrators PlausiblyDamp Posted November 17, 2006 Administrators Posted November 17, 2006 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.