将我的自托管 WCF 服务从 3.5 升级到 4.0 减慢了系统启动时服务的启动速度
在我的 winform 应用程序中,我实现了只能在 LAN 上访问的自托管 WCF 服务。
以前我的应用程序是框架 3.5,现在 我已经迁移到4.0了。
我的应用程序在 Windows 启动时启动,之前它运行良好。
从3.5迁移到4.0之后。开始大约需要 1.5 分钟。
你们中的任何人对这种烦人的延迟有什么想法吗?
问候, 镍丁
In My winform application I have implemented self hosted WCF service accessible only on LAN.
Previously my app was in framework 3.5, now
I have migrated to 4.0.
My application is ment to start on windows startup, and previously it was working fine.
After the migration from 3.5 to 4.0. It has started taking around 1.5 minutes to strart.
Do any of you have any Idea about this annoying delay.
Regards,
Nitin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
多年来,我发现了许多 WCF 服务加载时间方面的问题。我给您的建议是在本地工作站上运行 3.5 版本,您可以使用 Windows Process Monitor 进行监控,然后对 4.0 版本执行相同的操作并比较差异。我看到了从调试设置(导致动态代理创建和编译)到 .NET 框架冲突的差异。请发布您在 Process Monitor 中发现的内容,以便社区可以从您的经验中受益。
I've seen a bunch of issues with load times of WCF services over the years. My advice to you is to run the 3.5 version on a local workstation you can monitor with Windows Process Monitor and then do the same for the 4.0 version and compare the difference. I've seen differences from debug settings (which result in dynamic proxy creation and compilation) to .NET framework conflicts. Please post what you find with Process Monitor so that the community can benefit from your experience.