none
opc 80040202 错误 RRS feed

答案

  • This error is returned to the client application from the Windows Operating System. A search of the Microsoft knowledge base indicates that error code 0x80040202 is a CONNECT_E_CANNOTCONNECT error. The CONNECT_E_CANNOTCONNECT error is returned when the server calls the IConnectionPoint::Advise (Server) method and fails. The knowledge base indicates that this can happen when the Common file OPCProxy.dll is out of Sync with other files that are dependent upon it or that it is dependent upon. This can happen if you update the server and the  update fails. You can also see this error if you install another OPC application and it changes one but not all of the files used. The best solution is to rerun the latest KEPServerEX install and it should re-sync those files. Ultimately you could  delete the OPCproxy.dll and OPCcomn_ps.dll files and re-run the install so that our files are placed there. If you choose to delete  and replace the files it is possible that this could effect other applications. For more information on this error please refer to Microsoft Knowledge Base Article - 183216.
    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
    2011年5月25日 1:55
    版主
  • Hi nihaobey,

    这个错误是由操作系统传给客户应用程序的。它是一个CONNECT_E_CANNOTCONNECT 错误,

    当服务器调用the IConnectionPoint::Advise (Server)方法失败时就会返回这个错误。

    OPCProxy.dll 与其他它所依赖的或依赖于它的文件不同步的时候就会产生这个错误。

    当你更新服务器失败时也会产生这个错误。

    如果你安装其他的OPC应用程序并改变了其中一个文件,也会报这个错误。

    解决办法:

    1.       安装最新的KEPServerEX ,并重新运行,这样它会重新同步所有需要的文件。

    2.       最后您可以删除OPCproxy.dll OPCcomn_ps.dll 文件,并重新安装运行。

    相关问题的帖子:

    http://www.codeproject.com/Messages/3446005/IConnectionPoint-Advise-Return-with-error-code-0x8.aspx

     

    Lucy


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2011年5月26日 4:18
    版主

全部回复

  • This error is returned to the client application from the Windows Operating System. A search of the Microsoft knowledge base indicates that error code 0x80040202 is a CONNECT_E_CANNOTCONNECT error. The CONNECT_E_CANNOTCONNECT error is returned when the server calls the IConnectionPoint::Advise (Server) method and fails. The knowledge base indicates that this can happen when the Common file OPCProxy.dll is out of Sync with other files that are dependent upon it or that it is dependent upon. This can happen if you update the server and the  update fails. You can also see this error if you install another OPC application and it changes one but not all of the files used. The best solution is to rerun the latest KEPServerEX install and it should re-sync those files. Ultimately you could  delete the OPCproxy.dll and OPCcomn_ps.dll files and re-run the install so that our files are placed there. If you choose to delete  and replace the files it is possible that this could effect other applications. For more information on this error please refer to Microsoft Knowledge Base Article - 183216.
    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
    2011年5月25日 1:55
    版主
  • Hi nihaobey,

    这个错误是由操作系统传给客户应用程序的。它是一个CONNECT_E_CANNOTCONNECT 错误,

    当服务器调用the IConnectionPoint::Advise (Server)方法失败时就会返回这个错误。

    OPCProxy.dll 与其他它所依赖的或依赖于它的文件不同步的时候就会产生这个错误。

    当你更新服务器失败时也会产生这个错误。

    如果你安装其他的OPC应用程序并改变了其中一个文件,也会报这个错误。

    解决办法:

    1.       安装最新的KEPServerEX ,并重新运行,这样它会重新同步所有需要的文件。

    2.       最后您可以删除OPCproxy.dll OPCcomn_ps.dll 文件,并重新安装运行。

    相关问题的帖子:

    http://www.codeproject.com/Messages/3446005/IConnectionPoint-Advise-Return-with-error-code-0x8.aspx

     

    Lucy


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2011年5月26日 4:18
    版主