|License Type||SaaS & On-Premise|
|Agent Mode||Assess & Protect|
|Main Product Category||Contrast SDK|
|Sub Category||.NET SDK|
An exception is being thrown while using the .NET SDK.
Causes & Resolutions
The following list details possible exceptions along with their causes and resolutions:
This error may be thrown for a couple of reasons:
- A required parameter for requests is missing (username, service key, api key)
- The URL parameter has an invalid URI value
Check to make sure all parameters have been supplied and are valid.
This error is often thrown when the request cannot resolve or reach the host name supplied.
Check to ensure that the hostname of the Contrast UI can be resolved successfully on the client system.
This error is thrown whenever HTTP status code
404 is returned by the host.
Ensure the resource requested is valid.
This error can be thrown due to insufficient permissions or the credentials supplied are invalid.
Ensure that the user's credentials are valid and also the user has the required access to perform the action requested.
This exception will be thrown if the Contrast UI returns an unrecognized response to the SDK (usually in the form of a
500 Internal Server Error).
If this exception presents itself too frequently while using the same function, please create an issue in our GitHub repository for us to take a closer look.