<?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 : Designer Error both Blend &amp; Visual Studio</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Designer Error both Blend &amp; Visual Studio</description>
  <pubDate>Mon, 13 Apr 2026 14:55:50 -700</pubDate>
  <lastBuildDate>Wed, 21 Mar 2012 12:19:55 -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=3350</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>Designer Error both Blend &amp; Visual Studio :  One other thing to try is to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13052#13052</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> 3350<br /><strong>Posted:</strong> 21-Mar-2012 at 12:19pm<br /><br />One other thing to try is to add the InternalsVisibleTo attribute&nbsp;to make your assembly internals visible to System.Runtime.Serialization.&nbsp; Again, we haven't had good results with the serializer if SL5 is installed, but it could be worth a try.&nbsp;&nbsp; DevForce will usually auto-generate this attribute into Code First model assemblies, but it could be missing.<div>&nbsp;</div><div>&#091;<span style="color: blue;">assembly</span>:&nbsp;<span style="color: rgb43, 145, 175;">InternalsVisibleTo</span>(<span style="color: rgb163, 21, 21;">"System.Runtime.Serialization,&nbsp;PublicKey=00240000048000009400000006020000002400005253413100040000010001008d56c76f9e8649383049f383c44be0ec204181822a6c31cf5eb7ef486944d032188ea1d3920763712ccb12d75fb77e9811149e6148e5d32fbaab37611c1878ddc19e20ef135d0cb2cff2bfec3d115810c3d9069638fe4be215dbf795861920e5ab6f7db2e2ceef136ac23d5dd2bf031700aec232f6c6b1c785b4305c123b37ab"</span>)&#093;</div>]]>
   </description>
   <pubDate>Wed, 21 Mar 2012 12:19:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13052#13052</guid>
  </item> 
  <item>
   <title>Designer Error both Blend &amp; Visual Studio : The assembly is System.Runtime.Serialization,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13051#13051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=962" rel="nofollow">splace</a><br /><strong>Subject:</strong> 3350<br /><strong>Posted:</strong> 21-Mar-2012 at 12:12pm<br /><br />The assembly is System.Runtime.Serialization, I don't think I can remove the AllowPartiallyTrustedCallers attribute. This application is targeting SL5 only.]]>
   </description>
   <pubDate>Wed, 21 Mar 2012 12:12:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13051#13051</guid>
  </item> 
  <item>
   <title>Designer Error both Blend &amp; Visual Studio :   We&amp;#039;ve seen quite a few...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13048#13048</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> 3350<br /><strong>Posted:</strong> 21-Mar-2012 at 9:03am<br /><br />We've seen quite a few problems with design time data once SL5 is installed.&nbsp; Most of the problems are related to use of the DataContractSerializer, which is what DevForce is using to load the ibmmx metadata file.&nbsp;&nbsp; We haven't seen this specific error before, so you <em>might</em> be able to move further along if you remove the AllowPartiallyTrustedCallers attribute from this assembly.<div>&nbsp;</div><div>I should add that we've seen designer problems in applications targeting either SL4 or SL5 once SL5 is installed.&nbsp; </div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 21 Mar 2012 09:03:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13048#13048</guid>
  </item> 
  <item>
   <title>Designer Error both Blend &amp; Visual Studio :  Devforce 6.1.6.0 express,Silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13040#13040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=962" rel="nofollow">splace</a><br /><strong>Subject:</strong> 3350<br /><strong>Posted:</strong> 20-Mar-2012 at 4:54pm<br /><br /><div>Devforce 6.1.6.0 express,&nbsp;</div><div>Silverlight 5.0</div><div>Visual Studio 2010 SP1</div><div><br></div><div>Whenever I try to reference in a DataContext of one of my code first DevForce classes in a designer (both blend and visual studio), I get the following exception:</div><div><br></div><div>Attempt by security transparent method 'DynamicClass.ReadEntityModelMetadataFromXml(System.Runtime.Serialization.XmlReaderDelegator, System.Runtime.Serialization.XmlObjectSerializerReadContext, System.Xml.XmlDictionaryString&#091;&#093;, System.Xml.XmlDictionaryString&#091;&#093;)' to access security critical type 'IdeaBlade.EntityModel.EntityModelMetadata' failed.</div><div><br></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; &nbsp;at ReadEntityModelMetadataFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString&#091;&#093; , XmlDictionaryString&#091;&#093; )</div><div>&nbsp; &nbsp;at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)</div><div>&nbsp; &nbsp;at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)</div><div>&nbsp; &nbsp;at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract&amp; dataContract)</div><div>&nbsp; &nbsp;at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)</div><div>&nbsp; &nbsp;at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)</div><div>&nbsp; &nbsp;at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)</div><div>&nbsp; &nbsp;at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.SerializationFns.RestoreDCS(Type instanceType, Stream stream, Boolean closeOnExit, IEnumerable`1 knownTypes, Boolean useBinaryFormat)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityMetadataStore.&lt;&gt;c__DisplayClass13.&lt;LoadMetadataFromEmbeddedResources&gt;b__10(String nm)</div><div>&nbsp; &nbsp;at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityMetadataStore.LoadMetadataFromEmbeddedResources(Assembly assembly)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityMetadataStore.GetEntityMetadata(Type entityType)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityAspect.get_EntityGroup()</div><div>&nbsp; &nbsp;at IdeaBlade.Aop.ProvideEntityAspect.GetEntityProperty(LocationInterceptionArgs args)</div><div>&nbsp; &nbsp;at IdeaBlade.Aop.ProvideEntityAspect.PropertySetInterceptor(LocationInterceptionArgs args)</div><div><br></div><div><br></div><span style="font-size:10px"><br /><br />Edited by splace - 20-Mar-2012 at 4:56pm</span>]]>
   </description>
   <pubDate>Tue, 20 Mar 2012 16:54:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3350&amp;PID=13040#13040</guid>
  </item> 
 </channel>
</rss>