logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Thiemo.Kell...@bfs.admin.ch>
Subject 64bit problem?
Date Thu, 26 Feb 2015 12:36:27 GMT
Hi all

I am at my wits' end. We developped PowerShell script which uses log4net. I can run the script
successfully from a batch file on my laptop but on the server I get

Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem'
provider failed.
I:\WA_ANALYSE\AAA_INFA_CORE\Scripts\metadata_join_params-thiemo.ps1 :
Exception calling "LoadFile" with "1" argument(s): "The parameter is
incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
At line:1 char:1
+ I:\WA_ANALYSE\AAA_INFA_CORE\Scripts\metadata_join_params-thiemo.ps1
-stat_activi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio

I found http://stackoverflow.com/questions/10249406/powershell-v2-load-a-com-interop-dll which
points to a possible problem with mixing 32 dlls in 64 bit PowerShell. As my laptop is 32
and the server 64 bit, I was wondering if this might cause the problem. At least I could pin
the line of code where the exception gets thrown: [void][Reflection.Assembly]::LoadFile($log4netDllPathString)

Has anyone an idea?

Liebe Grüsse/Cordialement/Cordialità

Thiemo Kellner

Office fédéral de la statistique
Espace de l'Europe 10
2010 Neuchâtel / Suisse
Tel     +41 32 71 36516

View raw message