Hello:

I am writing an ASP.NET app that uses an existing com dlls.I have used
tlbimp to create the wrapper and things are going fine when I use the
component from any .NET app. the problem happens only when I try to access
the component from a web service or from ASP.NET pages. The component is
marked as STA, so I had to use STAThread attribute in other apps. For the
ASP.NET page, I added the compatibility attribute aspcompat=true (to force
the page to execute in STA mode), and configured the security access
permissions (I think) correctly. The intersting thing is that I can
instantiate the objets without errors, but once I start invoking methods,
a System.InvalidCastException is thrown indicating �QueryInterface for
interface myDll.IFooInterface failed.� I found some postings with the same
problem but unfortunately no answer. I hope someone can help solving this
problem.

Thanks

Reply via email to