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.
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