套接字连接失败
我正在网络将一些代码从我的测试器 winforms 应用程序集成到 wpf 应用程序。该代码涉及从我的应用程序调用连接函数(它将连接到不同的网络)。该对象包含连接例程,位于我使用 regsvr32 注册的 COM 组件内。问题是 wpf 代码的连接失败,同一行代码在我的测试器应用程序中运行正常,没有任何缺陷。我尝试在测试器应用程序中替换 wpf 应用程序的 app.config,以确认由于配置文件内的任何冲突而不会发生问题。测试应用程序仍然运行良好。我检查了事件查看器并提供了以下信息。
我检查了参数,一切都正确通过。
事件 ID 10049 的描述 从源头 ComConnect::ConnectToServer 不能 成立。要么是组件 引发此事件未安装在 您的本地计算机或 安装已损坏。你可以 安装或修理该组件 本地计算机。
如果事件源自另一个 电脑上,显示信息有 与事件一起保存。
包含以下信息 与事件:
套接字打开失败 10049 7U 10211, 入口点
有人可以帮我调试这个问题吗?
提前致谢。
I am network integrating some code from my tester winforms applications to wpf application. The code involves calling an Connection function(which will connect to a different network) from my application. The object houses the connection routines is inside a COM component which i registered using regsvr32. The problem is that the Connection is failing from the wpf code, the same line of code is working without any flaw in my tester app. I tried replacing the app.config of my wpf application in the tester app to confirm the problem is not happening because of any conflict inside the config file. Still the testing application worked perfectly. I checked the event viewer and following information was available.
I checked the params and everything is passed correct.
The description for Event ID 10049
from source
ComConnect::ConnectToServer cannot be
found. Either the component that
raises this event is not installed on
your local computer or the
installation is corrupted. You can
install or repair the component on the
local computer.If the event originated on another
computer, the display information had
to be saved with the event.The following information was included
with the event:Socket Open Failed 10049 7U 10211,
Entry Point
Can somebody help me debugging the issue?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否正在尝试连接到外部网络?也许防火墙阻止了连接。
Are you trying to connect to external network? Maybe the firewall is blocking the connection.