SGEN error Could not load file or assembly

Today i got this error while i was compiling my code in Visual Studio.

Error 1 Could not load file or assembly ‘Your Assembly name version public key’ or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417).

After doing lot of effort i got to know that my code is on Clear Case and SGEN.exe is not able to access obj/Release/”output.dll” to generate serialization assembly because i was using dynamic view of clear case.

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.


Leave a Reply

Your email address will not be published. Required fields are marked *