|
|
PS2.0 Import-Module fails with FileLoadException
Hi,
I have a clean Windows Server 2008 R2 machine.
When I open a PS Modules window, I see the following error:
Import-Module : Could not load file or assembly 'rmconfighelper' or one of
its dependencies. An argument was out of its
legal range. (Exception from HRESULT: 0x80131502)
At line:24 char:34
+ Import-Module <<<< $_.Name -ErrorAction
SilentlyContinue
+ CategoryInfo : NotSpecified: (:) [Import-Module],
FileLoadException
+ FullyQualifiedErrorId :
System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
I get a similar exception when trying: Import-Module WebAdministration
Thanks much for your help,
Sonia
|
|
0
|
|
|
|
Reply
|
Utf
|
5/28/2010 5:44:17 PM |
|
Sonia hopefully your still around. I don't have a lot of suggestions other
than it looks like these errors are caused by these module and not the system
as a whole.
Can you load the PSDiagonstics, BitsTransfer or anything else?
On your W2K8r2 machine do you have a website. Have you added that role? If
not that could be the cause.
I do have such a machine and while I'm no expect on the WebAdmin module I've
had no problems either loading or doing simply stuff.
I have no idea what this other module requires but I suspect that you are
missing a prerequisite of some type.
"SoniaPP" wrote:
> Hi,
> I have a clean Windows Server 2008 R2 machine.
> When I open a PS Modules window, I see the following error:
> Import-Module : Could not load file or assembly 'rmconfighelper' or one of
> its dependencies. An argument was out of its
> legal range. (Exception from HRESULT: 0x80131502)
> At line:24 char:34
> + Import-Module <<<< $_.Name -ErrorAction
> SilentlyContinue
> + CategoryInfo : NotSpecified: (:) [Import-Module],
> FileLoadException
> + FullyQualifiedErrorId :
> System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
>
> I get a similar exception when trying: Import-Module WebAdministration
>
> Thanks much for your help,
> Sonia
|
|
0
|
|
|
|
Reply
|
Utf
|
6/2/2010 1:35:01 AM
|
|
Is there anything in your profile? If so, can you post it?
Or what command is behind the link 'Ps Modules'? There must be some
modules being loaded and during that some of them probably fail
because of dependency on rmconfighelper.
On May 28, 7:44=A0pm, SoniaPP <Soni...@discussions.microsoft.com> wrote:
> Hi,
> I have a clean Windows Server 2008 R2 machine.
> When I open a PS Modules window, I see the following error:
> Import-Module : Could not load file or assembly 'rmconfighelper' or one o=
f
> its dependencies. An argument was out of its
> =A0legal range. (Exception from HRESULT: 0x80131502)
> At line:24 char:34
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Import-Module <<<< =A0$_.Name -=
ErrorAction
> SilentlyContinue
> =A0 =A0 + CategoryInfo =A0 =A0 =A0 =A0 =A0: NotSpecified: (:) [Import-Mod=
ule],
> FileLoadException
> =A0 =A0 + FullyQualifiedErrorId :
> System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportModuleCom=
mand
>
> I get a similar exception when trying: Import-Module WebAdministration
>
> Thanks much for your help,
> Sonia
|
|
0
|
|
|
|
Reply
|
stej
|
6/2/2010 4:47:27 AM
|
|
|
2 Replies
865 Views
(page loaded in 0.047 seconds)
|
|
|
|
|
|
|
|
|