Need help!!!System.InvalidCastException: QueryInterface for interf

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I created a webservice to call a dll maded by vb6 . In my local computer, no
problem. But after I deployed to the other computers,I got the error.

Now my solution is to install the vs.net 2003 to the computer that the
webservice would install, make the interop dll again and compile, It words.
So stranger.


Why?

Server Error in '/WebService' Application.
--------------------------------------------------------------------------------

QueryInterface for interface VisualDll._clsConnector failed.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.InvalidCastException: QueryInterface for interface
VisualDll._clsConnector failed.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:


[InvalidCastException: QueryInterface for interface VisualDll._clsConnector
failed.]
VisualDll.clsConnectorClass.set_GetDataLocation(String ) +0
WebService1.Global.Application_Start(Object sender, EventArgs e)




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

.



Relevant Pages

  • RE: Underlying connection was closed
    ... Find following my complete exception and stack trace. ... I have written a simple HelloWorld Webservice ... Int32 msg, IntPtr wparam, IntPtr lparam) ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: How to force the program to continue after unhandled exception detection
    ... The webservice is pretty much used by the client app. ... I understand that the handler ... potential exception could be itself a design problem leading at least ... private void button1_Click{ ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Code design ideas?
    ... I implemented the following pattern in my webservice. ... Usually it is the Message of the Exception. ... severity levels: warning and error. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: The IListSource does not contain any data sources.
    ... The IListSource does not contain any data sources. ... Exception Details: System.Web.HttpException: The IListSource does not ... be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Intermittant Server Error reading an MS Access DB
    ... Chuck ... > Dim i As Integer ... >> exception can be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet)