Skip to main content

Posts

Showing posts from November, 2013

Error : file .ps1 cannot be loaded because the execution of scripts is disabled on this system

During execution of  powershell script you may face the error "File .......ps1 cannot be loaded because the execution of scripts is disabled on this system."

This is because the script execution is by default disable. You will have to enable it to execute the powershell scripts.

To enable the script execution run following commandlet on powershell.

Set-ExecutionPolicy Unrestricted

OR

Set-ExecutionPolicy Unrestricted -Force

For more information please refer the here Running Windows PowerShell Scripts.

Windbg: The call to LoadLibrary failed, Win32 error 0n193

While analyzing the managed process dump you may get the error as below:

The call to LoadLibrary(C:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos) failed, Win32 error 0n193 
"%1 is not a valid Win32 application." 
Please check your debugger configuration and/or network access.

On of the major reason of this error could be :You might be debugging 64 bit process dump using  32 bit debugger. Try using the 64bit debugger. 

You can side by side install and use the 32 bit and 64 bit debugging tools for Windows.

Once you have chosen the correct Windbg version, first try executing the command 
.loadby sos clr
before starting your dump analysis.