ASP.NET 和远程处理

发布于 2024-07-30 04:58:05 字数 287 浏览 4 评论 0原文

我有一个在服务器上运行的 .net 应用程序。 现在我想在我的 ASp.NET 网站和服务器应用程序之间进行通信。 目前我使用数据库,服务器将信息写入数据库,站点使用它等。但是,添加新字段来交换和交换复杂对象是一件痛苦的事情。 远程处理是出路吗? 如果是,那么在执行此操作时需要记住哪些常见事项。

  1. 服务器和 ASP.NET 站点都在同一台服务器上,
  2. 都在我的控制之下,
  3. 除了使用远程处理之外,还有其他更好的方法吗?
  4. 它是.NET 2.0

I have a .net application running on server. Now I want to comunicate between my ASp.NET website and the server application.
Currently I use database, server writes info to the db and site uses it etc. However adding new fields to echange and exchanging complex object is a pain.
Is remoting the way out? If yes, what are the common things to keep in mind while doing this.

  1. both server and asp.net site is on the same server
  2. both is under my control
  3. is there any other better way than using remoting?
  4. It is .NET 2.0

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

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

发布评论

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

评论(5

泅渡 2024-08-06 04:58:05

纯粹主义者会说远程处理是一种古老的、已死的技术,现在的方法是使用 WCF

The purists will say that remoting is an old, dead technology, and the way to do it now is to use WCF.

方觉久 2024-08-06 04:58:05

如果您尝试使用 SOA,最好的办法是为您的服务器应用程序提供 Web 服务,并从 ASP.net 网站应用程序访问它。 这是最好的办法。

但我不太明白“服务器”的目的是什么? 难道您的 ASP.net 网站(如您所说)不能成为服务器应用程序的前端吗? 这样,您的“服务器”就只是业务和数据层,无需使用远程处理或 WCF。

If you're attempting to have some SOA thing, the best thing is to a web service for your server application and access it from your ASP.net website application. It's the best way to do.

However I don't really understand what the purpose of the "server" is? Couldn't your ASP.net website - as you say - be your front-end of the server application?? Your "server" would then simply be the business and data layer and there would be no need to use remoting or WCF.

痴情 2024-08-06 04:58:05

如果想保留 .net 2.0,我会说 webservices ,否则它我认为你应该看看WCF

I would say webservices if want to stay .net 2.0, otherwise it think you should take a look at WCF.

放手` 2024-08-06 04:58:05

实际上,你可以在该服务器上部署一个WebService。 WebService是基于SOAP的,它可以与您的网站交换数据对象。

如果您可以更新到.Net Framwwork 3.5,则可以尝试改用WCF。

Actually, u can deploy a WebService on that server. WebService is base on SOAP, it can exchange data object with your website.

If you can update to .Net Framwwork 3.5, you can try to use WCF instead.

暖风昔人 2024-08-06 04:58:05

如果您需要程序集(ASP.NET 和某些服务器应用程序或服务)之间的直接交互,您应该使用应用程序域和跨域调用(一些很好的示例 此处)或使用 WCF,效果更好。 此外,如果您的服务器应用程序可以通过 Web 访问,并且不会产生重大缺陷(安全问题、服务器部署更改等),那么您也可以使用 Web 服务。

If you need direct interaction between assemblies (ASP.NET and some server application or service) you should use Application Domains and cross-domain calls (some good example here) or using WCF, which is better. Also you can use web services if your server application can be accessed via web without major resulting drawbacks (security issues, server deployment change, etc.).

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