Link to home
Start Free TrialLog in
Avatar of stretch73
stretch73Flag for United States of America

asked on

Visual Studio 2005 Error - Build failed failed because "sgen.exe" was not found

I am trying to do a web project build using Visual Studio 2005 Professional Edition and I'm getting the following error:

C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1902,9): error MSB3091: Task failed because "sgen.exe" was not found, or the .NET Framework SDK v2.0 is not installed.  The task is looking for "sgen.exe" in the "bin" subdirectory beneath the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework.  You may be able to solve the problem by doing one of the following:  1.) Install the .NET Framework SDK v2.0.  2.) Manually set the above registry key to the correct location.  3.) Pass the correct location into the "ToolPath" parameter of the task.

I have done dozens of builds before this, and haven't installed anything new.  Not a lot out there on this problem, hoping someone else has run into this.

TIA,

N
Avatar of Rob Siklos
Rob Siklos
Flag of Canada image

Why don't you just install the SDK, like it suggests?
Avatar of stretch73

ASKER

Forgot to mention, I re-installed the SDK and I am still getting the error.
Ok, well that's important.  Did you check the registry key that they talk about?
Can't edit the registry due to a permissions constraint.  Working on that, thought I'd post out here in the meantime.
ASKER CERTIFIED SOLUTION
Avatar of stretch73
stretch73
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial