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
Release | Yes/No |
---|---|
8.3.x |
RDBMS | Yes/No |
---|---|
CSS3 | |
CSS4 |
- Package and deliver the source code
- Accept the delivery, set as the current version, and launch the analysis
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))"
- 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
- Search for the error message:
"DOTNET.0102:Unexpected Exception. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
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
If you are running an AIP console, then:
- Stop AIP Console
- Stop AIP node
- Make sure all CAST processes are no longer running
- The issue occurs here due to the corrupt or misconfigured .NET framework.
- Edit file c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
- 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 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.
Ticket # 33717