Skip to content

Task failed because “sgen.exe” was not found, or the .NET Framework SDK v2.0 is not installed

July 13, 2012

After adding in the web services reference i am face with the error Task failed because “sgen.exe” was not found: solution. The issue is when Visual Studio 2008 tries to compile the site in the release mode it looks for sgen.exe fileto generate a serialization assembly and if this file is not available in C:\WINDOWS\Microsoft.NET\Framework\v3.5\ then it will fails to compile.

Solution 1:

Copy the sgen.exe file from  C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ toC:\WINDOWS\Microsoft.NET\Framework\v3.5\. This should solve your problem.

If solution 1 does not as you may not have sgen.exe file on your computer then you can try Solution 2.

Solution 2:

In Visual Studio open the project setting property then select the Build tab on the left hand side. Select the All Configurations from the Configuration drop down list. Then go down to the near the end of the panel and select Off from the drop down Generate Serialization assembly.

One Comment
  1. Fastidious replies in return of this difficulty
    with genuine arguments and describing everything about that.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: