CMS Snapshot Analysis - Run Analyzer - Missing objects - DOTNet with Core CAST AIP

*Purpose

This page handles the issue of missing objects after analyzing DOTNet applications.

*Observed in CAST AIP

ReleaseYes/No
8.3.x
8.2.x
8.1.x
8.0.x
7.3.x

*Observed on RDBMS

RDBMSYes/No
Oracle Server
Microsoft SQL Server
CSS2
CSS3

Action Plan

Perform the below actions

  1. Check if the source files for the missing objects are included in the project file

    1. Open the project file in a text editor. Search for lines containing ‘Compile Include’ directives:

```
  1. If you find a line as <Compile Include="<file\_name>" /> file under examination, then the file should be analyzed and objects should be created. In this case, report your problem to [CAST Technical Support](https://help.castsoftware.com/hc/en-us/requests/new) with the below [relevant input](#CMSSnapshotAnalysisRunAnalyzerMissingobjectsDOTNetwithCoreCASTAIP-Relevantinput).
  2. If you do not find a line as <Compile Include="<file\_name>" /> under examination, then the project file could be either old or corrupt or the file is just not part of the project anymore. There are case where the physical source file location and the same file referenced in the project file does not match. This is case of old/corrupt file, recompile the project in Visual Studio and repackage again, as described in [.NET - Confirm analysis configuration](https://doc-legacy.castsoftware.com/display/DOC82/.NET+-+Confirm+analysis+configuration)
  1. Check if the source file for the expected objects contains a compilation directive such as #if : see example below.

#if FrontOffice namespace Console.UI.Controllers


   1. If there is a compilation directive, then open the project file and check which configuration is selected

      ```c#
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{70930E81-00D1-4872-AF72-522085676E8B}</ProjectGuid>
    <OutputType>Exe</OutputType>
[...]
  In this example, the Debug configuration is selected.
  1. Check in the same file if the selected configuration includes the compilation directive

true full false bin\Debug\ TRACE;DEBUG prompt 4 pdbonly true bin\Release\ TRACE;DEBUG;PreproDirective prompt 4 ```
  In this case, the PreproDirective constant is defined in RELEASE mode only.
  1. Edit the project file, and :

    1. Either add the PreproDirective constant to Debug configuration, as follows :

true full false bin\Debug\ TRACE;DEBUG;PreproDirective prompt 4 ``` 2. Or select the Release configuration, as follows :
     ```c#
Release AnyCPU 9.0.30729 2.0 {70930E81-00D1-4872-AF72-522085676E8B} Exe [...] ``` 4. Re-analyze after editing the project file. If this does not solve the issue, report your problem to [CAST Technical Support](https://help.castsoftware.com/hc/en-us/requests/new) with the below [relevant input](#CMSSnapshotAnalysisRunAnalyzerMissingobjectsDOTNetwithCoreCASTAIP-Relevantinput):

Relevant input

  • Sherlock export with the following options: Export Logs, Export Configuration files, Export CAST Bases (Management Base and Knowledge Base), source code
  • In some cases the IN tables are also needed to investigate the missing object issue. Support will provide specific intructions to execute the following process when this is needed:

Notes/comments

Ticket #11801

Related Pages