<?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 : EntityServerException</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : EntityServerException</description>
  <pubDate>Sat, 27 Jun 2026 06:37:00 -700</pubDate>
  <lastBuildDate>Thu, 19 Jun 2008 13:52:01 -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=803</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>EntityServerException : The &amp;#034;Generate post-build...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=3100#3100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=299" rel="nofollow">smiller</a><br /><strong>Subject:</strong> 803<br /><strong>Posted:</strong> 19-Jun-2008 at 1:52pm<br /><br />The "Generate post-build event" option in DEF RC1 is a welcome addition.&nbsp; My only suggestion is that maybe this option shouldn't exist at all, and could simply follow what the EF Model's metadata artifact processing property is set to.<DIV>&nbsp;</DIV><DIV>Either way, I like that I now have the ability to get rid of the post build event.</DIV>]]>
   </description>
   <pubDate>Thu, 19 Jun 2008 13:52:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=3100#3100</guid>
  </item> 
  <item>
   <title>EntityServerException : DEF Beta2 will have an option...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2964#2964</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> 803<br /><strong>Posted:</strong> 16-May-2008 at 9:13am<br /><br />DEF Beta2 will have an option to turn off the post-build event.&nbsp; DEF Beta2 is built on top of the new .NET 3.5 SP1 Beta (aka EF beta4) and is .. coming soon.&nbsp; I've been proved wrong about this before, but we should be going to final internal testing next week.&nbsp; DEF Beta1 does not work with the new EF bits.<DIV>&nbsp;</DIV><DIV>The problem you're seeing with having to switch the metadata artifact processing back and forth between embedded and output files actually has nothing to do with DevForce; it's a limitation in&nbsp;EF beta3, and why we recommend against using the embedded option with it.&nbsp;&nbsp;EF beta4 does not have this problem.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 16 May 2008 09:13:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2964#2964</guid>
  </item> 
  <item>
   <title>EntityServerException : Adding some script to the begging/end...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2963#2963</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=299" rel="nofollow">smiller</a><br /><strong>Subject:</strong> 803<br /><strong>Posted:</strong> 16-May-2008 at 7:16am<br /><br /><DIV>Adding some script to the begging/end of the post build event is a reasonable workaround.&nbsp; Can I suggest that there be an option in future version of DEF to turn this off however?&nbsp; Or better yet, automagically figure out if I've turned on "Embed in Output Assembly" and simply leave the post build actions out?</DIV><DIV>&nbsp;</DIV><DIV>It appears that with EF Beta 3 each time I change my Model I have to build once with "Metadata Artifact Processing" set to "Copy to Output Directory" before I can build with the "Embed in Output Assembly" option.&nbsp; Not that there's not a build failure... but without the extra step any changes I've made aren't persisted leaving me with a stale assembly.</DIV><DIV>&nbsp;</DIV><DIV>Haven't tried this with EF Beta 4, but after reading the breaking changes (<a href="http://blogs.msdn.com/ad&#111;net/pages/entity-framework-breaking-changes-visual-studio-2008-net-3-5-sp1-beta.aspx" target="_blank">http://blogs.msdn.com/adonet/pages/entity-framework-breaking-changes-visual-studio-2008-net-3-5-sp1-beta.aspx</A>) I can only assume that DEF Beta 1 isn't going to work with it.&nbsp; Understandable.&nbsp; Any idea on the timeframe for DEF Beta 2?</DIV>]]>
   </description>
   <pubDate>Fri, 16 May 2008 07:16:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2963#2963</guid>
  </item> 
  <item>
   <title>EntityServerException : Unfortunately there&amp;#039;s not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2960#2960</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> 803<br /><strong>Posted:</strong> 15-May-2008 at 10:54am<br /><br />Unfortunately there's not currently a way to turn off the post-build event.&nbsp; You can, though, add some post-build event commands of your own to bypass the copy logic.&nbsp; Try adding a "goto BuildEventOK" as the first line in the post-build command line, prior to the "rem &#091;IdeaBlade-begin&#093;" line.&nbsp; The post-build command will still be executed, but this should jump to a label near the end of the processing.<DIV></DIV><DIV></DIV><P>You're right that using embedded artifacts makes the post-build unnecessary, but we've found in the Entity Framework Beta3 that resource embedding doesn't work well.&nbsp;&nbsp; EF Beta4, which we're working with now and which DEF Beta2 will work with, has much improved embedded resource support.</P><DIV></DIV><DIV></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Thu, 15 May 2008 10:54:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2960#2960</guid>
  </item> 
  <item>
   <title>EntityServerException :  Originally posted by kimj DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2958#2958</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=299" rel="nofollow">smiller</a><br /><strong>Subject:</strong> 803<br /><strong>Posted:</strong> 15-May-2008 at 9:02am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by kimj</strong></em><br /><br /><DIV>DevForce EF does add a post-build event to any project referencing the "DEF domain model assembly" to copy these files, but in Beta1 that post-build happens one step too late.&nbsp; If you build a second time it <EM>should</EM> successfully copy the files.</DIV><DIV>&nbsp;</DIV><DIV>It's possible that the post-build event was not successfully&nbsp;added to your project, in which case you'll need to either write your own, or manually copy the files to the executable directory.&nbsp; If a post-build was not created for you, please let us know, since that's a bug. </DIV><DIV></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Is there anyway to turn off the addition of the post-build event.&nbsp; I'd much rather set "Metadata Artifact Processing" to "Embed in Output Assembly" in my EDMX model... which I believe makes the post-build steps unnecessary.</DIV>]]>
   </description>
   <pubDate>Thu, 15 May 2008 09:02:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2958#2958</guid>
  </item> 
  <item>
   <title>EntityServerException : Thanks for you help I got it figured...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2950#2950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=311" rel="nofollow">danielg</a><br /><strong>Subject:</strong> 803<br /><strong>Posted:</strong> 09-May-2008 at 9:59am<br /><br />Thanks for you help I got it figured out.&nbsp; In the end it was my trying to using the Entity Framework tools on x64 when they are really only for 32bit. &nbsp; The EntityDeploy MsBuild task was not getting triggered and thus the Entity Fragment files were not ending up in the output directory.&nbsp; The strange thing though is that there were no errors generated so I though things were building fine.&nbsp; After some searching I found an article that helps to workaround this problem on x64.<br><br>http://forums.devx.com/archive/index.php/t-165542.html<br><br>After this the build works correctly.&nbsp; Thank you for your help.<br><br>Daniel<br>]]>
   </description>
   <pubDate>Fri, 09 May 2008 09:59:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2950#2950</guid>
  </item> 
  <item>
   <title>EntityServerException : EF Beta3 creates one .edmx file...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2948#2948</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> 803<br /><strong>Posted:</strong> 09-May-2008 at 8:59am<br /><br />EF Beta3 creates one .edmx file in your project when you add a new ADO.NET Entity Data Model.&nbsp; The BuildAction for that file should be "EntityDeploy", which ensures that when the project is built the 3 metadata artifact files (*.csdl, *.msl, *.ssdl) are generated into your bin directory.&nbsp; There is an option to embed these files as resources in the output DLL, but in truth that doesn't work too well right now.&nbsp; In our tutorials, you should see these artifact files created in the bin directory of the "EF entity model" project folder.<DIV>&nbsp;</DIV><DIV>So, double check that these files were generated, and if not, check that the BuildAction of the edmx file is correct.&nbsp; And then, once generated, ensure that they are copied to your executable folder (by the post-build event).&nbsp; </DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 09 May 2008 08:59:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2948#2948</guid>
  </item> 
  <item>
   <title>EntityServerException : Thank you for the explanation...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2947#2947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=311" rel="nofollow">danielg</a><br /><strong>Subject:</strong> 803<br /><strong>Posted:</strong> 09-May-2008 at 8:22am<br /><br />Thank you for the explanation at least I now know why this is happening.&nbsp; Yes the post build commands are being generated correctly.&nbsp; The problem lies however in the fact that the .csdl .msl and .ssdl files are not being generated. The output directory for the EF mapping project only contains one dll. I did some searching and it appears that this is the standard behavior in EF Beta 3.&nbsp; Apparently those three files are complied into the dll.<br><br>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2108642&amp;SiteID=1<br><br>Is this something that you have encountered before?<br>]]>
   </description>
   <pubDate>Fri, 09 May 2008 08:22:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2947#2947</guid>
  </item> 
  <item>
   <title>EntityServerException : Daniel,  You need to ensure...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2946#2946</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> 803<br /><strong>Posted:</strong> 08-May-2008 at 5:55pm<br /><br />Daniel,<DIV>&nbsp;</DIV><DIV>You need to ensure that the "EF entity model assembly" and the associated artifact files (*.msl, *.csdl, *.ssdl) can be found at runtime, usually in the working directory.</DIV><DIV>&nbsp;</DIV><DIV>DevForce EF does add a post-build event to any project referencing the "DEF domain model assembly" to copy these files, but in Beta1 that post-build happens one step too late.&nbsp; If you build a second time it <EM>should</EM> successfully copy the files.</DIV><DIV>&nbsp;</DIV><DIV>It's possible that the post-build event was not successfully&nbsp;added to your project, in which case you'll need to either write your own, or manually copy the files to the executable directory.&nbsp; If a post-build was not created for you, please let us know, since that's a bug. </DIV><DIV>&nbsp;</DIV><DIV>Here's a sample post-build from one of the tutorials:</DIV><DIV>&nbsp;</DIV><DIV>rem &#091;IdeaBlade-begin&#093;<BR>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelNorthwindIB\bin\Debug\*.csdl" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelNorthwindIB\bin\Debug\*.msl" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelNorthwindIB\bin\Debug\*.ssdl" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelNorthwindIB\bin\Debug\ServerModelNorthwindIB.dll" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelAw2000\bin\Debug\*.csdl" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelAw2000\bin\Debug\*.msl" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelAw2000\bin\Debug\*.ssdl" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>copy&nbsp; "C:\Head\Learning Units\100 Fundamentals\020 Retrieving Data\02 Tutorials\CS\Completed_Pt1\ServerModelAw2000\bin\Debug\ServerModelAw2000.dll" "$(TargetDir)"<BR>if errorlevel 1 goto BuildEventFailed</DIV><DIV>goto BuildEventOK<BR>:BuildEventFailed<BR>echo IdeaBlade post-build event for $(ProjectName) failed<BR>exit 0<BR>:BuildEventOK<BR>echo IdeaBlade post-build event for $(ProjectName) completed Ok<BR>rem &#091;IdeaBlade-end&#093;</DIV>]]>
   </description>
   <pubDate>Thu, 08 May 2008 17:55:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2946#2946</guid>
  </item> 
  <item>
   <title>EntityServerException : I&amp;#039;m quite new to the EF Beta...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2945#2945</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=311" rel="nofollow">danielg</a><br /><strong>Subject:</strong> 803<br /><strong>Posted:</strong> 08-May-2008 at 5:04pm<br /><br />I'm quite new to the EF Beta and I am having a few issues getting things to work properly. The install went great, mapping went fairly well, but whenever I try to start my application and pull data I get this error...<br><br>Error in EdmKey CustomDB: Unable to locate an ObjectContext in the probe assemblies.&nbsp; This is often caused by not copying your EF model 'dll' to the deployment directory.<br><br>-------- Stack Trace ------------<br><br>"&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.HandleEntityServerException(Exception pException, Boolean pTryToHandle, PersistenceOperation pOperation)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteServerQuery(IEntityQuery pEntityQuery)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteFetch(IEntityFinder finder)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityQueryFinder.Execute()\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQueryCore(IEntityQuery query, QueryStrategy strategy)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery query, QueryStrategy strategy, Boolean checkT)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery`1 query)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityQuery`1.GetEnumerator()\r\n&nbsp;&nbsp; at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n&nbsp;&nbsp; at System.Linq.Enumerable.ToList&#091;TSource&#093;(IEnumerable`1 source)\r\n&nbsp;&nbsp; at TestUI.Form1..ctor() in D:\\Memx\\Programs\\DFManger\\TestUI\\Form1.cs:line 23\r\n&nbsp;&nbsp; at TestUI.Program.Main() in D:\\Memx\\Programs\\DFManger\\TestUI\\Program.cs:line 18\r\n&nbsp;&nbsp; at System.AppDomain._nExecuteAssembly(Assembly assembly, String&#091;&#093; args)\r\n&nbsp;&nbsp; at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n&nbsp;&nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n&nbsp;&nbsp; at System.Threading.ThreadHelper.ThreadStart()"<br><br>--- End of Stack Trace ---------------<br><br><br>I have verified that my model dll is getting copied to the output directory.&nbsp; I get this same error when attempting to run any of the learning units that were included in the distribution as well.&nbsp; <br><br>I am running Server 2003 x64,&nbsp; VS2008 professional and I do have an older 3.6.x version of DevForce installed.<br><br>Any help would be appreciated.<br><br>Thanks, Daniel<br>]]>
   </description>
   <pubDate>Thu, 08 May 2008 17:04:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=803&amp;PID=2945#2945</guid>
  </item> 
 </channel>
</rss>