David Pike
David Pike

Reputation: 415

I cannot change the target .NET Framework in IIS 6

The option to target another version of the .Net Framework is disabled on a particular test system we are using on a current project.

I have tried the following without success:

Just hoping for some pointers.

Upvotes: 1

Views: 3720

Answers (4)

Tigraine
Tigraine

Reputation: 23678

Are you sure you are asking the right question?

There is no new .NET Runtime version to target. If you have a 3.0 or 3.5 Framework your IIS will still display 2.0 as it's runtime because 3.0 and 3.5 differ only in Framework classes and compiler from a 2.0 application!

You should only see 1.X and 2.0 frameworks in your IIS configuration.

Edit: Target switching only happens when your compile your application. Because 2.0, 3.0 and 3.5 all run on the same .NET Runtime Environment 2.0 (VM). You still need to have the additional frameworks installed because their API differs, but all run on the same intermediate language instruction set.

Upvotes: 1

John
John

Reputation:

Do you have ASP.net Serveice (Allowed) in IIS

In anyway, you can use some vbscript to change the .net version.

Upvotes: 0

Igal Serban
Igal Serban

Reputation: 10684

I think that this happens if you install the iis after the .net installation. Just use the aspnet_regiis.exe as explained before.

Upvotes: 1

Ovidiu Pacurar
Ovidiu Pacurar

Reputation: 8209

Try reRegistering ASP.NET on IIS.

Upvotes: 3

Related Questions