Home/Support/Support Forum/Issue loading awusbapi.dl
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Issue loading awusbapi.dl

0 votes
File: C:\Program Files\Digi\AnywhereUSB\Advanced\AwUsbApi.dll
InternalName: AwUsbApi.dll
OriginalFilename: AwUsbApi.dll
FileVersion: 3.91.231
FileDescription: Anywhere USB API Library

Having trouble loading this .dll via PowerShell or Regsvr32. Not much of a C programmer, but it seems something is missing. The documentation for the API is very limited. Can someone point me in the right direction?

Here is the error using [Reflection.Assembly]

Exception calling "LoadFile" with "1" argument(s): "The module was expected to contain an assembly manifest.
(Exception from HRESULT: 0x80131018)"
At line:1 char:1
+ [reflection.assembly]::loadfile('C:\Program Files\Digi\AnywhereUSB\Ad ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : BadImageFormatException


And here with Add-type.

add-type : c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : Unexpected character '\'
c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : >>> C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll
At line:1 char:1
+ add-type 'C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Except
ion
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

add-type : c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : Unexpected character '\'
c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : >>> C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll
At line:1 char:1
+ add-type 'C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Except
ion
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

add-type : c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : Unexpected character '\'
c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : >>> C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll
At line:1 char:1
+ add-type 'C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Except
ion
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

add-type : c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : Unexpected character '\'
c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : >>> C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll
At line:1 char:1
+ add-type 'C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Except
ion
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

add-type : c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : Unexpected character '\'
c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : >>> C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll
At line:1 char:1
+ add-type 'C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Except
ion
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

add-type : c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : A namespace cannot directly contain members such as
fields or methods
c:\Users\cjames\AppData\Local\Temp\bxutrntv.0.cs(1) : >>> C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll
At line:1 char:1
+ add-type 'C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Except
ion
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

add-type : Cannot add type. Compilation errors occurred.
At line:1 char:1
+ add-type 'C:\Program Files\Digi\AnywhereUSB\Advanced\awusbapi.dll'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
+ FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand

Regsvr32 returns an entry point not found error.
asked Feb 21, 2018 in USB by invoke-rfc2549 New to the Community (0 points)

Please log in or register to answer this question.

...