I keep getting this when I run my script/form?
Checked in the options under assemblies but I can't the one it is referring to?
ERROR: Exception calling "Load" with "1" argument(s): "Could not load file or assembly 'AspNetMMCExt, Version=4.0.0.0, Culture=neutral,
ERROR: PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
Exchange-Tools.psf: ERROR: At Line: -120 char: 2
ERROR: + [void][reflection.assembly]::Load('AspNetMMCExt, Version=2.0.0.0, ...
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
ERROR: + FullyQualifiedErrorId : FileNotFoundException
Could not load file or assembly
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Could not load file or assembly
The assembly is not specified correctly or it is not installed.
Try this as it can get the assembly if it is in the GAC.
[reflection.assembly]::LoadWithPartialName('AspNetMMC')
[reflection.assembly]::LoadWithPartialName('AspNetMMCExt')
Try this as it can get the assembly if it is in the GAC.
[reflection.assembly]::LoadWithPartialName('AspNetMMC')
[reflection.assembly]::LoadWithPartialName('AspNetMMCExt')
Re: Could not load file or assembly
THe documentation notes the following:
See: https://msdn.microsoft.com/en-us/librar ... .110).aspxThis API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Provides helper methods that are used by the ASP.NET snap-in for the Microsoft Management Console (MMC). This class cannot be inherited.