If you attempt to run an ASP.NET application hosted on IIS7.0 running on Windows Home Basic or Premium (Vista or Windows 7, x86 or x64), you may receive the following error:

error CS0016: Could not write to output file ‘c:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Files…

Apparently this problem occurs because Windows Home Basic and Premium lack Windows Authentication.  So the common response on the Web is to upgrade to Windows Home Ultimate, Business or Professional.  However, there is no need to upgrade, as you can solve this problem with a few mouse clicks:

1.  Run the Internet Information Services (IIS) Manager program.  It can be found in the Start > Administrative Tools menu.  You may have to edit the Start Menu properties to show the Administrative Tools folder.

2.  Select the Application Pools item in the Connections pane.

3.  Right-click on the application pool in which you are running your ASP.NET application.  On my PC, this was the DefaultAppPool.

4.  Select Advanced Settings from the popup menu.

5.  In the Process Model section, set the Identity to LocalSystem.  Click the OK button.

If you selected the correct application pool, your ASP.NET application should now run on your PC without error CS0016.

Reference

Share and Enjoy:
  • Digg
  • Twitter
  • Facebook
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Google Bookmarks
  • Slashdot