Last post Jun 28, 2010 03:45 PM by Kbalz
Jun 28, 2010 02:27 PM|Kbalz|LINK
I have installed and repaired .NET 4.0 already, and I can not figure out why IIS will not run 4.0 applications.
I am running Windows 2003 R2, Sp2. IIS 6.0
I created a new ASP.NET Application in Visual Studio 2010, and published it to a site on my IIS.
In IIS, I have selected it to run with 4.0, and my web.config also says to compile in 4.0
My First error was : Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. (C:\Inetpub\...\web.config line 22)
After some research, I found that my IIS had no v4.0 Web Service Extension setup. I thought this was odd, but I manually added it.
New error was : The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files'.
After some research, I found I needed to add this folder, and give all rights to it. I know something is wrong, I shouldn't have to do this.
My application is still erroring.. failing to load my ReportViewer :
Exception message: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
My research and I think my aspnet_regiis did not run properly.. so I tried to run this myself: but I get this error!!
-aspnet_regiis.exe - Application Error
--The application failed to initialize properly (0xc0000005). Click on OK to terminate the application.
I'm not sure what to do at this point, any tips?
Jun 28, 2010 02:48 PM|whighfield|LINK
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\ReportViewer\ReportViewer.exe
It will install/reinstall the ReportViewer components on the server.
Jun 28, 2010 02:54 PM|Kbalz|LINK
I do not have a v7.0A, just v5.0 and v6.0A
Shouldn't I be concerned about other things that may not work, is there something beyond ReportViewer I should worry about??
Jun 28, 2010 03:18 PM|whighfield|LINK
other than that you might head over to the IIS forums
Jun 28, 2010 03:39 PM|Kbalz|LINK
That helped - I am only stuck on the report viewer now. I downloaded the 7.1 SDK on my server, but there is no Bootstrapper folder or any ReportViewer.exe
Can you help further on this?
Jun 28, 2010 03:45 PM|Kbalz|LINK
Ah they suddenly worked, if I find more information about it I will respond. Thanks!