Could not load file or assembly Operation is not supported. (Exception from HRESULT: 0x80131515)

后端 未结 5 650
伪装坚强ぢ
伪装坚强ぢ 2020-12-03 01:01

When I run CodedUI Test from a small Console tool via vstest.console.exe from a scheduled task I sometimes see this error message on different PCs:

5条回答
  •  忘掉有多难
    2020-12-03 01:16

    This problem occurs when sgen.exe is not able to get write access to your output assembly to generate serialization assembly.

    Reason may be file is read only or it is on UNC path.

    To resolve this issue you have following options.

    1. Copy your solution to you system local drive then build your solution.
    2. Use caspol.exe to grant full trust to the UNC path.
    3. Disable Generate serialization assembly option from your project properties build tab.

    For more info please visit http://bimbim.in/post/2010/09/06/SGEN-error-Could-not-load-file-or-assembly.aspx

    answer replyed from: bimbim.in

提交回复
热议问题