skip to Main Content

I’ve just got a new server setup on Windows 2008 Web edition. I’m trying to set the first asp.net 4 application up on it but am having nothing but problems.

The latest is that I’m getting the 404.17 error, which says “the requested content appears to be script and will not be served by the static file handler.”.

I’ve done a lot of research on google but most suggestions seem to be to run aspnet_regiis -i to install asp.net 4. I’ve done this several times both on the Framework and Framework64 folders, but with no success.

I tried changing from the default application pool to a .net4 application pool, which appeared to work at first and I instead got a server error to do with permissions. I fixed that, and immediately the 404.17 error returned.

Other suggestions I’ve read say to go into the “turn windows features on and off” and make sure .net 4 is selected there under IIS. However on this server clicking “turn windows features on and off” takes me to the standard windows 2008 server manager. I click “add features” there, and only “.NET Framework 3.0 Features (Installed)” is listed and selected. .NET 4 isn’t shown there, yet it is selectable through the application pools.

What else can I try to get the website running as I’m at a complete loss now. Its annoying because my old server was easy to manage – I did it all through the server itself without a control panel (Windows 2003), now on my new server I have to manage most of it through Plesk because there is no dns.

Any help would be much appreciated.

4

Answers


  1. Chosen as BEST ANSWER

    I've finally figured out the problem, and it was to do with Plesk itself.

    After delving through some of the thousands of links throughout the plesk control panel I found a page for "Website Scripting and Security". Under there it was set to .NET 2.0. However, even though I'd installed .NET 4 on the server, Plesk didn't know about it. Although the application pool I'd set the website to run under through IIS was .NET 4, it still wouldn't work for some reason.

    I then found another page under "tools and settings" for server components, and on that page is a refresh button. Hit that and it suddenly realised that .NET 4 was installed, went back to the website scripting and security page, selected .NET 4, and hey presto, I got a server error (never have I been so glad to see a server error).

    I then just had to give the application pool identity read access to the web folder, and the website worked.

    I wish I'd paid an extra £15 per month for Windows 2008 Standard edition now so I could manage it all manually without Plesk.


  2. Ensure that you are running this application under a Virtual Directory, also ensure that your IIS has ASP, ASP.Net, ISAPI Extensions And Filters, Static Content installed.

    Login or Signup to reply.
  3. I too had the same problem but solved it with simple solution. My program was in framework 4.0 but in application pool was mapped to framework 2.0.
    Just changed the frame work in application pool to 4.0.
    It worked.

    Login or Signup to reply.
  4. Change the .net framework from ‘plesk’ panel:

    • go to Domains
    • select then domain
    • Go to ‘Domain and Websites & Domains’
    • Hide Advanced Operations
    • Go to ‘Asp.net Settings’
    • Go to ‘Change Version’
    • select 4.0

    If you don’t have the 4.0 option then you must install the framework on your server first.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search