Windows – This driver has been blocked from loading (Windows 7)

driverswindows 7

I am learning to create device drivers for windows. Upon trying to deploy my first driver I encounter this error when I try to start the service:

System error 1275 has occurred.

This driver has been blocked from loading

I am using Windows Driver Kit Version 7.1.0. Tried to build the .sys file for /386 and /ia64 architectures. Tried to sign both files with a self-signed certificate. Finally disabled the signature checking (F8 during boot-up and selected "Disable Driver Signature Enforcement") and tried with both signed and unsigned driver. Still getting the same error.

Any ideas what could be done? The driver is being loaded by the service control manager but the error appears when I actually try to run net start MyDriver.

Update:
Signing is done using the command:
Signtool sign /v /s PrivateCertStore /n MyCert /t http://timestamp.verisign.com/scripts/timestamp.dll driver.sys i.e. I use an embedded signature. Also the MyCert certificate is from the Trusted Root Certification Authorities certificate repository (available certificates can be seen by executing Ctrl+R, certmgr.msc)

Best Answer

This error happens if you try to install a 32 bit driver on a 64 bit machine.

Related Question