Posted by Jason Jarrett on Dec 10, 2009 in
- Dotnet |
View Original Article
Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight.
What is it? (Silverlight Testing Automation Tool)
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing TDD/BDD/(insert your test style here) during Silverlight development.
Where can I get StatLight?
http://StatLight.CodePlex.com
Happy Coding !!!
Tags: - Virtualization, Application Packaging, Esoterica
Posted by David Marshall on Dec 10, 2009 in
- Virtualization |
View Original Article
Watch Ericom Blaze enhance remote computing user experience. This is a side by side comparison of Ericom Blaze and RDP 6. Network is limited to...
Read more at VMblog.com.
Tags: - Virtualization, Application Packaging, Video
Posted by David Marshall on Dec 10, 2009 in
- Virtualization |
View Original Article
VMware is said to be updating its Mac virtualization software to VMware Fusion 3.0.1 any day now. And although it is a minor dot and maintenance...
Read more at VMblog.com.
Tags: - Virtualization, Application Packaging, Desktop Virtualization
Posted by David Marshall on Dec 10, 2009 in
- Virtualization |
View Original Article
CloudShare, formerly IT Structures, has come out of stealth today with marquee customers and a proven cloud-based technology platform for sales...
Read more at VMblog.com.
Tags: - Virtualization, Application Packaging, cloud
Posted by David Marshall on Dec 10, 2009 in
- Virtualization |
View Original Article
The Cloud Slam Conference , which brings together leading companies and visionaries in business, technology, and cloud computing to showcase the...
Read more at VMblog.com.
Tags: - Virtualization, Application Packaging, cloud, events
Posted by mtaulty on Dec 10, 2009 in
- Miscelleneous |
View Original Article
Apply a pinch of salt here, this is a work-in-progress….:-) I wanted to follow up a little on the blog post I wrote about capturing video/audio from the webcam/microphone with Silverlight 4. In that post I’d written a little about how you could take the audio stream and write it out in some format ( specifically, I chose to write my captured audio out as a WAV file ) but I’d deliberately left out trying to write out the video stream because it felt like it would be “more difficult” and, naturally, I like to avoid any challenge that appears tricky :-) Tim’s also got a great video up on Silverlight.NET that also provides a much more “interactive” view of how to get this stuff up and running and builds it up from scratch so I’d recommend that as background as well. But…what to do about actually writing the video out somewhere and in what format? Capturing the video isn’t too tricky. The question is how to go from the frames captured to a recognisable video format and whether that’s do-able in a cross-platform way...(
read more)

Tags: - Virtualization, .NET, Application Packaging, Silverlight, Visual Studio
Posted by Latest News from Cloud Computing Journal on Dec 10, 2009 in
- General,
- Technology News,
CLoud Computing |
View Original Article
As part of the Navy’s annual Trident Warrior exercise, Dataline LLC successfully demonstrated that a standard shipboard communications infrastructure could be used to manage Amazon’s Elastic Compute Cloud (EC2) and Simple Storage Service (S3). Presented during the fall Trident Warrior ’10 (TW ’10) lab period, Dataline’s Secure Cloud Computing proof of concept used a simulated shipboard infrastructure to demonstrate secure access to selected collaboration and geospatial information service (GIS) applications.
read more
Tags: - Virtualization, Application Packaging
Posted by Jason Grundy on Dec 10, 2009 in
- Dotnet |
View Original Article
This is as much a reminder to myself for the future as anything. But I am going to start with a boast – I have a swanky new PC! I am trying to do everything in VMs (I know that a lot of people have tried this and failed but I am nothing if not altruistic). I want to keep all of my source in one place and share it between the VMs. However even though I could open the Solution in Visual Studio when I went to run it I would encounter the following error:
Server Error in ‘/’ Application.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application’s trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +42
System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase) +145
System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +73
System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +111
System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +279
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
I knew that some sort of trust issue was the problem and after some Googling I came across this article that explained this problem and more importantly provided a solution. The pertinent command to execute was:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file:////\\computername\sharename\*" FullTrust -exclusive on
Tags: - Virtualization, Application Packaging, Esoterica
Posted by Silverlight Show on Dec 10, 2009 in
- Miscelleneous |
View Original Article
Introduction
As you may already know, Silverlight 4 beta has been released and it has many new features. One of the most important features is net.tcp binding support. Now in Silverlight 4 we can communicate with WCF web service using net.tcp protocol. You may have noticed the many blog posts or articles that came out with a title similar to this : Silverlight 4 – WPF killer. If I can choose the one most important feature in Silverlight 4 beta that can kill WPF apps I will choose the net.tcp support.
If you have already worked with Silverlight 3 you probably have some WCF web service. In Silverlight 3 you have been limited to use basic http binding for communication with WCF service. One of the major performance improvements in Silverlight 3 was the possibility to add binary encoding to basic http binding that serializes and deserializes your messages in binary format. Net.tcp binding uses binary message encoding by default.
Why to use net.tcp binding ?
A key benefit of net.tcp binding is the performance. If you want fast Silverlight applications that communicate with your WCF service in your secure intranet environment you will probably use this binding.
This net.tcp binding for now is intended to be used in intranet environments. Because this protocol is build on top of Silverlight sockets implementation it has same network security restrictions. Silverlight restricts the ports of TCP socket connections to the range 4502 – 4534 . Because of that it requires environment where we can control the firewall configuration. In this way we can easily monitor Silverlight applications traffic and maintain the security of our corporate network.
Net.tcp protocol in Silverlight also does not support transport level security. For example, we can’t have SSL communication.
Net.tcp duplex support
Another key benefit of net.tcp binding is the support for duplex communication. Now we can use same HTTP polling duplex proxy from the previous version of Silverlight and just specify that the proxy will use net.tcp binding and everything will work. We can even make WCF service that uses HTTP polling duplex protocol for Internet clients and uses net.tcp protocol for Intranet clients. The programming model is the same like before and is simple to use.
Problems with installation
When I tried to debug an example of a WCF application using net.tcp binding I ran into the following problem. I constantly received the error : The protocol 'net.tcp' is not supported .

It seems that Visual Studio Integrated Cassino server supports only HTTP activation. So after that I tried to deploy my application into IIS.
Only IIS7 has support for net.tcp binding so you must have IIS7 installed on your machine.
WCF services with net.tcp binding inside IIS7 are hosted on Windows Process Activation Services (WAS). To enable WAS hosting on IIS7 for net.tcp you must do a few things:
1) You must enable Windows Communication Foundation Non-HTTP Activation. One important feature of IIS is the ability to activate a web application when an HTTP request for that application is received. A similar feature exists in IIS7 for net.tcp , but it may not be enabled by default.

2) You must set the application poll to use Framework 4 enabled poll and must enable the net.tcp protocol.

3) You must also enable port or ports in range 4502 – 4534 for net.tcp binding.

Or you can skip step two and three and do it faster and quicker using command prompt. IIS provides a new command-line utility to configure Web sites : Appcmd.exe. The command bellow will update the configuration file for WAS, applicationHost.config, with new binding for the default web site :
%windir%\system32\inetsrv\appcmd.exe set site
"Default Web Site" -+bindings.[protocol=
'net.tcp',bindingInformation='*']
After that you need to check if net.tcp listner adapter service is running. You can do it by executing the following command sc query NetTcpActivator or look in services :

If you get the following error : Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].

the problem might be because you haven’t specify a base address for net.tcp binding in service web.config file. You need to specify a base address similar to this :
endpoint address="net.tcp://localhost:4502/wcservice/Service.svc"
If we want to generate proxy on client side and we have only specified net.tcp binding in our service, we must set up the Metadata Exchange (mex) endpoint to use the net.tcp binding :
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
Also if we want to allow to share the same port on different services, we must enable the port sharing service for net.tcp. We can do it by executing the following command in command prompt : C:\sc.exe config NetTcpPortSharing start= demand
After that you must allow Silverlight applications to communicate over TCP. In order to do that the server must explicitly allow such a connection. This is done by exposing a TCP socket policy over TCP port 943.
This is how an example policy file for sockets looks like :
<?xml version="1.0" encoding ="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*"/>
</allow-from>
<grant-to>
<socket-resource port="4502-4506" protocol="tcp" />
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
To make our life easier, Tomasz Janczuk from Microsoft has created a free template for console applications that serves like TCP socket policy server.

You can later make windows service that will do the same thing on hosting server. This console application receives requests from Silverlight clients and returns socket policy file to the client. You must run this console app on server to enable Silverlight applications to communicate over TCP.

After that we are up and running….
Summary
Net.tcp binding support in Silverlight 4 beta is one of the most important new features. It brings us excellent performance but with some security constraints such us port limitations. Because of that it is recommended to use it for Intranet applications in secure environments where you can control firewall settings. It can be great alternative in such environments for HTTP polling duplex or for Basic HTTP binding. This protocol supports a simple to use WCF duplex programming model. I hope that in the near future we will see a much better support for net.tcp binding in Silverlight without security constraints.
Tags: - Virtualization, Application Packaging