blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

John Rayner's Blog

Brain.Extract<IBloggable>( Where.Author.Is( "John.Rayner" ) );

WPF/E: Only HTTP locations work by default

Trying out some of the WPF/E samples, I noticed some rather odd behaviour.  I loaded a sample directly off my file system and was rewarded with a blank security and a notice that Internet Explorer was blocking some active content.  I then setup a virtual directory on my local IIS instance and everything was fine.  You can see the two redenderings here:

Now this sounded to me like a security problem, and that's exactly what it is.  When you load the page via HTTP then Internet Explorer will work out which Internet Zone you are in (Intranet, Trusted Sites, Internet, etc) and the configured security.  Below to the right is a screenshot of the default WPF/E security settings and you can see that it will run content, even for the Internet zone.

However thes settings only applies to pages loaded via HTTP.  If you are loading some HTML directly from your file system (like I was) then there are some different security settings.  The defaults are shown below and you'll notice that they prohibit active content, which includes WPF/E XAML files.

So strangely enough, as far as XAML and WPF/E go, your local file system is a more restrictive location than the Internet.  Work that out if you can!

 

 

 

 

 

 

 

Published 05 December 2006 09:28 by john.rayner

Comments

 

Andrew Stopford's Weblog said:

A few links I have collected for your WPF\E journey. John Rayner on WPF\E and IE security (this will

December 5, 2006 10:13
 

Marc Hoeppner said:

Ich weiss gar nicht warum, aber ein bischen aufgeregt bin ich schon :) - Der WPF/E Download ist da: Scott

December 5, 2006 11:16
 

ASP.NET Chinese Blogs said:

1。 Mike Harsh 是微软WPF/E产品组的主管(Program Manager),针对论坛上的疑问,他在博客里澄清“WPF/E到底是什么东西(What is WPF/E really)?”,该文的大意是:

December 13, 2006 21:19
 

John Rayner's Blog said:

A round glass button written for WPF/E and implemented in XAML and JavaScript. Feel free to download this and use it however you like.

December 22, 2006 01:05
 

keyword zoloft side effects alcohol qoclick said:

keyword zoloft side effects alcohol qoclick

October 2, 2007 03:02
Anonymous comments are disabled
Powered by Community Server (Personal Edition), by Telligent Systems