Last post Nov 25, 2013 02:22 AM by Starain chen - MSFT
Nov 22, 2013 09:06 AM|geojf3|LINK
I tried this a few months ago, but stop after getting totaly frustrated.
I am developing using Visual Studio Profession 2012 on a Windows 7 Ultimate machine. I have a few web pages developed that I want to run on a Windows Server 2003 R2 machine running IIS 6. This server has been running our sites for a few years - using HTML
and classic ASP without issues.
I am moving my new pages using "Copy Web Site" in VS to the server without incident. When I try to access the pages from the existing website, I get the error below. I previously tried to install .NET 4.0 as needed. On the server, under Windows Add/Remove
Programs I see Microsoft .NET Framework 2.0 Service pack 2, Microsoft .NET Framework 3.0 Service pack 2, Microsoft .NET Framework 3.5 SP1, Microsoft .NET Framework 4.0 Client Profile and Microsoft .NET Framework 4.0 Extended.
In IIS Manager, under "Web Service Extensions" I see (among other listings) ASP.NET v1.1.4322, ASP.NET v2.0.50727 and ASP.NET v4.0.30319. Under the Application Pools, I do see the existing sites and the new reference to the pages I just created, but I
do not see any way to change the ASP.NET version.
Any help that can be given would be greatly appreciated.
Thanky you in advance,
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Line 18: during development.
Line 19: -->
Line 20: <compilation debug="true" targetFramework="4.0"> Line 21: <assemblies>
Line 22: <add assembly="System.Design, Version=126.96.36.199, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Source File: C:\Inetpub\njcf_private\remit\web.config Line: 20
Version Information: Microsoft .NET Framework Version:2.0.50727.3649; ASP.NET Version:2.0.50727.3634
Nov 22, 2013 09:09 AM|dotnetfixit|LINK
Go to .net framework 4.0 Command prompt and run aspnet_regiis.
Go to application of the site in the IIS and then set .netframework 4.0
Nov 22, 2013 09:19 AM|geojf3|LINK
Where is the .net framework 4.0 command prompt?
Nov 22, 2013 09:54 AM|geojf3|LINK
I found the correct directory and ran it, but I was notified of errors. When I looked through the log, I found this:
2013-11-22 09:40:04 Failure Creating directory: C:\Inetpub\private\aspnet_client: CreateDirectoryInternal failed with HRESULT 80070003: 'The system cannot find the path specified. '
2013-11-22 09:40:04 Failure Creating list of client site scripts dirs: CreateSiteClientScriptDir failed with HRESULT 80070003: 'The system cannot find the path specified. '
I uninstalled it (with the -u option) and reinstalled it, but with the same errors.
Nov 22, 2013 11:16 PM|Ruchira|LINK
Right click on the project in solution explorer -> Go to properties -> Then change the
Target framework to .NET Framework 4.0
Please 'Mark as Answer' if this post helps you
Nov 25, 2013 01:55 AM|kctt|LINK
In IIS Manager, under "Web Service Extensions" I see (among other listings) ASP.NET v1.1.4322, ASP.NET v2.0.50727 and ASP.NET v4.0.30319. Under the Application Pools, I do see the existing sites and the new reference to the pages I just created, but I do
not see any way to change the ASP.NET version.
In IIS 6.0, you can open site properties of a website. There should be a tab where you can change Asp.net version for specific website.
Nov 25, 2013 02:22 AM|Starain chen - MSFT|LINK
First, please try to register the ASP.NET applications, for more information, please refer to:
Secondly, there are some related threads that may help you:
About specify the .net framework of Application pool, please follow these steps:
About specify the Application pool of website, please follow these steps: