Code Inspection .Net does not work

I have installed Team City 8 and try to configure a build.
Everything works fine now for me but the code inspection for .net detects too many inspections.
For example it says "Cannot resolve symbol 'System'" or " Cannot resolve symbol 'int'".
I don´t know what the problem is but I found in the build log some internal exceptions:

  1. [Step 4/5] Internal  exception thrown: Can not update content of project 'MYPROJECT'.  Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.  --- EXCEPTION #1/2 [NullReferenceException] Message = "Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt." ExceptionPath = Root.InnerException ClassName = System.NullReferenceException HResult = COR_E_NULLREFERENCE=E_POINTER=80004003 Source = JetBrains.Platform.ReSharper.ProjectModel.MsBuild StackTraceString = "      bei  JetBrains.ProjectModel.MsBuild.Extensions.ProjectReferencesBuilder.ProcessNoStdLibProperty(Boolean  noStdLibProperty, OneToListMap`2 referencesByAssemblyNameIgnoreCase,  IProjectProperties projectProperties)      bei  JetBrains.ProjectModel.MsBuild.Extensions.ProjectReferencesBuilder.BuildProjectReferences(ProjectInstance  projectInstance, IProjectProperties projectProperties, MsBuildProject  msBuildProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectReferencesBuilder.BuildProjectReferences(ProjectInstance  projectInstance, IProjectProperties projectProperties, MsBuildProject  msBuildProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Extensions.MsBuildProjectUpdater.UpdateOrCreateProject(MsBuildProject  msBuildProject, IProject parentProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Extensions.MsBuildProjectLoader.UpdateOrCreateProject(MsBuildProject  slnFileProject, IProject parentProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectModelSynchronizer.LoadProject(MsBuildProject  msBuildProject, IProject parentProject) "  --- Outer ---  --- EXCEPTION #2/2 [LoggerException] Message = "Can not update content of project 'MYPROJECT'. Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt." ExceptionPath = Root ClassName = JetBrains.Util.LoggerException InnerException = "Exception #1 at Root.InnerException" HResult = COR_E_APPLICATION=80131600 StackTraceString = "      bei JetBrains.Util.Logging.Logger.LogException(String comment, Exception ex)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectModelSynchronizer.LoadProject(MsBuildProject  msBuildProject, IProject parentProject)      bei JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectModelSynchronizer.<>c__DisplayClass1.<.ctor>b__0()      bei JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteOneTask(SolutionLoadTask task)      bei JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.DispatchTasks(Boolean background)      bei  JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement  solutionElement, SolutionInstance solutionInstance)      bei JetBrains.ProjectModel.MsBuild.Internal.MsBuildSolutionManager.<>c__DisplayClass5.<.ctor>b__1()      bei Action("Init ReSharper Solution").Execute(Action )      bei JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)      bei JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildSolutionManager.<.ctor>b__0(Lifetime  msBuildSolutionLifetime, MsBuildSolution msBuildSolution)      bei  JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass3e`1.<>c__DisplayClass40.<WhenNotNull>b__3d(Lifetime  lt)      bei  JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass3.<Next>b__2(LifetimeDefinition  definition, Lifetime lifetime)      bei JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)      bei JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)      bei JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)      bei JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass3e`1.<WhenNotNull>b__3c(PropertyChangedEventArgs`1 args)      bei JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)      bei JetBrains.DataFlow.Signal`1.<.ctor>b__0(Signal`1 this, TValue value, Object cookie)      bei Signal(PropertyChangedEventArgs`1::MsBuildSolutionHost.MsBuildSolution).Fire[0](Action`3 , Signal`1 , 0 , Object )      bei JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)      bei JetBrains.DataFlow.Signal`1.Fire(TValue value)      bei JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)      bei JetBrains.DataFlow.Property`1.<.ctor>b__0(Property`1 this, TValue value, Object cookie)      bei Property(MsBuildSolution::MsBuildSolutionHost.MsBuildSolution).SetValue[0](Func`4 , Property`1 , 0 , Object )      bei JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)      bei JetBrains.DataFlow.Property`1.set_Value(TValue value)      bei  JetBrains.ProjectModel.MsBuild.MsBuildSolutionHost.OpenSolution(FileSystemPath  location, IMsBuildSolutionUserProfile userProfile)      bei JetBrains.CommandLine.InspectCode.InspectCode.OpenSolution(FileSystemPath solutionFilePath)      bei JetBrains.CommandLine.InspectCode.InspectCode.Run()      bei JetBrains.CommandLine.InspectCode.InspectCodeProgram.DoMain(ICommandLine cmdline)      bei JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)    "

  2. [Step 4/5] Internal  exception thrown: Can not update content of project  'MYPROJECT.SUBPROJECT1'. Der Objektverweis wurde nicht auf eine  Objektinstanz festgelegt.  --- EXCEPTION #1/2 [NullReferenceException] Message = "Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt." ExceptionPath = Root.InnerException ClassName = System.NullReferenceException HResult = COR_E_NULLREFERENCE=E_POINTER=80004003 Source = JetBrains.Platform.ReSharper.ProjectModel.MsBuild StackTraceString = "      bei  JetBrains.ProjectModel.MsBuild.Extensions.ProjectReferencesBuilder.ProcessNoStdLibProperty(Boolean  noStdLibProperty, OneToListMap`2 referencesByAssemblyNameIgnoreCase,  IProjectProperties projectProperties)      bei  JetBrains.ProjectModel.MsBuild.Extensions.ProjectReferencesBuilder.BuildProjectReferences(ProjectInstance  projectInstance, IProjectProperties projectProperties, MsBuildProject  msBuildProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectReferencesBuilder.BuildProjectReferences(ProjectInstance  projectInstance, IProjectProperties projectProperties, MsBuildProject  msBuildProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Extensions.MsBuildProjectUpdater.UpdateOrCreateProject(MsBuildProject  msBuildProject, IProject parentProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Extensions.MsBuildProjectLoader.UpdateOrCreateProject(MsBuildProject  slnFileProject, IProject parentProject, ISolution solution)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectModelSynchronizer.LoadProject(MsBuildProject  msBuildProject, IProject parentProject) "  --- Outer ---  --- EXCEPTION #2/2 [LoggerException] Message = "Can not update content of project 'MYPROJECT.SUBPROJECT1'.  Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt." ExceptionPath = Root ClassName = JetBrains.Util.LoggerException InnerException = "Exception #1 at Root.InnerException" HResult = COR_E_APPLICATION=80131600 StackTraceString = "      bei JetBrains.Util.Logging.Logger.LogException(String comment, Exception ex)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectModelSynchronizer.LoadProject(MsBuildProject  msBuildProject, IProject parentProject)      bei JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectModelSynchronizer.<>c__DisplayClass1.<.ctor>b__0()      bei JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteOneTask(SolutionLoadTask task)      bei JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.DispatchTasks(Boolean background)      bei  JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement  solutionElement, SolutionInstance solutionInstance)      bei JetBrains.ProjectModel.MsBuild.Internal.MsBuildSolutionManager.<>c__DisplayClass5.<.ctor>b__1()      bei Action("Init ReSharper Solution").Execute(Action )      bei JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)      bei JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action)      bei  JetBrains.ProjectModel.MsBuild.Internal.MsBuildSolutionManager.<.ctor>b__0(Lifetime  msBuildSolutionLifetime, MsBuildSolution msBuildSolution)      bei  JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass3e`1.<>c__DisplayClass40.<WhenNotNull>b__3d(Lifetime  lt)      bei  JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass3.<Next>b__2(LifetimeDefinition  definition, Lifetime lifetime)      bei JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)      bei JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)      bei JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)      bei JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass3e`1.<WhenNotNull>b__3c(PropertyChangedEventArgs`1 args)      bei JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)      bei JetBrains.DataFlow.Signal`1.<.ctor>b__0(Signal`1 this, TValue value, Object cookie)      bei Signal(PropertyChangedEventArgs`1::MsBuildSolutionHost.MsBuildSolution).Fire[0](Action`3 , Signal`1 , 0 , Object )      bei JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)      bei JetBrains.DataFlow.Signal`1.Fire(TValue value)      bei JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)      bei JetBrains.DataFlow.Property`1.<.ctor>b__0(Property`1 this, TValue value, Object cookie)      bei Property(MsBuildSolution::MsBuildSolutionHost.MsBuildSolution).SetValue[0](Func`4 , Property`1 , 0 , Object )      bei JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)      bei JetBrains.DataFlow.Property`1.set_Value(TValue value)      bei  JetBrains.ProjectModel.MsBuild.MsBuildSolutionHost.OpenSolution(FileSystemPath  location, IMsBuildSolutionUserProfile userProfile)      bei JetBrains.CommandLine.InspectCode.InspectCode.OpenSolution(FileSystemPath solutionFilePath)      bei JetBrains.CommandLine.InspectCode.InspectCode.Run()      bei JetBrains.CommandLine.InspectCode.InspectCodeProgram.DoMain(ICommandLine cmdline)      bei JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)    "


This exception is thrown several times for each project in my solution.
Does anybody knwos what the problem is or if it is an known issue.

Thanks for your help.

3 comments
Comment actions Permalink

Hi there,

I am having the same problem and not been able to find a solution, have you been able to figure it out?

0
Comment actions Permalink

Managed to resolve the issue for anyone having the same problem.

On my build server I was getting errors such as below:

1: Cannot resolve symbol 'System'
7: Cannot resolve symbol 'Type'
8: Cannot resolve symbol 'string'
9: Cannot resolve symbol 'string'
9: Cannot resolve symbol 'Type'

The issue is that the code inspection cannot find the core. Net dlls in the GAC so to solve this install the. Net framework SDK for whatever version of. Net you are using.

Even though. Net framework is installed you still need to install the. Net redistributable on the build server

0
Comment actions Permalink

Hey, im having the same issue and i installed a ton of addition .NET packages from the Microsoft .NET Website.

Can you point me to the file i need to resolve this problem?

0

Please sign in to leave a comment.