Can ASP.net application using framework 4.0 run on IIS 5.1, I get a CompilerVersion attribute error
Posted on 2012-04-03
I have developed an ASP.net application debuged with Visual Web Developer 2010 framework 4.0, My operating system is Windows XP. When I publish the website to IIS5.1 and run it I get an error below,
Exception Details: System.Configuration.ConfigurationErrorsException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.
I have selected framework 4.0.30319 in IIS properties. I deleted targetFramework="4.0"/ from the following web.config line,
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>
The application now runs, but my login controls fail. "login unsuccessful .... when using ASPNETDB.
Appreciate some expert help.