all groups > asp.net building controls > may 2004 >
You're in the

asp.net building controls

group:

InvalidCastException: QueryInterface for interface



InvalidCastException: QueryInterface for interface ton
5/31/2004 1:29:03 PM
asp.net building controls: Hi,
when modifying my customserver control, I did not look at it for more then 2
weeks, I received an error:

InvalidCastException: QueryInterface for interface ..... The interface was
my COM object dbRecord.DLL, the method was a logon, but I receive the same
errors with other simpler methods (like get a text from a resource file).

Does this looks familair.

The only thing I did was uninstall the components and install the latest
version of my wndows program (with the dbRecord.DLL com object).
When I reference the object in a VB.NET forms application I do not receive
the error

Does anyone has an idea.

Ton




Re: InvalidCastException: QueryInterface for interface Natty Gur
5/31/2004 10:09:18 PM
Ton hi,

usually if you can access COM object from winform and not from webform
its security issue. ASP.NET default user doesn't have rights to activate
COM objects. Consult the following link to find out how to workaround
this issue:
http://www.tek-tips.com/gfaqs.cfm/lev2/4/lev3/31/pid/855/fid/4460

HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button