托管的Silverlight没有IIS [英] Hosting Silverlight without IIS

查看:143
本文介绍了托管的Silverlight没有IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法嵌入Web服务器,或其他手段,在.NET应用程序,这样的图形用户界面可能是psented为Silverlight应用程序$ P $?目前,我们有一个应用程序是客户端/服务器。我们正在使用的插座进行沟通和传递信息的来回。一个想法是返工这是一个Silverlight的解决方案。用户将只需在服务器指向他们的浏览器特定的端口上,并进行连接。

Is there a way to embed a web server, or other means, in a .NET application so that the GUI could be presented as a Silverlight application? Currently we have an application that is client/server. We are using sockets to communicate and passing messages back and forth. One thought was to rework this as a Silverlight solution. The user would simply point their browser at the server on a specific port and be connected.

我可以使用IIS来提供Silverlight的(XAML),但希望有另一种方式,通过嵌入式Web服务器或东西来做到这一点。

I could use IIS to serve up the Silverlight (XAML) but was hoping there was another way to do this via embedding a web server or something.


编辑 - 进一步的解释:

EDIT - Further explaination:

我们决定修建在WPF应用程序的新版本,但新的Silverlight和放大器; WPF。传统上,我们将构建的服务器上使用Windows服务这种类型的应用程序和Windows窗体应用程序在客户端上,每个将通过套接字进行通信。通过这种类型的应用程序我的意思是一个Windows服务流程东西和一个客户端应用程序,允许您配置中的service并查看其当前状态等。我认为,与其建立套接字层和具有解析的消息,因为他们奔波在客户端和服务器之间,我们也许能够建立一个Silverlight应用程序,并让用户只需通过浏览器连接到服务器。这意味着,我没有安装客户端应用程序(其他然后的Silverlight),并会消除通信层。该crinckle是,我想除去具有IIS服务器,我们可能需要做的IIS任何配置上的依赖。

We decided to construct the new version of the application in WPF but are new to Silverlight & WPF. Traditionally, we would have constructed this type of app using a Windows Service on the server and a Windows Forms app on the client and each would communicate through sockets. By "this type of application" I mean a Windows service that processes "stuff" and a client app that allows you to configure the serivce and to view its current status etc. I thought that instead of building the socket layer and having to parse messages, as they go back and forth between the client and server, we might be able to build a Silverlight app and have the user simply connect to the server via their browser. This would mean that I didn't have to install a client app (other then Silverlight) and would remove the communications layer. The crinckle is that I'd like to remove the dependency on the server having IIS and any configuration we might need to do to IIS.

也许我看着这一切都错了...可能是我的'新颖'为WPF / Silverlight中/ XAML

Maybe I'm looking at this all wrong...could be my 'newness' to WPF/Silverlight/XAML


推荐答案

Silverlight是一个标准的HTML <对象> ,因此它可以被任何东西,这将有助于交付HTML。然而,这似乎是一个奇怪的架构,客户端/服务器解决方案。对于你所描述的东西,我想看看之一:

Silverlight is just a standard HTML <object> so it can be delivered by anything that will serve HTML. However, it seems like a strange architecture for a client/server solution. For what you're describing, I'd look at either:

  • 的Silverlight外的浏览器应用程序
  • 通过ClickOnce的交付WPF应用程序
  • 是从网站下载,但与现有的后端使用的 Silverlight中的套接字支持

你能解释为什么你在寻找建立一个自定义服务器,而不是上面的方法之一?

Can you explain why you're looking at building a custom server instead of one of the above approaches?

这篇关于托管的Silverlight没有IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆