Page tree
Skip to end of metadata
Go to start of metadata
Description

While executing Run analysis, the process fails with the below  error when it ran CAST_DotNet_Job_NewAnalyzer job:

DOTNET.0102:Unexpected Exception. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))


About to run CAST_DotNet_Job_NewAnalyzer job 'My Source file based execution unit_38679'.
Total physical memory: 131070 MB.
Creating process `"I:\Implementation\Extensions\com.castsoftware.dotnet.1.4.4-funcrel\DotNetCmd.exe" "I:\Implementation\LSA\LISA\dc8f43f70fbd4da598f8818942b13a8e\Scrdb133f7122a84e278c6d627c9fbc19de\DotNetCmd.xml"'
Using Knowledge Base on schema _local.
Loading meta model from repository . . .
Meta model loaded.
Total physical memory: 131070 MB.
[] Initialiazing NOSQLJAVA Analysis
External link component has loaded 0 objects
DOTNET.0102:Unexpected Exception.
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
[] End of Elasticsearch analysis
[] End of DynamoDB analysis
[] End of Redis analysis
[] End of Couchbase analysis
[] End of MongoDb Analysis
[] End of Memcached analysis
[] End of CosmosDB analysis
[] End Elasticsearch Analysis
[] End Cosmos DB Analysis
[] End DynamoDB Analysis



Observed in CAST AIP

Release

Yes/No
8.3.x(tick)
Observed on RDBMS

RDBMS

Yes/No

CSS3(tick)
CSS4(tick)
Step by Step Scenario
  1. Package and deliver the source code
  2. Accept the delivery, set as the current version, and launch the analysis
  3. While executing Run analysis, the process fails with the below  error when CAST_DotNet_Job_NewAnalyzer job: is run.

    "DOTNET.0102:Unexpected Exception. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"

Action Plan
  1. Open the analysis log to check the logs at job: CAST_DotNet_Job_NewAnalyzer job  where the Run analysis fails: e.g    \Implementation\Logs\Execute_Analysis_3844\Smart_job_38679-20220104-085240.castlog
  2. Search for the error message: 

    "DOTNET.0102:Unexpected Exception. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"

  3. Check whether the following lines appear in the  log file :

    About to run CAST_DotNet_Job_NewAnalyzer job 'My Source file based execution unit_38679'.
    Total physical memory: 131070 MB.
    Creating process `"I:\Implementation\Extensions\com.castsoftware.dotnet.1.4.4-funcrel\DotNetCmd.exe" "I:\Implementation\LSA\LISA\dc8f43f70fbd4da598f8818942b13a8e\Scrdb133f7122a84e278c6d627c9fbc19de\DotNetCmd.xml"'
    Using Knowledge Base on schema _local.
    Loading meta model from repository . . .
    Meta model loaded.
    Total physical memory: 131070 MB.
    [] Initialiazing NOSQLJAVA Analysis
    External link component has loaded 0 objects
    DOTNET.0102:Unexpected Exception.
    The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
    [] End of Elasticsearch analysis
    [] End of DynamoDB analysis
    [] End of Redis analysis
    [] End of Couchbase analysis
    [] End of MongoDb Analysis
    [] End of Memcached analysis
    [] End of CosmosDB analysis
    [] End Elasticsearch Analysis
    [] End Cosmos DB Analysis
    [] End DynamoDB Analysis
  4. If you are running an AIP console, then:

    1. Stop AIP Console
    2. Stop AIP  node
    3. Make sure all CAST processes are no longer running
    4. The issue occurs here due to the corrupt or misconfigured .NET framework.
    5. Edit file  c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
    6. Perform the below changes:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config:
...
<runtime>
<loadFromRemoteSources enabled="true"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
...
</assemblyBinding>
</runtime>

      5. Make sure you perform this on the server where AIP node or AIP is installed.

      6. Restart the node and console and see if analysis works now in the console fine.

      7. If the above points do not help you to resolve the issue, contact CAST Technical Support with  with the following Relevant Input

Impact on Analysis Results and Dashboard

Impact of issue: 

While executing Run analysis, the process fails with the below  error when it ran CAST_DotNet_Job_NewAnalyzer job:

DOTNET.0102:Unexpected Exception. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))


Impact after applying solution:

The analysis runs fine.

Notes/comments

Ticket # 33717

Related Pages

  • No labels