'转换类型的对象'错误 - 通过 IIS 回收解决

发布于 2024-09-18 12:51:30 字数 279 浏览 3 评论 0原文

安装了第 3 方 ASP.Net 网站和 Web 服务。该代码似乎不会将错误记录到服务器日志或自定义错误日志中。

用户收到以下严重的未捕获错误消息:

“System.Web.Services.Protocols.SoapException:无法将类型为“System.Security.Principal.WindowsIdentity”的对象转换为类型为“Library.Security.Identity”。位于...。 ”

当然,我理解类型转换问题,但为什么 IIS 回收会解决该问题呢?

3rd party ASP.Net web site and web service installed. The code appears not to log errors to server log or custom error log.

User receives the following critical untrapped error message:

"System.Web.Services.Protocols.SoapException: Unable to cast object of type 'System.Security.Principal.WindowsIdentity' to type 'Library.Security.Identity'. at ....."

Of course I understand the type cast issue but why would a IIS recycle resolve the issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜雨飘雪 2024-09-25 12:51:30

软件提供商提供了解决方案 - 没有给出任何解释,但 @Aristos 和我自己的假设仍然成立。

Software provider, provided solution - no explanation given but assumption held by @Aristos and myself still stand.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文