I am trying the Astoria sample that comes with Dataobjects.net v 4.1.0. When building the Server.Model Project, I get the following error:

Unhandled exception: PostSharp.CodeModel.BindingException: Cannot find the type 'System.Collections.Generic.HashSet`1, System.Core, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' in assembly 'System.Core, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at PostSharp.CodeModel.AssemblyEnvelope.GetTypeDefinition(String typeName, BindingOptions bindingOptions)
   at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition(BindingOptions bindingOptions)
   at PostSharp.Extensibility.Tasks.IndexGenericInstancesTask.Execute()
   at PostSharp.Extensibility.Project.ExecutePhase(String phase)
   at PostSharp.Extensibility.Project.Execute()
   at PostSharp.Extensibility.PostSharpObject.ExecuteProjects()
   at PostSharp.Extensibility.PostSharpObject.InvokeProjects(ProjectInvocation[] projectInvocations)
   at PostSharp.MSBuild.PostSharpRemoteTask.Execute(PostSharpTaskParameters parameters, TaskLoggingHelper log)  Server.Model

I am using visual studio 2010 RC.

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by muhammadadel.

asked Feb 18 '10 at 14:41

Editor's gravatar image


  1. Use DO v4.2 instead of v4.1, the latest build on this moment is here: code.google.com/p/dataobjectsdotnet/downloads/list

  2. What version of VS.NET do you use? If VS.NET 2010, we don't support it yet (but this will be done quite soon as well).

(Feb 18 '10 at 14:41) Alex Yakunin Alex%20Yakunin's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA