asp.net mvc - IIS 6 Virtual directory MVC not working but Subdomain is -


I get the following error when using MVC as a virtual directory

Provider options should contain the 'compiler version' attribute 'v4.0' or later if you are compiling for the version 4.0 or later .NET Framework. To compile this web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the element of the Web.config file.

url at blah.domain.com/mvc

but at blahmvc.domain.com

I am getting what I want .

So I thought it was a configuration problem, so I clicked on the virtual directory blahmvc.domain.com and 'Save the configuration to a file ...'

and then <



Create a new virtual directory
Alias: MVC
and When I try and go to the page, I get the same error.

Using IIS6 and .NET 4.0.21006

< Try to remove the targetFramework parameter in system.web / compilation section of the Web.config file. This worked for me. Div class = "post-text" itemprop = "text">


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -