Today's results: the server and the browser use Silverlight to communicate with the IIS self-hosted WCF Service through TCP. After enabling Windows's WCF non-HTTP activation, you need to re-register aspnet_regiis-I to add the website binding net. TCP 4502 :*~ 4534: * add the "Uninstall this Website" website Advanced Configuration "HTTP, net. TCP put a clientaccexxpolicy. xml file SL Cross-Domain Policy file in the root directory of port 80 on the server
Windows Phone does not directly support website-hosted Silverlight, which is supported by WP applications.
The typical application that we can think of when using the HTTP bridge implemented by Silverlight is to use the swfupload control in the browser to upload large files and display the upload progress on the client. To develop a flash control, you need to learn actionscept, but the SL control uses C #.
You need to reference the system. Windows. browser namespace to mark the members (methods or attributes) that allow JS access as [scriptablemember]. For example, method A () htmlpage. registerscriptableobject ("key", myclass) registers an object (Instance) that contains members that allow JS access ). For example, type myclas, instance myclass
Access onload pluginload (sender) {sender. gethost (). content. Key. A ()} In JS ()}
Previous achievements: Test Results of communication between servers and browsers over webscoket (TCP)