<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Sayed Ibrahim Hashimi - MSBuild, Web Deploy (MSDeploy), ASP.NET - Silverlight</title>
    <link>http://sedodream.com/</link>
    <description>MSBuild, C#, Visual Studio and more</description>
    <language>en-us</language>
    <copyright>Sayed Ibrahim Hashimi</copyright>
    <lastBuildDate>Mon, 11 Feb 2008 05:05:26 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>sayed.hashimi@gmail.com</managingEditor>
    <webMaster>sayed.hashimi@gmail.com</webMaster>
    <item>
      <trackback:ping>http://sedodream.com/Trackback.aspx?guid=d683936a-b539-4777-843e-e1440d3149dd</trackback:ping>
      <pingback:server>http://sedodream.com/pingback.aspx</pingback:server>
      <pingback:target>http://sedodream.com/PermaLink,guid,d683936a-b539-4777-843e-e1440d3149dd.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://sedodream.com/CommentView,guid,d683936a-b539-4777-843e-e1440d3149dd.aspx</wfw:comment>
      <wfw:commentRss>http://sedodream.com/SyndicationService.asmx/GetEntryCommentsRss?guid=d683936a-b539-4777-843e-e1440d3149dd</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <title>Silverlight: ErrorCode 1001</title>
      <guid isPermaLink="false">http://sedodream.com/PermaLink,guid,d683936a-b539-4777-843e-e1440d3149dd.aspx</guid>
      <link>http://sedodream.com/2008/02/11/SilverlightErrorCode1001.aspx</link>
      <pubDate>Mon, 11 Feb 2008 05:05:26 GMT</pubDate>
      <description>&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;
&lt;font face=Calibri color=#000000 size=3&gt;Recently I ran into an error when creating
a simple Silverlight, Silverfish as I like to call it. The error was in occurring
in the constructor of the Silverlight control that I created. Specifically it occurred
when the content was read from the resource with the following statement&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;this&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;.InitializeFromXaml(&lt;/font&gt;&lt;span style="COLOR: blue"&gt;new&lt;/span&gt;&lt;font color=#000000&gt; System.IO.&lt;/font&gt;&lt;span style="COLOR: #2b91af"&gt;StreamReader&lt;/span&gt;&lt;font color=#000000&gt;(s).ReadToEnd());&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;
&lt;font face=Calibri color=#000000 size=3&gt;Once this was executed an Exception was thrown
with the following message&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;
&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;Error
HRESULT E_FAIL has been returned from a call to a COM component.&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;
&lt;font face=Calibri color=#000000 size=3&gt;And the dialog shown below was displayed&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img alt="" hspace=0 src="http://www.sedodream.com/content/binary/images/blog_0001.png" align=baseline border=0&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;
&lt;font face=Calibri color=#000000 size=3&gt;I Googled this error for a bit and it seemed
like there were various errors that could cause this. So I started playing with the
XAML that it was attempting to load. I discovered that the issue was caused by an
Element with the same &lt;b style="mso-bidi-font-weight: normal"&gt;&lt;u&gt;Name&lt;/u&gt;&lt;/b&gt; attribute
as a previously declared one. So if you get this error make sure that all your Elements
have unique names attached to them.&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;
&lt;font face=Calibri color=#000000 size=3&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;
&lt;font face=Calibri color=#000000 size=3&gt;Sayed Ibrahim Hashimi&lt;/font&gt;
&lt;/p&gt;</description>
      <comments>http://sedodream.com/CommentView,guid,d683936a-b539-4777-843e-e1440d3149dd.aspx</comments>
      <category>Silverlight</category>
      <category>Visual Studio 2008</category>
    </item>
  </channel>
</rss>