.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

run time errors by my application

Posted By: akidivictor     Posted Date: October 22, 2011    Points:5   Category :ASP.Net
hey, i've been trying to edit my web.config file the one in the microsoft.Net framework folder, but it's not granting permision, i need a way out... my .net application is giving runtime errors

(Error 2 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.)

since i started using visual studio 2010, to create web application, i have to use "file system" instead of "localhost" directory, if not it shows that error

Responses
Author: Narayanan             
Posted Date: October 24, 2011     Points: 20   

Hi,
try this link
http://www.aspspider.com/qa/Question4562.aspx

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Amit Mehra             
Posted Date: October 27, 2011     Points: 20   

Hi,

YOu can add Target Framework attribute to 3.5 in web.config file

<configuration>
<configSections>...</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="false"
targetFramework="3.5">
...
</compilation>
</system.web>
...
</configuration>



Thanks,
Amit
Please "Mark As Answer " if this post help you.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend