Hi Angie, thanks for your response. Our web application is already compiled to target .NET Framework 4.0
The issue is that on the production server, in IIS Manager, under .NET Compilation feature, .NET framework v2.0 assemblies are dislayed for our web application even though our web app is configured to run in a v4.0 App Pool.
Angie xu - M...
All-Star
18665 Points
1590 Posts
Microsoft
Re: web.config compilation assemblies inheritance issue in IIS
Dec 12, 2012 12:29 PM|LINK
Hi Manish
.NET 2.0 programs works without any changes on .NET 4.0, you could follow the steps below to migrate from .NET 2.0 to .NET 4.0,
Open the Solution
Open the Properties Page for the Project
Select the Compile Tab
Select the Advanced Compile Options Button
Change the Target Framework to .NET Framework 4
Click OK
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
Manish_Y
0 Points
7 Posts
Re: web.config compilation assemblies inheritance issue in IIS
Dec 12, 2012 03:29 PM|LINK
Hi Angie, thanks for your response. Our web application is already compiled to target .NET Framework 4.0
The issue is that on the production server, in IIS Manager, under .NET Compilation feature, .NET framework v2.0 assemblies are dislayed for our web application even though our web app is configured to run in a v4.0 App Pool.
Angie xu - M...
All-Star
18665 Points
1590 Posts
Microsoft
Re: web.config compilation assemblies inheritance issue in IIS
Dec 13, 2012 04:23 AM|LINK
Hi Manish_Y
I have tried migrate application from .NET 2.0 to .NET 4.0, the .NET 4.0 assembly will display like this,
<assemblies>
<remove assembly="System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="mscorlib" />
<add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
……………………..
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="*" />
<add assembly="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</assemblies>
Kind regards
Feedback to us
Develop and promote your apps in Windows Store