在WEB中嵌入.net远程处理程序
所以,这是一笔交易。 我有客户端-服务器应用程序(dotNet remoting)。 客户端只有很少的轨迹栏、复选框、按钮和图片框。 服务器是一个控制台应用程序,仅从客户端进行计算。 客户的picturebox在picturebox中做了一些计算的可视化。 所有计算和相关类都在 dll 文件中。
现在我必须将客户端应用程序嵌入网站中。 所有类型的技术都被接受,但我想最小化施加于嵌入的力。 那么,嵌入的最佳方法是什么?
So, here is a deal.
I have client-server application(dotNet remoting). Client side has few trackbars, checkboxes, buttons and picturebox. Server is a console application and does only calculation from client. Client's picturebox make some visualisation of calculation in picturebox. All calulations and relative classes are in dll file.
Now I have to embed client application in web site. All kind of technologies are accepted, but I want to minimize forces applied to embedding. So, what is the best way to do embedding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您想获取 C# 应用程序并通过 Web 服务器访问它,请查看 iHttpHandler。 您需要编译为 DLL,并配置您的 IIS 服务器。
网上有很多教程。 一种是: http://www.codeproject.com/KB/aspnet/CustomImageHandler.aspx< /a>
If you want to take a C# application and access it through a web server, look into iHttpHandler. You need to compile to a DLL, and configure your IIS server.
There are a number of tutorials on the web. One is: http://www.codeproject.com/KB/aspnet/CustomImageHandler.aspx
SilverLight 或 Flash?
What about SilverLight or Flash?
您需要创建一个网站来访问远程服务器并将输出呈现为 HTML。 我严重怀疑您是否能够在浏览器环境中进行远程处理,即使使用 Silverlight 之类的东西也是如此。
如果您不想使用完整的 Web 服务器,则可以在服务器应用程序中使用 .net 类 HttpListener 来创建嵌入式 Web 服务器。
You need to create a web site that accesses your remoting server and renders output as HTML. I seriously doubt that you will be able to get remoting working inside a browser environment, even using something like Silverlight.
If you don't want to use a full blown web server then use the .net class HttpListener in your server application to create an embedded web server.