I figured out the problem. When I had originally setup the server to run MVC with .Net 2, I had setup the wildcard path to point to the aspnet_isapi.dll file in the v2.0.50727 directory. Once I switched it to v4.0.30319 it worked.
You can get to the wildcard mapping by...
- Open IIS Manager
- Open the website properties
- Go to the Home Directory or Virtual Directory tab
- Click Configuration button
- Edit the wildcard mapping (lower box). If there isn't a wildcard mapping, add one.
The value should be c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll (depending on the directory you installed .Net 4 to).
- As a side note, you can change the ASP.Net version under the ASP.Net tab in the website properties.