Quantcast
Channel: SharePoint
Viewing all articles
Browse latest Browse all 103

How to load .Net 4 compiled dll in Powershell ?

$
0
0

Do you get error like :

Exception calling “LoadFile” with “1” argument(s): “This assembly is built by a runtime
newer than the currently loaded runtime and cannot be loaded. (Exception from HRESULT:
0x8013101B)”

OK ,  MS may be mute on this but you have to get your work going .  SImple sweet solution is go to C:\Windows\System32\WindowsPowerShell\v1.0  and create a file named powershell.exe.config   ,  content like :

powershell.exe.config

After all this did you make sure your powershell is running from C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe  ?

 

 


Viewing all articles
Browse latest Browse all 103

Trending Articles