"sgen.exe" exited with code 1 FIX

Author: Jon aka Poor Guy / Labels:

I was having this error when building my sharepoint webpart.
"sgen.exe" exited with code 1 FIX

I found that following the steps below fixed it:
Open up the project-->Properties
Open up the build tab.
Set "Generate Serialization Assembly" to "Off" under Output

1 comments:

Thomas said...

Actually this is not a fix, although it may remove the symptom.
If you turn it to off, you also do not generate serialization proxy classes which most likely will cause your XmlSerializer object to stop working and/ or take performance hits depending on your deployment logistics