nexxai / CryptoBlocker

A script to deploy File Server Resource Manager and associated scripts to block infected users
GNU General Public License v2.0
200 stars 73 forks source link

The file or assembly "System.Web.Extensions" can not be found. #12

Closed Newklol closed 7 years ago

Newklol commented 7 years ago

Hello,

Thank you for the work and time you've put into this script!

This is probably an easy question for you.

What dependency am I missing if I get the following error on one of my 2008 R2 machines?

Add-Type : The file or assembly "System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" or a dependency could not be found. The system can't find the file.
Bei C:\Scripte\DeployCryptoBlocker.ps1:13 Zeichen:13

This function is used in the ConvertFrom-JSON20 function.

Thank you very much in advance!

nexxai commented 7 years ago

I believe this is due to not having a new enough version of PowerShell. Please upgrade to at least v4 (v5.1 is the latest at the time of writing) and that should fix your problem.

toastmonster commented 7 years ago

Could the script check for Powershell version, and exit gracefully if it's not sufficient?

kopacekj commented 7 years ago

You're missing .NET 3.5.x feature installed on your server, at least this worked for me.

Newklol commented 7 years ago

I think it is the missing .Net 3.5 indeed. Thank you all!