<?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 : Entity Server Exception was Unhandled</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Entity Server Exception was Unhandled</description>
  <pubDate>Sat, 11 Apr 2026 13:27:30 -700</pubDate>
  <lastBuildDate>Wed, 19 Mar 2008 09:35:57 -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=728</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>Entity Server Exception was Unhandled : Beta2 is planned for approx. 6...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2714#2714</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> 728<br /><strong>Posted:</strong> 19-Mar-2008 at 9:35am<br /><br />Beta2 is planned for approx. 6 weeks from the Beta1 release date.<DIV>&nbsp;</DIV><DIV>If you'd like, you can zip up your solution and email it to support, attn: Kim, and I'll take a look.</DIV>]]>
   </description>
   <pubDate>Wed, 19 Mar 2008 09:35:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2714#2714</guid>
  </item> 
  <item>
   <title>Entity Server Exception was Unhandled : I&amp;#039;ve been all over tha map...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2711#2711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 728<br /><strong>Posted:</strong> 19-Mar-2008 at 7:06am<br /><br />I've been all over tha map on this namespace thing and I get the same error. I even started from scratch again. I will wait for the next rev which will hopefully be sooooon ;-)?]]>
   </description>
   <pubDate>Wed, 19 Mar 2008 07:06:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2711#2711</guid>
  </item> 
  <item>
   <title>Entity Server Exception was Unhandled : Hmmm. What are the full type names...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2705#2705</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> 728<br /><strong>Posted:</strong> 18-Mar-2008 at 8:31am<br /><br />Hmmm.&nbsp; What are the full type names (including namespace) for one object in both the CSDL and the EF generated code?&nbsp; If you can synch them up without too much difficulty you should be able to get past the problem.&nbsp; ]]>
   </description>
   <pubDate>Tue, 18 Mar 2008 08:31:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2705#2705</guid>
  </item> 
  <item>
   <title>Entity Server Exception was Unhandled : I though that I had cleared the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2704#2704</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 728<br /><strong>Posted:</strong> 18-Mar-2008 at 6:16am<br /><br />I though that I had cleared the root namespace prior to ecountering the problem but I just checked and it was clear. I did a rebuild and the exception still occurs. Looks like I'll have to wait on the next Devforce EF rev to continue.]]>
   </description>
   <pubDate>Tue, 18 Mar 2008 06:16:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2704#2704</guid>
  </item> 
  <item>
   <title>Entity Server Exception was Unhandled : Ron,   Thanks for reporting...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2701#2701</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> 728<br /><strong>Posted:</strong> 17-Mar-2008 at 5:43pm<br /><br />Ron, <DIV>&nbsp;</DIV><DIV>Thanks for reporting this, and for your patience.</DIV><DIV>&nbsp;</DIV><DIV>The problem is somewhat related to our improper handling of namespaces in VB, and also to our current expectation that the type names used in the model (the c-space) correspond to the type names in the generated code in the EF assembly (the o-space).&nbsp; If you clear out&nbsp;the Root namespace in your EF project and then re-build, this should work.</DIV><DIV>&nbsp;</DIV><DIV>We're already fixing the namespace problem.&nbsp; I'll open two additional problem reports:&nbsp; one to address the c-space / o-space name restriction, and another to provide better error messages for these kinds of failures (since this particular error message is quite confusing and misleading).</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 17 Mar 2008 17:43:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2701#2701</guid>
  </item> 
  <item>
   <title>Entity Server Exception was Unhandled : Update  Ok, so I created a console...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2697#2697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 728<br /><strong>Posted:</strong> 14-Mar-2008 at 12:18pm<br /><br />Update<DIV>&nbsp;</DIV><DIV>Ok, so I created a console application in the same solution and tried to execute the code there and I get the same exception. So now I'm stuck. Could this possibly be related to the fact that I'm generating VB? I noticed that all of the tutorials are C#.</DIV>]]>
   </description>
   <pubDate>Fri, 14 Mar 2008 12:18:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2697#2697</guid>
  </item> 
  <item>
   <title>Entity Server Exception was Unhandled :        I tried to add a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2696#2696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 728<br /><strong>Posted:</strong> 14-Mar-2008 at 12:05pm<br /><br /><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>I tried to add a form to my project with buttons to execute various queries and write the query results to the console. I noticed that none of the tutorials use forms as yet so I may be venturing into unimlemented territory but nothing ventured, nothing gained. The form code is as follows:</DIV><DIV>&nbsp;</DIV><DIV>Public Class Form1</DIV><DIV>&nbsp;&nbsp; Private Shared aManager As DomainModel.Manager = New DomainModel.Manager()</DIV><DIV>&nbsp;&nbsp; Public Sub New()</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' This call is required by the Windows Form Designer.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InitializeComponent()</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Add any initialization after the InitializeComponent() call.</DIV><DIV>&nbsp;&nbsp; End Sub</DIV><DIV>&nbsp;&nbsp; Private Sub Query01()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim query = aManager.Customers<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each aCustomer As DomainModel.Customer In query<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(aCustomer.CompanyName)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next aCustomer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Console.WriteLine()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Console.WriteLine("Press ENTER to close window.")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Console.ReadLine()<BR>&nbsp;&nbsp; End Sub</DIV><DIV>&nbsp;&nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Query01()<BR>&nbsp;&nbsp; End Sub<BR>End Class<BR></DIV><DIV>When I run tha app and click on Button1 I get Server Exception was Unhandled when the For Each statement is executed. The details of the exception is as follows:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>IdeaBlade.EntityModel.v4.EntityServerException was unhandled<BR>&nbsp; Cancelled=False<BR>&nbsp; Message="Value cannot be null. Parameter name: key"<BR>&nbsp; Source="IdeaBlade.EntityModel.v4"<BR>&nbsp; StackTrace:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.HandleEntityServerException(Exception pException, Boolean pTryToHandle, PersistenceOperation pOperation)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteServerQuery(IEntityQuery pEntityQuery)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteFetch(IEntityFinder finder)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityQueryFinder.Execute()&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQueryCore(IEntityQuery query, QueryStrategy strategy)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery query, QueryStrategy strategy, Boolean checkT)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery`1 query)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityQuery`1.GetEnumerator()&nbsp;&nbsp;&nbsp; at DevForceEFTest2.Form1.Query01() in C:\Documents and Settings\Ron\My Documents\Visual Studio 2008\Projects\DevForceTest2\DevForceEFTest2\Form1.vb:line 16&nbsp;&nbsp;&nbsp; at DevForceEFTest2.Form1.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Ron\My Documents\Visual Studio 2008\Projects\DevForceTest2\DevForceEFTest2\Form1.vb:line 25&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.OnClick(EventArgs e)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Button.OnClick(EventArgs e)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.WndProc(Message&amp; m)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Button.WndProc(Message&amp; m)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Application.Run(ApplicationContext context)&nbsp;&nbsp;&nbsp; at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()&nbsp;&nbsp;&nbsp; at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()&nbsp;&nbsp;&nbsp; at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String&#091;&#093; commandLine)&nbsp;&nbsp;&nbsp; at DevForceEFTest2.My.MyApplication.Main(String&#091;&#093; Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81&nbsp;&nbsp;&nbsp; at System.AppDomain._nExecuteAssembly(Assembly assembly, String&#091;&#093; args)&nbsp;&nbsp;&nbsp; at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String&#091;&#093; args)&nbsp;&nbsp;&nbsp; at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&nbsp;&nbsp;&nbsp; at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&nbsp;&nbsp;&nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&nbsp;&nbsp;&nbsp; at System.Threading.ThreadHelper.ThreadStart()<BR>&nbsp; InnerException: System.ArgumentNullException<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message="Value cannot be null. Parameter name: key"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ParamName="key"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Source="IdeaBlade.EntityModel.v4"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StackTrace:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityServerProxy.CheckConnection(Exception pException)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityServerProxy.Fetch(SessionBundle pBundle, IEntityQuery pQuery)&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteServerQuery(IEntityQuery pEntityQuery)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InnerException: <BR></DIV>]]>
   </description>
   <pubDate>Fri, 14 Mar 2008 12:05:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=728&amp;PID=2696#2696</guid>
  </item> 
 </channel>
</rss>