Silverlight

Configuring IIS for Silverlight Applications

KBA-01067-8Q0ZNL Purpose & Scope Microsoft® SilverlightTM is a cross-browser, cross-platform plug-in for delivering the next generation of .NET based media experiences and rich interactive applications for the Web. Silverlight offers a flexible programming model that supports AJAX, VB, C#, Python, and Ruby, and integrates with existing Web applications. Silverlight supports fast, cost-effective delivery of high-quality video to all major browsers running on the Mac OS or Windows. In most cases, hosters do not need to perform particular deployments to support Silverlight. However, check for the following basic items that could prevent Silverlight from functioning correctly. Procedure MIME Types In Windows Server 2008 IIS 7.0 All MIME types needed to support Silverlight are implemented by default… Read More »Configuring IIS for Silverlight Applications

Configuring IIS for Silverlight Applications in DNN Modules

KBA-01067-8Q0ZNL Purpose & Scope Microsoft® SilverlightTM is a cross-browser, cross-platform plug-in for delivering the next generation of .NET based media experiences and rich interactive applications for the Web. Silverlight offers a flexible programming model that supports AJAX, VB, C#, Python, and Ruby, and integrates with existing Web applications. Silverlight supports fast, cost-effective delivery of high-quality video to all major browsers running on the Mac OS or Windows. In most cases, hosters do not need to perform particular deployments to support Silverlight. However, check for the following basic items that could prevent Silverlight from functioning correctly. Procedure MIME Types In Windows Server 2008 IIS 7.0 All MIME types needed to support Silverlight are implemented by default… Read More »Configuring IIS for Silverlight Applications in DNN Modules

Cannot Run Project in Expression Blend 3

Error While working in Expression Blend 3 we found on one of our work computers we could not run the project from blend. We were on a Windows Vista and later Windows 7 box, and found that running the project would just return a message like: “Page cannot be displayed” or similar. Research showed that this was cause by the little application that hosts the local website that runs the project being blocked by an update to Window Defender and Forefront Security. This update mad a modification to the “hosts” file.   The Fix Open this file: C:\Windows\System32\drivers\etc\hosts in Notepad, and add the following entry: 127.0.0.1       localhost Making it look something like this:   A… Read More »Cannot Run Project in Expression Blend 3

My Silverlight Image is not updating within my DNN Module

While working on our upcoming DotNetNuke Module Silverlight Video Library we came across an interesting thing where you would upload an image (replacing the image on the server if it existed already). This works well until we discovered Silverlight was caching the downloaded images. Uploading and replacing an image on the server did nothing as the original jpg was cached. A simple command on the bitmap object allows us to get around and effectively bypass the cached image: bitmap.CreateOptions = BitmapCreateOptions.IgnoreImageCache; Download this DotNetNuke module from our website at: https://interactivewebs.com and stay tuned for our new release.

Extract image bitmap from Media Element in DNN Modules with Silverlight 3.0

For our upcoming new release of our DotNetNuke Module Silverlight Video Library with silverlight 3, a feature which previously took more than a few third party dll’s and full trust just to extract a jpg from a wmv was a nightmare. Now with silverlight 3 comes WriteableBitMap! You will quickly fall in love with WriteableBitMap as in just 3 lines of code you can effectively take a screenshot of any UI element and make that the contents for an Image. See below: public WriteableBitmap GetBitmapFromItem(FrameworkElement ctl) { WriteableBitmap wb = new WriteableBitmap((int)ctl.ActualWidth, (int)ctl.ActualHeight); wb.Render(ctl, new TranslateTransform()); wb.Invalidate(); return wb; } Now just use that as the Source object for an image and presto. Since this works… Read More »Extract image bitmap from Media Element in DNN Modules with Silverlight 3.0