<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The resource cannot be found.</title>
	<atom:link href="http://helephant.com/2006/01/the-resource-cannot-be-found/feed/" rel="self" type="application/rss+xml" />
	<link>http://helephant.com/2006/01/the-resource-cannot-be-found/</link>
	<description></description>
	<lastBuildDate>Sat, 21 Aug 2010 21:58:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: mehdi</title>
		<link>http://helephant.com/2006/01/the-resource-cannot-be-found/#comment-118</link>
		<dc:creator>mehdi</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=186#comment-118</guid>
		<description>Hi,&lt;br /&gt;I&#039;ve got the exactly same problem, using the embeded web resources. Would you please provide me what was wrong exactly in your case?&lt;br /&gt;&lt;br /&gt;Any help would be highly appreciated,&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mehdi&lt;br /&gt;&lt;br /&gt;P.S.:&lt;br /&gt;Here&#039;s my contact ifo: (mehdi_mousavi@hotmail.com)</description>
		<content:encoded><![CDATA[<p>Hi,<br />I&#8217;ve got the exactly same problem, using the embeded web resources. Would you please provide me what was wrong exactly in your case?</p>
<p>Any help would be highly appreciated,</p>
<p>Cheers,<br />Mehdi</p>
<p>P.S.:<br />Here&#8217;s my contact ifo: (mehdi_mousavi@hotmail.com)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helen</title>
		<link>http://helephant.com/2006/01/the-resource-cannot-be-found/#comment-119</link>
		<dc:creator>Helen</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=186#comment-119</guid>
		<description>In my case it turned out that I wasn&#039;t referencing the resource properly when I was trying to access the file in the GetWebResourceUrl method. &lt;br /&gt;&lt;br /&gt;So I was doing this:&lt;br /&gt;&lt;br /&gt;this.ImgSrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), &quot;Elephant.jpg&quot;);&lt;br /&gt;&lt;br /&gt;When I should have been doing this:&lt;br /&gt;&lt;br /&gt;this.ImgSrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), &quot;Examples.WebResource.Images.Elephant.jpg&quot;);&lt;br /&gt;&lt;br /&gt;You can find out the exact names of your resources by iterating through the resources in your assembly and then you can cut and paste them into the GetWebResourceUrl() method:&lt;br /&gt;&lt;br /&gt;string[] resources = this.GetType().Assembly.GetManifestResourceNames();&lt;br /&gt;foreach (string resourceName in resources)&lt;br /&gt;{&lt;br /&gt;	Debug.WriteLine(resourceName);&lt;br /&gt;}</description>
		<content:encoded><![CDATA[<p>In my case it turned out that I wasn&#8217;t referencing the resource properly when I was trying to access the file in the GetWebResourceUrl method. </p>
<p>So I was doing this:</p>
<p>this.ImgSrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), &#8220;Elephant.jpg&#8221;);</p>
<p>When I should have been doing this:</p>
<p>this.ImgSrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), &#8220;Examples.WebResource.Images.Elephant.jpg&#8221;);</p>
<p>You can find out the exact names of your resources by iterating through the resources in your assembly and then you can cut and paste them into the GetWebResourceUrl() method:</p>
<p>string[] resources = this.GetType().Assembly.GetManifestResourceNames();<br />foreach (string resourceName in resources)<br />{<br />	Debug.WriteLine(resourceName);<br />}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeroen</title>
		<link>http://helephant.com/2006/01/the-resource-cannot-be-found/#comment-120</link>
		<dc:creator>Jeroen</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=186#comment-120</guid>
		<description>Hi Helen,&lt;br /&gt;&lt;br /&gt;I have tried your code to iterate through the assembly, but no resources seem to be available. How do I add a resource to an assembly?</description>
		<content:encoded><![CDATA[<p>Hi Helen,</p>
<p>I have tried your code to iterate through the assembly, but no resources seem to be available. How do I add a resource to an assembly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helen</title>
		<link>http://helephant.com/2006/01/the-resource-cannot-be-found/#comment-121</link>
		<dc:creator>Helen</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://helephant.net/?p=186#comment-121</guid>
		<description>You need to add the resource to your project and then set it&#039;s Build Action property to Embedded Resource.&lt;br /&gt;&lt;br /&gt;I&#039;ve actually written out some step by step instructions about what you need to do on this page:&lt;br /&gt;http://webdev.helephant.com/blog/asp.net/webresourceattribute</description>
		<content:encoded><![CDATA[<p>You need to add the resource to your project and then set it&#8217;s Build Action property to Embedded Resource.</p>
<p>I&#8217;ve actually written out some step by step instructions about what you need to do on this page:<br /><a href="http://webdev.helephant.com/blog/asp.net/webresourceattribute" rel="nofollow">http://webdev.helephant.com/blog/asp.net/webresourceattribute</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
