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.