Wednesday, March 29, 2017

Some one faced this when execute the Test.Dll in some other Server/PC-Error 0x80131515

At the actual environment we always have to build all our test methods or the classes to a one single DLL file and have to execute on a different server.
Below is an error i got when executing the DLL using MSTEST command line tool.


So the error message says 

"Could not load file or assembly 'file://XXXXXXXXXXXXXXx.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).

The solution will be unblocking the DLL which you are trying to execute using MSTEST.
Simply right click on the DLL and select property .
The locate the bottom of the property window and locate the "Unblock" text.
Click on it to unblock the DLL.

Your are done.

No comments:

Post a Comment