<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Hannes Preishuber</title><subtitle type="html">ON ERROR RESUME NEXT!</subtitle><id>http://weblogs.asp.net/hpreishuber/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/hpreishuber/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2008-04-29T08:25:53Z</updated><entry><title>ADO.NET Dataservices: Fancy Error Part II</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/10/13/ado-net-dataservices-fancy-error-part-ii.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/10/13/ado-net-dataservices-fancy-error-part-ii.aspx</id><published>2008-10-13T09:13:55Z</published><updated>2008-10-13T09:13:55Z</updated><content type="html">&lt;p&gt;Today my first Silverlight 2 application goes live. It is a customer feedback app for the ADC 08 conference. After successfully installed and tested a few hours everything went well. But then data was not show. on direct call of ado.net dataservice vcs in browser following error comes up&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family: &amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;; color: black; font-size: 12pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-ansi-language: de; mso-fareast-language: de; mso-bidi-language: ar-sa"&gt;&lt;em&gt;Die Datei oder Assembly App_Web_znszzsfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;The rest of the asp.net site works well.&lt;/p&gt;  &lt;p&gt;As I was used to from &lt;a href="http://weblogs.asp.net/hpreishuber/archive/2008/10/10/ado-net-dataservices-this-collection-already-contains-an-address-with-scheme-http.aspx"&gt;earlier experience&lt;/a&gt;&amp;#160;&amp;#160; with ADO.NET dataservices on IIS 6 the error message is not what it seams. I tryed restart of IIS, delete temp ASP.NET compiled files of website. Nothing helped. &lt;/p&gt;  &lt;p&gt;The original reason was a change of the server ip address by admin. Workaround was to delete temp files from root folder.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6677183" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="ASP.NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/ASP.NET/default.aspx" /></entry><entry><title>ADO.NET Dataservices:This collection already contains an address with scheme http</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/10/10/ado-net-dataservices-this-collection-already-contains-an-address-with-scheme-http.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/10/10/ado-net-dataservices-this-collection-already-contains-an-address-with-scheme-http.aspx</id><published>2008-10-10T17:52:44Z</published><updated>2008-10-10T17:52:44Z</updated><content type="html">&lt;p&gt;I have deployed a Silverlight 2 application which uses ADO.NET Dataservices to a IIS 6. &lt;/p&gt;  &lt;p&gt;Problem #1: you see nothing in Browser&lt;/p&gt;  &lt;p&gt;register MIME Type in IIS and restart IIS &lt;/p&gt;  &lt;p&gt;Problem #2: no data is sown in Silverlight &lt;/p&gt;  &lt;p&gt;In my case it was a 2nd hostheader entry in the Web site. Remove the 2nd hostheader, restart the service and call the ADO.NET Dataservice (svc) directly in Browser&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6669557" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /></entry><entry><title>I Love VB: Silverlight UI Creation with XML Literals</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/09/05/i-love-vb-silverlight-ui-creation-with-xml-literals.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/09/05/i-love-vb-silverlight-ui-creation-with-xml-literals.aspx</id><published>2008-09-05T06:25:17Z</published><updated>2008-09-05T06:25:17Z</updated><content type="html">&lt;p&gt;My actual problem is to develop a image (object) carousel. There are a lot of details to take care about. One of them is to create images dynamically with a great UI like border or shadow. First I startet up to write code like:&lt;/p&gt;  &lt;pre class="csharpcode"&gt; &lt;span class="kwrd"&gt;Dim&lt;/span&gt; brd &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;New&lt;/span&gt; Border
 brd.Height = 130 &lt;span class="rem"&gt;'Bildhöhe+ 30 für text&lt;/span&gt;
 brd.Background = &lt;span class="kwrd"&gt;New&lt;/span&gt; SolidColorBrush(Colors.LightGray)
 brd.CornerRadius = &lt;span class="kwrd"&gt;New&lt;/span&gt; CornerRadius(3)
 brd.BorderThickness = &lt;span class="kwrd"&gt;New&lt;/span&gt; Thickness(3)
 &lt;span class="kwrd"&gt;Dim&lt;/span&gt; grdcoll &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;New&lt;/span&gt; GradientStopCollection()
 &lt;span class="kwrd"&gt;Dim&lt;/span&gt; grdstop &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;New&lt;/span&gt; GradientStop
 grdstop.Offset = 0
 grdstop.Color = Colors.LightGray
  grdcoll.Add(grdstop)&lt;/pre&gt;

&lt;p&gt;&lt;style type="text/css"&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;To create a good UI by code is really a pain. It is much easier to draw with Expression Blend. VB 2008 have a feature called XML literals and XAML is XML. So I copy the xaml code direct to Visual Studio like&lt;/p&gt;

&lt;pre class="csharpcode"&gt;   &lt;span class="kwrd"&gt;Dim&lt;/span&gt; ui = &amp;lt;Border xmlns=&lt;span class="str"&gt;&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt;
                         Height=&lt;span class="str"&gt;&amp;quot;130&amp;quot;&lt;/span&gt; CornerRadius=&lt;span class="str"&gt;&amp;quot;3,3,3,3&amp;quot;&lt;/span&gt;
                         BorderThickness=&lt;span class="str"&gt;&amp;quot;0,0,0,3&amp;quot;&lt;/span&gt;&amp;gt;
                         &amp;lt;Border.BorderBrush&amp;gt;
                             &amp;lt;RadialGradientBrush&amp;gt;
                                 &amp;lt;RadialGradientBrush.RelativeTransform&amp;gt;
                                     &amp;lt;TransformGroup&amp;gt;
                                         &amp;lt;ScaleTransform CenterX=&lt;span class="str"&gt;&amp;quot;0.5&amp;quot;&lt;/span&gt; CenterY=&lt;span class="str"&gt;&amp;quot;0.5&amp;quot;&lt;/span&gt; ScaleY=&lt;span class="str"&gt;&amp;quot;0.129&amp;quot;&lt;/span&gt;/&amp;gt;
                                         &amp;lt;SkewTransform CenterX=&lt;span class="str"&gt;&amp;quot;0.5&amp;quot;&lt;/span&gt; CenterY=&lt;span class="str"&gt;&amp;quot;0.5&amp;quot;&lt;/span&gt;/&amp;gt;
                                         &amp;lt;RotateTransform CenterX=&lt;span class="str"&gt;&amp;quot;0.5&amp;quot;&lt;/span&gt; CenterY=&lt;span class="str"&gt;&amp;quot;0.5&amp;quot;&lt;/span&gt;/&amp;gt;
                                         &amp;lt;TranslateTransform X=&lt;span class="str"&gt;&amp;quot;0&amp;quot;&lt;/span&gt; Y=&lt;span class="str"&gt;&amp;quot;0.476&amp;quot;&lt;/span&gt;/&amp;gt;
                                     &amp;lt;/TransformGroup&amp;gt;
                                 &amp;lt;/RadialGradientBrush.RelativeTransform&amp;gt;
                                 &amp;lt;GradientStop Color=&lt;span class="str"&gt;&amp;quot;#FF706F6F&amp;quot;&lt;/span&gt;/&amp;gt;
                                 &amp;lt;GradientStop Color=&lt;span class="str"&gt;&amp;quot;#FFF7F2F2&amp;quot;&lt;/span&gt; Offset=&lt;span class="str"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;/&amp;gt;
                             &amp;lt;/RadialGradientBrush&amp;gt;
                         &amp;lt;/Border.BorderBrush&amp;gt;
                         &amp;lt;Canvas&amp;gt;
                             &amp;lt;Image Source=&amp;lt;%= &lt;span class="str"&gt;&amp;quot;/images/&amp;quot;&lt;/span&gt; + dateien(i) %&amp;gt;
                                 Width=&lt;span class="str"&gt;&amp;quot;100&amp;quot;&lt;/span&gt; Height=&lt;span class="str"&gt;&amp;quot;100&amp;quot;&lt;/span&gt;
                                 VerticalAlignment=&lt;span class="str"&gt;&amp;quot;Top&amp;quot;&lt;/span&gt;/&amp;gt;
                             &amp;lt;TextBlock Canvas.Left=&lt;span class="str"&gt;&amp;quot;0&amp;quot;&lt;/span&gt; TextAlignment=&lt;span class="str"&gt;&amp;quot;Center&amp;quot;&lt;/span&gt;
                                 Canvas.Top=&lt;span class="str"&gt;&amp;quot;100&amp;quot;&lt;/span&gt; VerticalAlignment=&lt;span class="str"&gt;&amp;quot;Center&amp;quot;&lt;/span&gt;
                                 Width=&lt;span class="str"&gt;&amp;quot;100&amp;quot;&lt;/span&gt;
                                 &amp;gt;
                                 &amp;lt;%= Replace(dateien(i), &lt;span class="str"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;, &lt;span class="str"&gt;&amp;quot;&amp;quot;&lt;/span&gt;) %&amp;gt;
                             &amp;lt;/TextBlock&amp;gt;
                         &amp;lt;/Canvas&amp;gt;
                     &amp;lt;/Border&amp;gt;

            &lt;span class="kwrd"&gt;Dim&lt;/span&gt; xaml1 = XamlReader.Load(ui.ToString)
            &lt;span class="kwrd"&gt;Me&lt;/span&gt;.Children.Add(&lt;span class="kwrd"&gt;CType&lt;/span&gt;(xaml1, UIElement))&lt;/pre&gt;

&lt;p&gt;&lt;style type="text/css"&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;As you can see there is also the posibility to set attributes with expressions (like in asp.net) which I have used for image path. Then you can create from xaml fragment a control and add it to a node of the xaml hierarchy.&lt;/p&gt;

&lt;p&gt;Great – I love that way.&lt;/p&gt;

&lt;p&gt;The actual result shows the speakers of the &lt;a href="http://www.adc08.de"&gt;ADC conference&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/ILoveVBSilverlightUICreationwithXMLLiter_7395/image_2.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/ILoveVBSilverlightUICreationwithXMLLiter_7395/image_thumb.png" width="244" height="100" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6601583" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /><category term="VB.NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/VB.NET/default.aspx" /></entry><entry><title>Silverlight 2.0 plugin ID or not ID</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/08/24/silverlight-2-0-plugin-id-or-not-id.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/08/24/silverlight-2-0-plugin-id-or-not-id.aspx</id><published>2008-08-24T06:05:26Z</published><updated>2008-08-24T06:05:26Z</updated><content type="html">&lt;p&gt;My original problem was a call from HTMl via Jscript to the internals of a Silverlight plugin. My code fails I had huge problems to find the issue cause debugging doesn’t help and jScript doesnt support intellisense i a complete matter.&lt;/p&gt;  &lt;p&gt;My checklist&lt;/p&gt;  &lt;p&gt;1) Silverlight 1.0 uses a findname construct, Silverlight 2.0 the xaml class must expose a &amp;lt;Scriptable&amp;gt; member and it must be registered with RegisterScriptObject&lt;font size="2"&gt;&lt;/font&gt; &lt;/p&gt;  &lt;p&gt;HtmlPage.RegisterScriptableObject(&lt;/p&gt; &lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;hannespre&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;2) The Call by Jscript from a Silverlight event method like loaded, have a sender object as parameter. On that you can use getHost to get a instance of Silverlight host. &lt;/p&gt;  &lt;p&gt;If you call without, like a hmtl button click, you have to find the the Silverlight plugin.&lt;/p&gt; &lt;font size="2"&gt;   &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; slhost = document.getElementById(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;sl1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;     &lt;p&gt;&lt;/p&gt; &lt;/font&gt;  &lt;p&gt;3) ASPX or HTML. Silverlight projects in Visual Studio 2008 creates a additional web project. This have to test pages. A html and a aspx. &lt;/p&gt;  &lt;p&gt;ASPX&lt;/p&gt; &lt;font size="2"&gt;   &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Silverlight&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;SilverlightControl&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;PluginBackground&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=Transparent&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;HtmlAccess&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=Enabled&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Source&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;~/ClientBin/SilverlightApplication1test.xap&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;MinimumVersion&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;2.0.30812&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Width&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;100%&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Height&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;600&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;    &lt;p&gt;&lt;/p&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;   &lt;p&gt;HTML&lt;/p&gt; &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;     &lt;p&gt;&amp;lt;&lt;/p&gt;   &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;data&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;data:application/x-silverlight,&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;sl1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;application/x-silverlight-2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;width&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;600px&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;height&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;400px&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;param&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;source&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;value&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;ClientBin/SilverlightApplication1test.xap&amp;quot;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;param&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;onerror&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;value&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;onSilverlightError&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;param&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;background&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;value&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;white&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;a&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;href&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;http://go.microsoft.com/fwlink/?LinkID=115261&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;style&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text-decoration: none;&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;img&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;src&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;http://go.microsoft.com/fwlink/?LinkId=108181&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;alt&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Get Microsoft Silverlight&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;style&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;border-style: none&amp;quot;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;a&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;   &lt;p&gt;The ID of the Silverlight Plugin is set with the ID attribute. There are different default values in ASPX and HTML (XAML1). If you miss the ID, Silverlight will work. &lt;/p&gt;  &lt;p&gt;4) you can read the created plugin id during runtime &lt;/p&gt;  &lt;pre class="csharpcode"&gt; &lt;span class="kwrd"&gt;Private&lt;/span&gt; &lt;span class="kwrd"&gt;Sub&lt;/span&gt; page8_Loaded(&lt;span class="kwrd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;Object&lt;/span&gt;, &lt;span class="kwrd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwrd"&gt;As&lt;/span&gt; System.Windows.RoutedEventArgs) &lt;span class="kwrd"&gt;Handles&lt;/span&gt; &lt;span class="kwrd"&gt;Me&lt;/span&gt;.Loaded
        HtmlPage.RegisterScriptableObject(&lt;span class="str"&gt;&amp;quot;hannespre&amp;quot;&lt;/span&gt;, &lt;span class="kwrd"&gt;Me&lt;/span&gt;)
        label1.Text = HtmlPage.Plugin.Id
&lt;span class="kwrd"&gt;End&lt;/span&gt; Sub&lt;/pre&gt;
&lt;style type="text/css"&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;5) From HTML following code access Plugin&lt;/p&gt;
&lt;font size="2"&gt;
  &lt;p&gt;&lt;/p&gt;
  &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Button1_onclick()&lt;/font&gt; 

  &lt;p&gt;{&lt;/p&gt;

  &lt;p&gt;&lt;/p&gt;
  &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; slhost = document.getElementById(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;sl1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt; 

  &lt;p&gt;&lt;/p&gt;

  &lt;p&gt;slhost.content.hannespre.interntext(&lt;/p&gt;
  &lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;geht&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt; 

  &lt;p&gt;}&lt;/p&gt;
&lt;/font&gt;

&lt;p&gt;6) take care on pressing F5 and starting debugging. Can start HTMl or ASPX page (and your code is in other page)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6558373" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="ASP.NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/ASP.NET/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /></entry><entry><title>Bind with Expression Blend: cannot create Instance Exception</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/08/11/bind-with-expression-blend-cannot-create-instance-exception.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/08/11/bind-with-expression-blend-cannot-create-instance-exception.aspx</id><published>2008-08-11T05:40:29Z</published><updated>2008-08-11T05:40:29Z</updated><content type="html">&lt;p&gt;Databinding with XAML is a lot of work. There is no drag drop table wizard, don’t search for it. Expression Blend (2.5) have a little bit more automatic support for binding Objects. When Blend is in Design View there is under Project tab a Data tab.&lt;/p&gt;  &lt;p&gt;Step1: open + CLR Object option- then you get a error message “loading assembly” which can be ignored (what else?)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_4.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_thumb_1.png" width="740" height="127" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_6.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" border="0" alt="image" align="left" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_thumb_2.png" width="164" height="244" /&gt;&lt;/a&gt; In the next dialog the class have to be selected which returns the data.&lt;/p&gt;  &lt;p&gt;In my case I got 100 times an error in Blend. The exception says nothing for me.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_thumb.png" width="456" height="330" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Step 2: Debugging&lt;/p&gt;  &lt;p&gt;Expression Blend tries to create a instance of my object during design time. That's a risk cause many parameters can differ to run time like, connections string, database, path and so one.&lt;/p&gt;  &lt;p&gt;First there must be some split between design and runtime code. There is a trick to do that. If no htmlpage is present, the container must be something else. Till now a usual container of silverlight xap applications is a browser (and nothing else)&lt;/p&gt; &lt;font size="2"&gt;   &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;()&lt;/font&gt;     &lt;p&gt;&lt;/p&gt;   &lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;' für Blend Designmode&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; HtmlPage.IsEnabled = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;False&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;'dummydaten mit vollem pfad&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myxml = XDocument.Load(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;northwind.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;     &lt;p&gt;&lt;/p&gt; &lt;/font&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;In this container is Blend. Then attach the Blend process to visual studio debugger. For that visual stuido must be open and the project must be compiled. Take Blend for compiling makes it a little bit easier for me. Dont forget to set breakpoint into your constructor.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_8.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/BindwithExpressionBlendcannotcreateInsta_6BE3/image_thumb_3.png" width="466" height="320" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;In my case the code failes on the load place. The reason is ( now I know it) that i have added the XML file as content to my xap packet. But there is no xap package for blend. &lt;/p&gt;  &lt;p&gt;The solution is to include the xml as resource into the assembly and load the xml with following code&lt;/p&gt; &lt;font size="2"&gt;   &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myxml = XDocument.Load(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/databindingvb;component/northwindblend.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;   &lt;p&gt;Hope this will save you some hour.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6503976" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="Blend" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Blend/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /></entry><entry><title>set as start page: Silverlight XAML</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/07/31/set-as-start-page-silverlight-xaml.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/07/31/set-as-start-page-silverlight-xaml.aspx</id><published>2008-07-31T08:54:17Z</published><updated>2008-07-31T08:54:17Z</updated><content type="html">&lt;p&gt;I really miss the option “set as start page” in Visual Studio Explorer for Silverlight Projects. If I have time in the next days (;-))Ii will write visual studio extension for that purpose.&lt;/p&gt;  &lt;p&gt;In fact it is not complicated. The app.xaml have a codebehind file ( app.xaml.vb or app.xaml.cs) which create a instance of the visible XAML. Btw that is the reason for changing xaml to usercontrol in B2.&lt;/p&gt;  &lt;p&gt;All you have to to, to change the start page is to change one line of code in startup. Instead of page write the name of the class you want to show.&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;Private&lt;/span&gt; &lt;span class="kwrd"&gt;Sub&lt;/span&gt; Application_Startup(&lt;span class="kwrd"&gt;ByVal&lt;/span&gt; o &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;Object&lt;/span&gt;, &lt;span class="kwrd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwrd"&gt;As&lt;/span&gt; StartupEventArgs) &lt;span class="kwrd"&gt;Handles&lt;/span&gt; &lt;span class="kwrd"&gt;Me&lt;/span&gt;.Startup
        &lt;span class="kwrd"&gt;Me&lt;/span&gt;.RootVisual = &lt;span class="kwrd"&gt;New&lt;/span&gt; secondXAML()
&lt;span class="kwrd"&gt;End&lt;/span&gt; Sub&lt;/pre&gt;
&lt;style type="text/css"&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6461878" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /></entry><entry><title>fast and furios Silverlight Databinding with Gridview and embedded XML Data Resources</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/07/29/fast-and-furios-silverlight-databinding-with-gridview-and-embedded-xml-data-resources.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/07/29/fast-and-furios-silverlight-databinding-with-gridview-and-embedded-xml-data-resources.aspx</id><published>2008-07-29T18:32:00Z</published><updated>2008-07-29T18:32:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently writing a Silverlight 2.0 course. I always try to focus on the problem and reduce the code overhead. For my Module “Databinding with Silverlight 2.0” I try to include the data as raw xml. For that purpose I include a northwind.xml file as data source into the project to focus on datagrid details. The most important part is, to set the build action to &lt;EM&gt;content&lt;/EM&gt;, which ends up in including the xml file into the xap package.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_2.png" mce_href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_2.png"&gt;&lt;IMG title=image style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=244 alt=image src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_thumb.png" width=183 border=0 mce_src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Then you can load the xml directly by xdocument.load. I had problems when xml is not valif or have exoctic encoding (&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;/FONT&gt; windows-1252&lt;/FONT&gt;). Rest is a little bit LINQ to create collection of northwinddata objects.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=csharpcode&gt;&lt;PRE class=alt&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt; &lt;SPAN class=kwrd&gt;Dim&lt;/SPAN&gt; myxml = XDocument.Load(&lt;SPAN class=str&gt;"northwind.xml"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE class=alt&gt; &lt;SPAN class=kwrd&gt;Dim&lt;/SPAN&gt; xmlquery1 = From x &lt;SPAN class=kwrd&gt;In&lt;/SPAN&gt; myxml.Descendants(&lt;SPAN class=str&gt;"row"&lt;/SPAN&gt;) _&lt;/PRE&gt;&lt;PRE&gt;               &lt;SPAN class=kwrd&gt;Select&lt;/SPAN&gt; &lt;SPAN class=kwrd&gt;New&lt;/SPAN&gt; northwinddata &lt;SPAN class=kwrd&gt;With&lt;/SPAN&gt; _&lt;/PRE&gt;&lt;PRE class=alt&gt;               {.customerid = x.@CustomerID, _&lt;/PRE&gt;&lt;PRE&gt;                .companyname = x.@CompanyName}&lt;/PRE&gt;&lt;PRE class=alt&gt; dataGrid1.ItemsSource = xmlquery1&lt;/PRE&gt;&lt;/DIV&gt;
&lt;STYLE type=text/css&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/STYLE&gt;

&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally the result&lt;/P&gt;
&lt;P&gt;&lt;A href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_4.png" mce_href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_4.png"&gt;&lt;IMG title=image style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=153 alt=image src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_thumb_1.png" width=244 border=0 mce_src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fastandfuriosSilverlightDatabindingwithG_12025/image_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Interesting note at the bottom line. It is also possible to load the xaml content. &lt;/P&gt;&lt;PRE class=csharpcode&gt; &lt;SPAN class=kwrd&gt;Dim&lt;/SPAN&gt; myxml  XDocument.Load(&lt;SPAN class=str&gt;"/gird1;component/page.xaml"&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;STYLE type=text/css&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/STYLE&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6457859" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /></entry><entry><title>IE 8 simultaneous connections changed</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/07/21/ie-8-simultaneous-connections-changed.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/07/21/ie-8-simultaneous-connections-changed.aspx</id><published>2008-07-21T12:22:13Z</published><updated>2008-07-21T12:22:13Z</updated><content type="html">&lt;p&gt;&lt;/p&gt;  &lt;p&gt;Small note. The Internet Explorer 8 have increased the amount of connections to the same domain to 6. ( was before 2)&lt;/p&gt;  &lt;p&gt;Can have some effects in AJAX callbacks, like Web Service calls.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc304135(VS.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/cc304135(VS.85).aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6427013" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term="Ajax" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Ajax/default.aspx" /></entry><entry><title>reverse engineering of Silverlight XAP files</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/07/17/reveres-engineering-of-silverlight-xap-files.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/07/17/reveres-engineering-of-silverlight-xap-files.aspx</id><published>2008-07-17T17:50:00Z</published><updated>2008-07-17T17:50:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my &lt;A href="http://weblogs.asp.net/hpreishuber/archive/2008/06/23/what-i-miss-in-silverlight-2-0.aspx" mce_href="http://weblogs.asp.net/hpreishuber/archive/2008/06/23/what-i-miss-in-silverlight-2-0.aspx"&gt;last post&lt;/A&gt; Michael Schwarz noticed&amp;nbsp; that search engine spiders can theoretically&amp;nbsp; index xap files. &lt;/P&gt;
&lt;P&gt;Silverlight 2.0 creates a xap file where dll’s, images, videos and xml are included. &lt;/P&gt;
&lt;P&gt;First step is to search in web for files with xap extension and download it. Then uncompress it with unzip algorithm ( eg rename to zip).&lt;/P&gt;
&lt;P&gt;You will find a dll with the logic inside and several dll’s with librarys and a manifest file.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_2.png" mce_href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_2.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" title=image border=0 alt=image src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_thumb.png" width=642 height=174 mce_src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The you ca use (good old) reflector to disassemble the dll. The most interesting fact is that the original XAML file is included as resource.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_4.png" mce_href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_4.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" title=image border=0 alt=image src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_thumb_1.png" width=598 height=330 mce_src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/reveresengineeringofSilverlightXAPfiles_1167D/image_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;You can then export ( save) the silder.xaml and open it with eg Expression Blend. Logic can be also taken from reflector which have the option to show it in VB.NET or C#.&lt;/P&gt;
&lt;P&gt;Back to my beginning point. Till now I don’t know any search indexer which will do that.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6411850" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term="ASP.NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/ASP.NET/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /></entry><entry><title>What I miss in Silverlight 2.0</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/06/23/what-i-miss-in-silverlight-2-0.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/06/23/what-i-miss-in-silverlight-2-0.aspx</id><published>2008-06-23T19:13:13Z</published><updated>2008-06-23T19:13:13Z</updated><content type="html">&lt;p&gt;No, I do not miss a particular control or class. I am thinking about principle design issues.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Search Engines&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The extension for Silverlight applications is xap.&amp;#160; The content is kind of binary. At the end of the line, no content for search engine spider. &lt;/p&gt;  &lt;p&gt;Proposed solution: add metacontent, like the original XAML file.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Librarys &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Some of the new controls are not included native in Silverlight base installation. Datagrid or Tabcontrol are in separate dll’s (e.g. System.Windows.Controls.Extended.dll). If such control’s or functionality like linq is used, project needs reference to one ore more additional DLL’s. That increase xap size between 100-200K per dll. Second issue is, that code is not cached localy. I would move library code to silverlight addin or add caching.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;run local&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I see no reason why xap code must run within a HTML page. As Silverlight is a host for xap it should be possible to install that host for xap in OS. &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6312143" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term="Silverlight" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Silverlight/default.aspx" /></entry><entry><title>fixed: asp.net gridview dataformatstring</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/06/18/fixed-asp-net-gridview-dataformatstring.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/06/18/fixed-asp-net-gridview-dataformatstring.aspx</id><published>2008-06-18T06:37:48Z</published><updated>2008-06-18T06:37:48Z</updated><content type="html">&lt;p&gt;A old problem was in VS 2005 and ASP.NET 2.0 that you have to set htmlencode=false to enable the dataformatstring.&lt;/p&gt;  &lt;p&gt;Since SP1 of VS 2005 ( and ASP.NET 2.0 ) there is a new property in town &lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.boundfield.htmlencodeformatstring.aspx"&gt;HTMLEncodeFormatString&lt;/a&gt; which have default value false. So it is not necessary to set the value of the attribute.&lt;/p&gt; &lt;font size="2"&gt;   &lt;p&gt;&lt;/p&gt;   &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;BoundField&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;DataField&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;RequiredDate&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;DataFormatString&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;{0:d}&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;    &lt;p&gt;&lt;/p&gt;   &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;HeaderText&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;RequiredDate&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;SortExpression&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;RequiredDate&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;    &lt;p&gt;&lt;/p&gt; &lt;/font&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fixedasp.netgridviewdataformatstring_78EB/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/fixedasp.netgridviewdataformatstring_78EB/image_thumb.png" width="750" height="374" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6289414" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term="ASP.NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/ASP.NET/default.aspx" /></entry><entry><title>what I miss in LINQdatasource</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/06/05/what-i-miss-in-linqdatasource.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/06/05/what-i-miss-in-linqdatasource.aspx</id><published>2008-06-05T05:57:50Z</published><updated>2008-06-05T05:57:50Z</updated><content type="html">&lt;p&gt;ASP.NET SQLDatasource control was for me a super productive tool in the past. There are some small features missing like a more elegant data paging. ASP.NET 3.5 bring a new control LinqDatasource which have &lt;a href="http://weblogs.asp.net/hpreishuber/archive/2008/01/17/linqdatasource-and-datapager-rocks.aspx"&gt;great support for data paging&lt;/a&gt;. So I tried&amp;#160; to create a rss feed with LINQtoSQL and LinqDatasource. Result is not as I expected.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Caching&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;SQLDatasource supports data Caching with simply two attributes &lt;em&gt;enablecaching=true&lt;/em&gt; and &lt;em&gt;cacheduration=60&lt;/em&gt;. Caching makes applications much faster. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Filtering&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In combination with&amp;#160; caching SQLDatasource supports filterparameter which allow a kind of offline (from database) filtering. Also makes application faster and reduce load on SQL server.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;FilterExpression=&amp;quot;ProductName LIKE &lt;/em&gt;&lt;a href="mailto:'@PN%'"&gt;&lt;em&gt;'@PN%'&lt;/em&gt;&lt;/a&gt;&lt;em&gt;&amp;quot;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;extended where conditions&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;As in the sample before i miss extended where condition in LINQ querys. The wizzard of LINQdatasource only allow a few expressions like ==. &lt;/p&gt;  &lt;p&gt;In pure LINQ querys you can use syntax like&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Dim expr = From hannes In kunden.Kundens _     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Where hannes.City Like &amp;quot;a*&amp;quot; _      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Select hannes&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;or even&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;em&gt;Where SqlMethods.Like(hannes.City, &amp;quot;a%&amp;quot;) _&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Both doesn’t work in LINQdatasource.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Relations &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;For this point i am not sure if I miss some part. With sqldatasource I usually join data via SQL command. With LINqtoSQL you can define relations but not to handle it virtual as one “table” . With LINQ query's in code that's not a issue. LINQDatasource only allows to select one table so i can not handle the join of normalized data.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I am open for discussion at this point.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6249140" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/.NET/default.aspx" /><category term="ASP.NET" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/ASP.NET/default.aspx" /><category term="Sql" scheme="http://weblogs.asp.net/hpreishuber/archive/tags/Sql/default.aspx" /></entry><entry><title>want to be a .NET star **{*}**?</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/05/09/want-to-be-a-net-star.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/05/09/want-to-be-a-net-star.aspx</id><published>2008-05-09T14:40:35Z</published><updated>2008-05-09T14:40:35Z</updated><content type="html">&lt;p&gt;you can not sing -&lt;/p&gt;  &lt;p&gt;you are running slow-&lt;/p&gt;  &lt;p&gt;you are not rich -&lt;/p&gt;  &lt;p&gt;you haven't invented the wheel ?&lt;/p&gt;  &lt;p&gt;perhaps you a good coder? we are looking for our German and Austrian sub's for upcoming .NET star's.&amp;#160; Several MVP's, authors and speakers come from us. If you want attend the star way, take a look at our web site.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/wanttobea.NETstar_EA54/sternelogo_sg_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" border="0" alt="sternelogo_sg" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/wanttobea.NETstar_EA54/sternelogo_sg_thumb.jpg" width="492" height="221" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6173720" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author></entry><entry><title>Visendo SMTP (pop3) Extender for Windows 2008 Server</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/04/30/visendo-smtp-pop3-extender-for-windows-2008-server.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/04/30/visendo-smtp-pop3-extender-for-windows-2008-server.aspx</id><published>2008-04-30T18:30:33Z</published><updated>2008-04-30T18:30:33Z</updated><content type="html">&lt;p&gt;We are migrating some web server from ppedv to windows 2008. IIS 7 is a great improvement. But as always in live, nothing is perfect and we miss the pop3 server from windows 2003.&lt;/p&gt;  &lt;p&gt;Our software &amp;quot;visendo&amp;quot; department&amp;#160; have build several products around pop3 (popconnect) and smtp. So we build an extender for IIS Microsoft SMTP server. So you can now use pop3 client to read mails. The solution consists of a filesystem watcher which is moving from drop to other folder(s) fitting the destination address. We support domain and single account (more than windows 2003). Configuration is done with xml. config file by notepad. Visendo SMTP Extender is developed as service with c++ for performance reasons.&lt;/p&gt;  &lt;p&gt;On bottom you find links for download first prototype. Support by blog comments. We will open up a support group on our &lt;a href="http://www.visendo.com"&gt;www.visendo.com&lt;/a&gt; forums. At the moment product is free an without any warranty.&lt;/p&gt;  &lt;p&gt;btw SMTP management is still no part of iis 7 so management is done by old mmc snap in.&lt;/p&gt;  &lt;p&gt;[UPDATE]&lt;/p&gt;  &lt;p&gt;x64 and x32 editons with minor changes&lt;/p&gt;  &lt;p style="margin: 0cm 0cm 0pt" class="MsoNormal"&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;&lt;u&gt;&lt;a href="http://www.visendo.com/download/visendosmtpextender/VisendoSMTPExtender_x64.msi"&gt;http://www.visendo.com/download/visendosmtpextender/VisendoSMTPExtender_x64.msi&lt;/a&gt;&lt;/u&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="margin: 0cm 0cm 0pt" class="MsoNormal"&gt;&lt;a href="http://www.visendo.com/download/visendosmtpextender/VisendoSMTPExtender_x86.msi"&gt;&lt;u&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;http://www.visendo.com/download/visendosmtpextender/VisendoSMTPExtender_x86.msi&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p style="margin: 0cm 0cm 0pt" class="MsoNormal"&gt;   &lt;p&gt;&lt;font color="#000000" size="3" face="Calibri"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6145413" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author></entry><entry><title>Visual Studio IIS 7 and WebDAV</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/hpreishuber/archive/2008/04/29/visual-studio-iis-7-and-webdav.aspx" /><id>http://weblogs.asp.net/hpreishuber/archive/2008/04/29/visual-studio-iis-7-and-webdav.aspx</id><published>2008-04-29T06:25:53Z</published><updated>2008-04-29T06:25:53Z</updated><content type="html">&lt;p&gt;Visual Studio 2008 have still no native WebDAV support. On the other hand Microsoft is stopping Frontpage Server Extensions development. Both of this web publishing protocols are *not* implemented in IIS7 standard installation. You can download the fitting modules on the iis7 website. If you decide to use WebDAV you have to do following configuration steps&lt;/p&gt;  &lt;p&gt;1) &lt;a href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;amp;g=6&amp;amp;i=1621"&gt;Download (X86)&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2) installation&lt;/p&gt;  &lt;p&gt;3) Enable WebDAV on Site level &lt;/p&gt;  &lt;p&gt;4) Enable Authentication BASIC&lt;/p&gt;  &lt;p&gt;5) create WebDAV authoring rule which allows read, write for specific user&lt;/p&gt;  &lt;p&gt;Steps are described with &lt;a href="http://learn.iis.net/page.aspx/350/installing-and-configuring-webdav-on-iis-70/"&gt;screenshots here&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;For visual studio you have to map a file share like&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;net use z: http://www.fileserver.de&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;The explorer redirector (which is included since win 2000) only accepts &lt;/p&gt;  &lt;p&gt;a) windows authentication or&lt;/p&gt;  &lt;p&gt;b) Basic authentication over https =ssl&lt;/p&gt;  &lt;p&gt;For resources on the web we have to go way b).&lt;/p&gt;  &lt;p&gt;We have to created and assign a certificate to the website on our iis 7. The self signed certificates of iis 7 have no possibility to change the domain name. So default name is always machine name. For solving that I decided to use selfssl from &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56FC92EE-A71A-4C73-B628-ADE629C89499&amp;amp;displaylang=en"&gt;iis6 resource kit&lt;/a&gt;. You can install it on windows 2008.&lt;/p&gt;  &lt;p&gt;Following code on command line creates an assign the certificate.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;selfssl /n:CN=www.fileserver.de /v:1999 /s:1        &lt;br /&gt;Microsoft (R) SelfSSL Version 1.0         &lt;br /&gt;Copyright (C) 2003 Microsoft Corporation. All rights reserved.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;Do you want to replace the SSL settings for site 1 (Y/N)?y        &lt;br /&gt;The self signed certificate was successfully assigned to site 1.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Ensure that the SLL binding is enabled in IIS7 site. &lt;/p&gt;  &lt;p&gt;Then i opened the website over https&amp;#160;&amp;#160; in browser ( Admin mode with uac)and installed the certificate in trustworthy root authority store of client machine. After that following on command line should work on client&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;net use z: &lt;/em&gt;&lt;em&gt;https://www.fileserver.de&lt;/em&gt;       &lt;br /&gt;&lt;em&gt;Geben Sie den Benutzernamen f&amp;#252;r &amp;quot;&lt;/em&gt;&lt;em&gt;www.fileserver.de&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;&amp;quot; ein: Username        &lt;br /&gt;Geben Sie das Kennwort f&amp;#252;r &amp;quot;&lt;/em&gt;&lt;em&gt;www.fileserver.de&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;&lt;strong&gt;&amp;quot; ein:        &lt;br /&gt;Der Befehl wurde erfolgreich ausgef&amp;#252;hrt.         &lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Then you should see in Vista explorer&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/VisualStudioIIS7andWebDAV_7111/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" border="0" alt="image" src="http://weblogs.asp.net/blogs/hpreishuber/WindowsLiveWriter/VisualStudioIIS7andWebDAV_7111/image_thumb.png" width="249" height="92" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6140285" width="1" height="1"&gt;</content><author><name>preishuber</name><uri>http://weblogs.asp.net/members/preishuber.aspx</uri></author></entry></feed>