This is a mirror of official site: http://jasper-net.blogspot.com/

HTTP 500 Errors With Invalid Request Format After Upgrading Site to .NET 4.0

| Sunday, December 26, 2010
Problem: After upgrading an ASP.NET site to 4.0 you get HTTP 500 errors with exceptions when Javascript is making web service calls: “System.InvalidOperationException: Request format is invalid: application/json; charset=utf-8.” You’ve used IIS Manager to change the application pool to specify .NET 4.0 but the problem persists.

Solution: Change to the 4.0 framework folder (C:\Windows\Microsoft.NET\Framework64\v4.0.30319 in my case) and run aspnet_regiis.exe. You’ll need to determine which option you want – check the help before running and determine what you need.

Read more: FRAZZLEDDAD

Posted via email from .NET Info

0 comments: