.NET Library Error Codes
- Updated2023-02-21
- 4 minute(s) read
.NET Library Error Codes
The .NET Library functions return negative values when they detect errors. The .NET Library also returns exceptions to indicate incorrect function behavior. The following table lists the error codes, defined constants, and error messages associated with functions in the the LabWindows/CVI .NET Library.
Use the CDotNetGetErrorDescription or GetGeneralErrorString function to convert the error code, returned in the status parameter of .NET Library functions, into meaningful error messages.
Error codes are defined in the cvi\include\cvidotnet.h file.
Value | Defined Constant | Description |
–6535 | CDotNetLicenseError | A .NET component could not be granted license in the LabWindows/CVI .NET Library. |
–6536 | CDotNetUnauthorizedAccessError | The operating system denied access because of an I/O error or a security error in the LabWindows/CVI .NET Library. |
–6537 | CDotNetTypeUnloadedError | An attempt was made to access an unloaded type in the LabWindows/CVI .NET Library. |
–6538 | CDotNetTypeInitializationError | A type initialization failed in the LabWindows/CVI .NET Library. |
–6539 | CDotNetStackOverflowError | The execution stack has overflowed because of too many pending method calls in the LabWindows/CVI .NET Library. |
–6540 | CDotNetNotImplementedError | A method or operation requested by the LabWindows/CVI .NET Library is not implemented. |
–6541 | CDotNetNullReferenceError | An attempt was made to dereference a null object reference in the LabWindows/CVI .NET Library. |
–6542 | CDotNetInvalidProgramError | A program accessed by the LabWindows/CVI .NET Library contains invalid Microsoft intermediate language (MSIL) or metadata. |
–6543 | CDotNetInvalidOperationError | A method call in the LabWindows/CVI .NET Library is invalid for the object's current state. |
–6544 | CDotNetFormatError | The format of an argument did not meet the parameter specifications of the method invoked by the LabWindows/CVI .NET Library. |
–6545 | CDotNetExecutionEngineError | An internal error occurred in the execution engine of the .NET common language runtime used by the LabWindows/CVI .NET Library. |
–6546 | CDotNetContextMarshalError | An attempt to marshal an object across a context boundary failed in the LabWindows/CVI .NET Library. |
–6547 | CDotNetCannotUnloadAppDomainError | An attempt to unload an application domain failed in the LabWindows/CVI .NET Library. |
–6548 | CDotNetBadImageFormatError | The file image of a DLL or executable program accessed by the LabWindows/CVI .NET Library is invalid. |
–6549 | CDotNetArrayTypeMismatchError | An attempt was made in the LabWindows/CVI .NET Library to store an element of the wrong type in an array. |
–6550 | CDotNetArithmeticError | An arithmetic error occurred in the LabWindows/CVI .NET Library. |
–6551 | CDotNetAppDomainUnloadedError | An attempt was made to access an unloaded application domain in the LabWindows/CVI .NET Library. |
–6552 | CDotNetNonExceptionObjectHandleError | The item passed to the LabWindows/CVI .NET Library is not a .NET exception object. |
–6553 | CDotNetNonCOMObjectHandleError | The item passed to the LabWindows/CVI .NET Library is not a COM object. |
–6554 | CDotNetNonCOMTypeError | The type passed to the LabWindows/CVI .NET Library is neither a COM-imported type nor the sub-type of a COM-imported type. |
–6555 | CDotNetTypeIsNotEnumError | The item passed to the LabWindows/CVI .NET Library is not an enumeration. |
–6556 | CDotNetInvalidEnumTypeError | The type of the enumeration passed to the LabWindows/CVI .NET Library is not supported. |
–6557 | CDotNetCouldNotAccessElementError | The LabWindows/CVI .NET Library could not access the requested array element. |
–6558 | CDotNetIndexOutOfRangeError | An out of range array index was passed to the LabWindows/CVI .NET Library. |
–6559 | CDotNetInvalidNumElementsError | An invalid number of array elements was passed to the LabWindows/CVI .NET Library. |
–6560 | CDotNetInvalidDimensionError | An invalid array dimension was passed to the LabWindows/CVI .NET Library. |
–6561 | CDotNetInvalidElementTypeError | An invalid array element type was passed to the LabWindows/CVI .NET Library. |
–6562 | CDotNetNonArrayTypeIdError | The element type passed to the LabWindows/CVI .NET Library has the array flag. This is invalid. |
–6563 | CDotNetInvalidNumberOfDimensionsError | The number of dimensions passed to the LabWindows/CVI .NET Library is invalid. |
–6564 | CDotNetNonArrayObjectHandleError | The object passed to the LabWindows/CVI .NET Library is not an array. |
–6565 | CDotNetTypeIsNotArrayError | The item passed to the LabWindows/CVI .NET Library is not of array type. |
–6566 | CDotNetInvalidInvocationKindError | An invalid LabWindows/CVI .NET invocation was passed to the library. |
–6567 | CDotNetCouldNotLoadTypeError | One or more requested types could not be loaded by the LabWindows/CVI .NET Library during reflection. |
–6568 | CDotNetAmbiguousInvocationError | The requested LabWindows/CVI .NET target invocation operation is ambiguous. |
–6569 | CDotNetParameterCountMismatchError | An invalid number of parameters was passed to the LabWindows/CVI .NET Library for a target invocation. |
–6570 | CDotNetInvocationError | An invalid invocation target was passed to the LabWindows/CVI .NET Library. |
–6571 | CDotNetInvocationTargetError | The target invoked by the LabWindows/CVI .NET Library threw an exception. |
–6572 | CDotNetInvalidParametersError | An invalid parameter array was passed to the LabWindows/CVI .NET Library. |
–6573 | CDotNetInvalidParameterTypeIdsError | An invalid parameter typed ID array was passed to the LabWindows/CVI .NET Library. |
–6574 | CDotNetInvalidNumParametersError | An invalid number of parameters was passed to the LabWindows/CVI .NET Library. |
–6575 | CDotNetUnknownTypeError | An invalid LabWindows/CVI .NET type was passed to the library. |
–6576 | CDotNetNullPointerError | An invalid memory address or NULL pointer was passed to the LabWindows/CVI .NET Library. |
–6577 | CDotNetInvalidObjectHandleError | An invalid object handle was passed to the LabWindows/CVI .NET Library. |
–6578 | CDotNetCouldNotGetTypeInfoError | The LabWindows/CVI .NET Library could not load the required type information. |
–6579 | CDotNetCouldNotLoadAssemblyError | The LabWindows/CVI .NET Library could not load the specified assembly. |
–6580 | CDotNetCouldNotLoadLibraryAssemblyError | Could not load the LabWindows/CVI .NET Library assembly. |
–6581 | CDotNetInvalidPathError | An invalid file path was passed to the LabWindows/CVI .NET Library. |
–6582 | CDotNetRemotingError | An error occurred in the LabWindows/CVI .NET Library during a remote call. |
–6583 | CDotNetCOMError | An unknown HRESULT was returned to the LabWindows/CVI .NET Library by a COM call. |
–6584 | CDotNetMissingMemberError | The LabWindows/CVI .NET Library could not access the member because it does not exist. |
–6585 | CDotNetMissingMethodError | The LabWindows/CVI .NET Library could not access the method because it does not exist. |
–6586 | CDotNetInvalidCOMObjectError | The item passed to the LabWindows/CVI .NET Library is not a valid COM object. |
–6587 | CDotNetMemberAccessError | The LabWindows/CVI .NET Library could not invoke the member because it is inaccessible. |
–6588 | CDotNetMethodAccessError | The LabWindows/CVI .NET Library could not invoke the method because it is inaccessible. |
–6589 | CDotNetNotSupportedError | The requested LabWindows/CVI .NET Library operation is not supported. |
–6590 | CDotNetSecurityError | A security error occurred in the LabWindows/CVI .NET Library. |
–6591 | CDotNetOutOfMemoryError | The LabWindows/CVI .NET Library could not allocate memory. |
–6592 | CDotNetTypeMismatchError | An invalid or mismatched type was passed to the LabWindows/CVI .NET Library. |
–6593 | CDotNetExceptionError | A .NET exception occurred in the LabWindows/CVI .NET Library. |
–6594 | CDotNetInitializationError | The LabWindows/CVI .NET Library could not be initialized. |
–6595 | CDotNetInvalidInputError | The input passed to the LabWindows/CVI .NET Library is invalid. |
–6596 | CDotNetCouldNotCreateMutex | The LabWindows/CVI .NET Library could not create a required mutex. |
–6597 | CDotNetCouldNotLoadDLL | Could not load cvidotnet.dll, the LabWindows/CVI .NET Library DLL. |
–6598 | CDotNetIncorrectDLLVersion | The version of cvidotnet.dll, the LabWindows/CVI .NET Library DLL, is incorrect. |
–6599 | CDotNetInternalError | An internal error occurred in the LabWindows/CVI .NET Library. |