<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Extension Method MakeWeak error</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Extension Method MakeWeak error</description>
  <pubDate>Fri, 10 Apr 2026 20:24:34 -700</pubDate>
  <lastBuildDate>Fri, 09 Nov 2012 07:47:36 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3786</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Extension Method MakeWeak error : It works fine.Thanks Mark. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3786&amp;PID=15166#15166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 3786<br /><strong>Posted:</strong> 09-Nov-2012 at 7:47am<br /><br />It works fine.<div><br></div><div>Thanks Mark.</div>]]>
   </description>
   <pubDate>Fri, 09 Nov 2012 07:47:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3786&amp;PID=15166#15166</guid>
  </item> 
  <item>
   <title>Extension Method MakeWeak error : You need to open up your AssemblyInfo.cs...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3786&amp;PID=15164#15164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3786<br /><strong>Posted:</strong> 09-Nov-2012 at 5:57am<br /><br />You need to open up your AssemblyInfo.cs file in your DomainServices project and add this line:<br><br>&#091;assembly: InternalsVisibleTo("IdeaBlade.Core.SL, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b3f302890eb528"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + "1a7ab39b936ad9e0eded7c4a41abb440bead71ff5a31d51e865606b2a7e6d0b9dd0d92b113b9d1"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + "0fb13f01fb5d856e99c1e61777cf4772d29bad7e66ffb93fc5cbd63b395046c06ff57db6ecbeee"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + "4bdd6effc405878d65cfc4911708ed650da935d733fc5dc707f74910e025ac080543e01a6cc863"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + "b9f85ffc")&#093;<br><br>]]>
   </description>
   <pubDate>Fri, 09 Nov 2012 05:57:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3786&amp;PID=15164#15164</guid>
  </item> 
  <item>
   <title>Extension Method MakeWeak error : I trying to implement a global...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3786&amp;PID=15163#15163</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 3786<br /><strong>Posted:</strong> 09-Nov-2012 at 5:25am<br /><br />I trying to implement a global cache repository as TempHire does. So, when registering an event with weak reference I receive an error:<div><br></div><div><div>Error Message:&nbsp;</div><div>Exception has been thrown by the target of an invocation.</div><div><br></div><div>Detail:</div><div>Attempt by method 'IdeaBlade.Core.WeakEventHandler`2&lt;System.__Canon,System.__Canon&gt;..ctor(System.EventHandler`1&lt;System.__Canon&gt;, IdeaBlade.Core.UnregisterCallback`1&lt;System.__Canon&gt;)' to access method 'DomainServices.Helpers.GlobalCacheRepository`1&lt;System.__Canon&gt;.OnManagerCreated(System.Object, IdeaBlade.EntityModel.EntityManagerCreatedEventArgs)' failed.</div></div><div><br></div><div><div>Code:</div><div>&nbsp;public GlobalCacheRepository(IEntityManagerProvider entityManagerProvider, IGlobalCache globalCache)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : base(entityManagerProvider)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _globalCache = globalCache;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entityManagerProvider.ManagerCreated += new EventHandler&lt;EntityManagerCreatedEventArgs&gt;(OnManagerCreated)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.MakeWeak(eh =&gt; entityManagerProvider.ManagerCreated -= eh);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (globalCache != null)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DefaultQueryStrategy = QueryStrategy.CacheOnly;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div>What am I doing wrong?</div><div><br></div><div>PS: If I don't use MakeWeak it works.</div>]]>
   </description>
   <pubDate>Fri, 09 Nov 2012 05:25:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3786&amp;PID=15163#15163</guid>
  </item> 
 </channel>
</rss>