|
While working on my Automaton framework for build automaton with Team Foundation Server I've come upon this rather cryptic exception. It seems to happen only once in a while, something I'm able to do successfull requests without this exception.
What I have is an .ashx which returns some HTML content to my .aspx, and the .ashx is called using Xml Http javascript call (AJAX).
The error occurs when I try to read the .WorkItems property on an instance of the Changeset class.
Full exception stack:
[ArgumentException: Cannot pass a GCHandle across AppDomains. Parameter name: handle] System.Runtime.InteropServices.GCHandle.InternalCheckDomain(IntPtr handle) +0 System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value) +92 CProdStudioObjectRoot.{dtor}(CProdStudioObjectRoot* ) +87 CField.{dtor}(CField* ) +254 ATL.CComObject<CField>.Release(CComObject<CField>* ) +208 CProdStudioObjectRoot.ReleaseRegistered() +497 Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.set_CallingProcessIdentity(Int32 hCallingProcessIdentity) +335 Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal() +706 Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.Microsoft.TeamFoundation.Client.ITeamFoundationServerObject.Initialize(TeamFoundationServer teamFoundationServer) +90 Microsoft.TeamFoundation.Client.TeamFoundationServer.CreateITFSObjectInstance(Type serviceType) +137 Microsoft.TeamFoundation.Client.TeamFoundationServer.GetService(Type serviceType) +241 Microsoft.TeamFoundation.VersionControl.Client.Changeset.get_WorkItemStore() +31 Microsoft.TeamFoundation.VersionControl.Client.Changeset.get_WorkItems() +24 changeset.ProcessRequest(HttpContext context) in c:\Documents and Settings\sonbje\My Documents\Visual Studio 2005\Workspaces\Automaton\Automaton\changeset.ashx:77 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
|