Mono C# Web 服务

发布于 2024-07-30 14:44:39 字数 590 浏览 1 评论 0原文

我的 Web 服务在正常托管时运行良好,但在 Mono 中,我第一次尝试运行它时收到 500 内部服务器错误。

知道为什么它不起作用吗?

远程服务器返回错误:(500) 内部服务器错误。 System.Web.Services.Protocols.SoapException:写入请求时出错。 在 MY_WebServices.My_Messages.DownloadNewMessages (System.String ID, System.String 用户名,System.String 密码)[0x00000] at(包装器托管到本机)System.Reflection.MonoMethod:InternalInvoke (object,object[]) 在 System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder 绑定器,System.Object[] 参数, System.Globalization.CultureInfo 文化)[0x00000]

I have web services that work great when hosted normally, in Mono I am getting a 500 internal server error first time I tried to run it.

Any idea why it doesn't just work?

The remote server returned an error: (500) Internal Server Error.
System.Web.Services.Protocols.SoapException: Error writing request.
at MY_WebServices.My_Messages.DownloadNewMessages (System.String ID, System.String
username, System.String password) [0x00000]
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000]

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

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

发布评论

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

评论(2

清醇 2024-08-06 14:44:39

请发布您收到的错误? 可能的是,您正在使用 Mono 尚不支持的接口,.NET 2.0 框架的 SP2 版本中有几个接口,专门用于支持 IIS 7。

您也可能想尝试运行通过 MoMA 生成的程序集,以检查迁移问题。

Please post the error that you are receiving? Possibilities are that you are using an interface that isn't yet supported in Mono, which there are a couple in the SP2 release of the .NET 2.0 framework, that were specifically put in to support IIS 7.

You also might want to trying running the assembly produced through MoMA, to check for migration problems.

可是我不能没有你 2024-08-06 14:44:39

检查 这个关于 nginx 上相同问题的讨论,看看是否可以引导您找到正确的解决方案。

Check this discussion about the same problem on nginx to see if can lead you to the right solution.

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