When I run "ngen /delete mscorlib.dll" I get:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>ngen /delete mscorlib.dll
Microsoft (R) CLR Native Image Generator - Version 2.0.50727.42
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Error: The specified assembly is not installed.
The mscorlib files that exist are:
09/23/2005 07:28 AM 4,308,992 mscorlib.dll
09/23/2005 07:28 AM 524,288 mscorlib.tlb
And, if I run the command install command manually I get the following:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>ngen.exe install
"System.Drawing.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" /NoDependencies /nologo
Installing assembly System.Drawing.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
Compiling 3 assemblies:
Compiling assembly mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 ...
Error compiling mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089: Unspecified error (Exception from HRESULT:
0x80004005 (E_FAIL))
Failed to generate native code for dependent image mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 because of
the following error: Unspecified error (Exception from HRESULT: 0x80004005
(E_FAIL))
Compiling assembly System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 ...
Error compiling System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089: Internal CLR error. (Exception from
HRESULT: 0x80131506)
Failed to generate native code for dependent image System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 because of the following
error: Internal CLR error. (Exception from HRESULT: 0x80131506)
Compiling assembly System.Drawing.Design, Version=2.0.0.0,
Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a ...
System.Drawing.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
Jack
[quoted text, click to view] ""WenJun Zhang[msft]"" <wjzhang@online.microsoft.com> wrote in message
news:mpe1uCAIGHA.3944@TK2MSFTNGXA02.phx.gbl...
> Hi Jack,
>
> According to the installation log, looks like the problem is on ngen
> mscorlib.
>
> I just wonder if you have ever installed any previous beta version on this
> machine? If so, probably it's not uninstalled properly. Please go to
> Add/Remove Programs to verify if a pre version exists. If so, please
> uninstall it.
>
> Another way is you can manually run:
>
> ngen /delete mscorlib.dll
>
> in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ directory to delete the
> native image of mscorlib if any corrupt data already exists.
>
> By the way, have you tested to standalone install the framework 2.0 before
> run VS2005 setup?
>
> Microsoft .NET Framework Version 2.0 Redistributable Package (x86)
>
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d- > 8edd-aab15c5e04f5&DisplayLang=en
>
> Thanks.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>