Jump to content

Recommended Posts

I tried converting another project, and I do not understand what I should do with the error I received.

I get the following error, could you please guide me, what this mean:

The "CallGraphGenerationTask" task failed unexpectedly.
System.ArgumentNullException: Value cannot be null.
Parameter name: key
  at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
  at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
  at Artinsoft.Winforms2Silverlight.ControlFlowCutProcessing.MemberNodes.GetMethod(String fullName)
  at Artinsoft.Winforms2Silverlight.ControlFlowCutProcessing.CallInformationCollector.ProcessMethodDeclaration(CSMethod methodDecl, FlowCutCollectionState state)
  at Artinsoft.Winforms2Silverlight.ControlFlowCutProcessing.CallInformationCollector.<CreateSearcher>b__3(CSMethod methodDecl, FlowCutCollectionState state)
  at Artinsoft.Common.Tools.Search.ActionSearchDelegate`2.Visit(T node, TContext ctx)
  at Artinsoft.Common.Visitor.VisitorDelegate`2.Action(Object node, TContext ctx)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.VisitDelegation(TVisitable node, TDelegate nodeDelegate)
  at Artinsoft.Common.Tools.ReplacerVisitor`1.VisitDelegation(IAst node, IAstDelegate`1 nodeDelegate)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.Visit(TVisitable node)
  at Artinsoft.Common.AST.Compound`2.Accept(IVisitor`1 visitor)
  at Artinsoft.Common.Tools.ReplacerVisitor`1.LoopLeftToRight(ISlotContainer container, Int32 slothCount)
  at Artinsoft.Common.Tools.ReplacerVisitor`1.ChildrenLoop(IAst node)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.VisitChildren(IVisitorDelegate`1 nodeDelegate, TVisitable node)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.Visit(TVisitable node)
  at Artinsoft.Common.AST.Compound`2.Accept(IVisitor`1 visitor)
  at Artinsoft.Common.Tools.ReplacerVisitor`1.LoopLeftToRight(ISlotContainer container, Int32 slothCount)
  at Artinsoft.Common.Tools.ReplacerVisitor`1.ChildrenLoop(IAst node)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.VisitChildren(IVisitorDelegate`1 nodeDelegate, TVisitable node)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.Visit(TVisitable node)
  at Artinsoft.Common.AST.Compound`2.Accept(IVisitor`1 visitor)
  at Artinsoft.Common.Tools.ReplacerVisitor`1.LoopLeftToRight(ISlotContainer container, Int32 slothCount)
  at Artinsoft.Common.Tools.ReplacerVisitor`1.ChildrenLoop(IAst node)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.VisitChildren(IVisitorDelegate`1 nodeDelegate, TVisitable node)
  at Artinsoft.Common.Visitor.DelegatorVisitor`3.Visit(TVisitable node)
  at Artinsoft.Common.AST.Compound`2.Accept(IVisitor`1 visitor)
  at Artinsoft.Common.Tools.ReplaceSearcher`2.Execute[T](T& ast, TVisitor visitor)
  at Artinsoft.Common.Tools.ReplaceSearcher`2.Execute[T](T& ast, Traversal traversal, TState state)
  at Artinsoft.Winforms2Silverlight.ControlFlowCutProcessing.CallInformationCollector.CollectCallInformationFromFiles(Project project, FlowCutCollectionState collectionState, Action`1 startWithElementCallback, Action`1 doneWithElementCallback)
  at ControlFlowCutProcessing.CallGraphGenerationTask.ExecuteImpl()
  at Artinsoft.CSharp.Tasks.AbstractTask.BeforeExecuteImpl()
  at Artinsoft.Common.MSBuild.BaseCancellableTask.Execute()
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
  at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

 

Share this post


Link to post
Share on other sites

Hi,

First of all make sure, that the project compiles without errors and retry the conversion.

If the error still occurs, then please let us now if you have the following scenario:

A method definition that is marked as "async" , has "void" as its return type and is an explicit implementation of a interface method.

For example:

public interface MyInterface

{

     void MyMethod();

}

public class MyClass  : MyInterface

{

     async void MyInterface.MyMethod() {

     }

}

Is there a something similar to this scenario in your project?

Thanks 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use