<?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 : Design-time problem</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Design-time problem</description>
  <pubDate>Wed, 13 May 2026 01:03:12 -700</pubDate>
  <lastBuildDate>Fri, 21 Sep 2012 10:57:32 -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=3247</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>Design-time problem :   Yes, this &amp;#034;Method not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=14498#14498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3247<br /><strong>Posted:</strong> 21-Sep-2012 at 10:57am<br /><br />Yes, this "Method not found" problem is one we've seen when using an EntityCacheState at design time.<div>&nbsp;</div><div>We don't have any fixes for this, and the best advice I can give right now is not to use the ECS at design time.&nbsp; You can create detached entities, or create and attach them to an EntityManager if you wish to retrieve them from the EM cache.</div>]]>
   </description>
   <pubDate>Fri, 21 Sep 2012 10:57:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=14498#14498</guid>
  </item> 
  <item>
   <title>Design-time problem : I have found problem whose the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=14497#14497</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1518" rel="nofollow">blogger</a><br /><strong>Subject:</strong> 3247<br /><strong>Posted:</strong> 21-Sep-2012 at 10:02am<br /><br />I have found problem whose the corresponding exception is listed bellow&nbsp; in design-time mode:<br><br>I am wondering if it is t the problem <a name="12597"></a>   <span id="userPro12597" ="msgSidePro" title="View Drop Down">kimj&nbsp; </span>is talking about, otherwise i wish if you have any idea about this issue knowing that i found it in design mode when i have built the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-bookshelf" target="_blank">BookshelfDF project</a><br><br>Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type)'.<br>&nbsp;&nbsp; at System.Runtime.Serialization.CodeGenerator.EndMethod()<br>&nbsp;&nbsp; at System.Runtime.Serialization.XmlFormatReaderGenerator.CriticalHelper.GenerateClassReader(ClassDataContract classContract)<br>&nbsp;&nbsp; at System.Runtime.Serialization.ClassDataContract.get_XmlFormatReaderDelegate()<br>&nbsp;&nbsp; at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)<br>&nbsp;&nbsp; at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)<br>&nbsp;&nbsp; at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract&amp; dataContract)<br>&nbsp;&nbsp; at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)<br>&nbsp;&nbsp; at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)<br>&nbsp;&nbsp; at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)<br>&nbsp;&nbsp; at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.SerializationFns.RestoreDCS(Type instanceType, Stream stream, Boolean closeOnExit, IEnumerable`1 knownTypes, Boolean useBinaryFormat)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityCacheState.Restore(Stream stream, Boolean closeOnExit, Boolean useBinaryFormat)<br>&nbsp;&nbsp; at BookShelf.DesignEntityManagerProvider.GetDesignEntityCacheState() in C:\Users\ppc\Downloads\BookShelfDF\130_AdditionalTechniques\BookShelfDF\CodeCS\BookShelf\DesignServices\DesignEntityManagerProvider.cs:line 87<br>&nbsp;&nbsp; at BookShelf.DesignEntityManagerProvider.PopulateFromEntityCacheState(EntityManager context) in C:\Users\ppc\Downloads\BookShelfDF\130_AdditionalTechniques\BookShelfDF\CodeCS\BookShelf\DesignServices\DesignEntityManagerProvider.cs:line 69<br>&nbsp;&nbsp; at BookShelf.DesignEntityManagerProvider.CreateManager() in C:\Users\ppc\Downloads\BookShelfDF\130_AdditionalTechniques\BookShelfDF\CodeCS\BookShelf\DesignServices\DesignEntityManagerProvider.cs:line 25<br>&nbsp;&nbsp; at BookShelf.DesignServiceProvider..ctor() in C:\Users\ppc\Downloads\BookShelfDF\130_AdditionalTechniques\BookShelfDF\CodeCS\BookShelf\DesignServices\DesignServiceProvider.cs:line 8<br>&nbsp;&nbsp; at BookShelf.ServiceProviderBase.CreateInstance() in C:\Users\ppc\Downloads\BookShelfDF\130_AdditionalTechniques\BookShelfDF\CodeCS\BookShelf\Services\ServiceProviderBase.cs:line 21<br>&nbsp;&nbsp; at BookShelf.ServiceProviderBase.get_Instance() in C:\Users\ppc\Downloads\BookShelfDF\130_AdditionalTechniques\BookShelfDF\CodeCS\BookShelf\Services\ServiceProviderBase.cs:line 16<br>&nbsp;&nbsp; at BookShelf.ViewModelLocator..ctor() in C:\Users\ppc\Downloads\BookShelfDF\130_AdditionalTechniques\BookShelfDF\CodeCS\BookShelf\ViewModels\ViewModelLocator.cs:line 9<br><br>]]>
   </description>
   <pubDate>Fri, 21 Sep 2012 10:02:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=14497#14497</guid>
  </item> 
  <item>
   <title>Design-time problem : Hi Samir,  We haven&amp;#039;t seen...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=12597#12597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3247<br /><strong>Posted:</strong> 01-Feb-2012 at 11:28am<br /><br />Hi Samir,<DIV>&nbsp;</DIV><DIV>We haven't seen this particular design-time error with Silverlight 5 before, but we have seen others (which I mention below).&nbsp; There are a few things you can try:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;- Ensure your assembly has an InternalsVisibleTo attribute specifying System.Runtime.Serialization.&nbsp; We generate this automatically in Silverlight application projects (in AssemblyInfo.cs), so if your model project doesn't already include it you can copy&nbsp;the attribute&nbsp;from one that does.</DIV><DIV>&nbsp;</DIV><DIV><DIV>- If the above doesn't work add the AllowPartiallyTrusedCallers attribute to your assembly.</DIV><DIV>&nbsp;</DIV><DIV>Now for the SL5 design-time errors we've run into.&nbsp; Even should you get the above working, we've seen problems with using an EntityCacheState at design time, and with adding or attaching entities to an EntityManager.&nbsp; These problems will usually manifest as a MissingMethodException, and will occur in code that was working fine when only Silverlight 4 was installed.&nbsp;&nbsp; We don't yet have an answer for these problems, since Microsoft tells us they're caused by designer dependencies on .NET 4.5.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>If you do run into additional problems, we have found that creating entities, but not attaching or adding them to an EntityManager, does work.</DIV><DIV>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 01 Feb 2012 11:28:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=12597#12597</guid>
  </item> 
  <item>
   <title>Design-time problem :   Hello.I&#194;&#180;m trying to instantiate...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=12594#12594</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1112" rel="nofollow">samir</a><br /><strong>Subject:</strong> 3247<br /><strong>Posted:</strong> 01-Feb-2012 at 6:43am<br /><br />Hello.<div>&nbsp;</div><div>I´m trying to instantiate an Entity Manager during design-time but I get this error:</div><div>&nbsp;</div><div>Attempt by security transparent method 'DynamicClass.ReadImaginePulseTaskFromXml(System.Runtime.Serialization.XmlReaderDelegator, System.Runtime.Serialization.XmlObjectSerializerReadContext, System.Xml.XmlDictionaryString&#091;&#093;, System.Xml.XmlDictionaryString&#091;&#093;)' to access security critical type 'ImaginePulse.Models.ImaginePulseTask' failed.</div><div>&nbsp;</div><div>Assembly 'System.Runtime.Serialization, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.&nbsp; Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.</div><div>&nbsp;</div><div>Do you have any idea how can I solve this error?</div><div>&nbsp;</div><div>Thanks,</div><div>Samir</div>]]>
   </description>
   <pubDate>Wed, 01 Feb 2012 06:43:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3247&amp;PID=12594#12594</guid>
  </item> 
 </channel>
</rss>