"sgen.exe" exited with code 1
I am trying to build a project in VS 2005 but I am getting the error:
Error 67 "sgen.exe" exited with code 1. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 1892 9 TAI.Util
This project had been building just fine earlier today. The only thing that happened between is I refreshed the web references in this project. As a test I added the same web references to a new project and it builds just fine.
Have you tried building with Detailed or Diagnostic verbosity? It seems that the error is certainly related to the generation of serialization assemblies for use with the web service.
Try building with a higher verbosity and see if that reveals more information. Let us know what you find.
Thanks.
Faisal Mohamood
Program Manager - MSBuild
Thanks for the quick response.
VS does the build so I'm not sure how to change the verbosity or view the messages it produces. I don't use MSBuild directly, but knowing how to view the messages may prove useful in the future.
Since my original post, I managed to get the solution to build again by removing and re-adding the project that contains the web references.
You can customize the output from
Tools->OptionsThen go to
Projects and Soutions and click on
Build and RunThe MSBuild verbosity is the last drop down on that dialog box.
Sayed Ibrahim Hashimi
www.sedodream.com
Thanks. I'm still getting used to the VS 2005. I'll give it a try.
Hi,
I still get the same error after changing the verbosity level. Is there any other workaround.
Can you insert the relevant portions of the log here?
Sayed Ibrahim Hashimi
www.sedodream.com
Error 1 "sgen.exe" exited with code 1. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 1892 9 IASTCFrameWork.Net
It looks like a bug in VS 2005.
I seem to get the same message when I update the web references in the project. Removing the project from the solution and readding it seems to fix the problem.
Hi,
It worked after removing the reference and added back again to the solution, but i still feel that this a bug in the conversion tool.
I have this problem in a solution that has one converted web site project and a new class library project. The web references are in the class library project.
Mahesh, Birch,
What exactly is your project structure? Are you doing an ASP.NET website, webservice, or something else? Were the projects originally created in Visual Studio 2003 and then upgraded to 2005? We need as much detail as you can provide on the projects in your solution so we can figure out which team needs to investigate this.
Neil
Thanks for digging into this.
The project started in VS 2003 (maybe even the version before that).
In VS 2003 the solution consisted of a single webproject. It had 5 web references to web services published by a Java/BEA system all of which are internal to the company. These web services are for CRUD operations on the systems database.
I used the Convert "Wizard" in VS 2005 to upgrade the entire solution to 2.0. After the conversion I broke the solution into two seperate projects. One contains just the aspx pages. The other is a newly created Class Library project. All of the web references were moved to the second project.
I'd be happy to send you any of the files that would be useful for you to look at (although I don't see a way to include files through this page.)
Hi,
I resolve the problem, I think.
You must set your output path in to bin\debug directory project
in other mode you must use another security settings
bye
Nino
info@ninocrudele.net
I'm also experiencing a similar problem. When i change the build options in the ConfigurationManager, i often get this error. The only way I've found to fix the problem has been to exit and restart Studio or, in some cases, to remove and re-add the project.
I'm working with a solution that has 4 web projects and 3 project references, all written in 1.1 and converted to 2.0 using the wizard.