Fixing PowerBI OSPlatform Error: Could not load type System.Runtime.InteropServices.OSPlatform.
PowerBIServiceAccount : Could not load type ‘System.Runtime.InteropServices.OSPlatform’ from assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’
NOTE: The same error may occur with the cmdlet Connect-PowerBIServiceAccount.
There may be a dependency problem with .NET Framework. You are required to download and install .NET 4.7 to fix this issue. Don’t forget to reboot after installation.
NOTE: Don’t forget to install the module first with the install-module cmdlet. Either with Administrative Rights or with Scope CurrentUser.
Install-Module -Name MicrosoftPowerBIMgmt.Workspaces
I installed power Bi with Framework Net 4.6.2 but I’m getting this error
from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
Hi. Try to install .Net from windows components.
system.Runtime.interopservice.Runtimeinformation from assembly mscorlib, version=4.0.0.0, culture=neutral
same earror
Hi. Remove all your .net, run cmdlet and then install latest .NET, also check .net in windows components. When I got this error this help me to fix it.