Serving Silverlight apps from the webserver

六月ゝ 毕业季﹏ 提交于 2019-12-25 11:47:34

问题


I am building my own web server and want to serve from it a Silverlight application. Is there anything else I have to do besides setting the mime type and pushing the application through the wire?

It probably makes no difference, but the web-server is in C# (the micro-edition).


回答1:


No, silverlight is all run on the client, so unless you want to do some webservices or whatever, you needn't do anything other than set the mime-type.

It is really just like a separate file that you serve to the client, just like any image, script or css file.




回答2:


If you are developing a single Silverlight application that you want to deliver then you need only serve the XAP.

However if you are not the application developer or you want to deliver multiple apps effeciently then your web server needs also to be able to deliver other files that may come along with these apps. For example the libraries may be be delivered as zip files and they may download external images and XML files. Still this is all likely to be simple static content you will not normally need to implement other services.

Note if you are hosting an app to be referenced by a HTML file served by some other server then you need to get your site to respond with appropriate XML when SL requests the clientaccesspolicy.xml file.



来源:https://stackoverflow.com/questions/1665727/serving-silverlight-apps-from-the-webserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!