I once in a while get a wierd error when building a project, and ic ant seem to figure out what or why its doing it. I ahve to close the IDE down, delete the bin and obj directories and restart the ide, normally this solves it, something though i have to reboot the computer.
Error 5 The "GenerateResource" task failed unexpectedly.
System.Reflection.TargetInvocationException: Type in the data at line 141, position 5, cannot be loaded because it threw the following exception during construction: Invalid cast from 'SD.LLBLGen.Pro.ORMSupportClasses.EntityState' to 'SD.LLBLGen.Pro.ORMSupportClasses.EntityState'. ---> System.Xml.XmlException: Type in the data at line 141, position 5, cannot be loaded because it threw the following exception during construction: Invalid cast from 'SD.LLBLGen.Pro.ORMSupportClasses.EntityState' to 'SD.LLBLGen.Pro.ORMSupportClasses.EntityState'. Line 141, position 5. ---> System.InvalidCastException: Invalid cast from 'SD.LLBLGen.Pro.ORMSupportClasses.EntityState' to 'SD.LLBLGen.Pro.ORMSupportClasses.EntityState'.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.Enum.System.IConvertible.ToType(Type type, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Runtime.Serialization.FormatterConverter.Convert(Object value, Type type)
at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type)
at SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2..ctor(SerializationInfo info, StreamingContext context)
at Mingus.Data.Application.EntityClasses.ItemEntity..ctor(SerializationInfo info, StreamingContext context) in C:\devel\Mingus\src\Mingus.Data.Application\EntityClasses\ItemEntity.cs:line 101
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String filename, String classname, Boolean publicClass)
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) Mingus.UI.ManagementStudio.ApplicationCore