when i try to debug my code in visual studio 2005.It shows this error message: [h=1]Server Error in '/ongcweb' Application.[HR][/HR][/h][h=2]Configuration Error[/h][FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Child nodes not allowed. Source Error: [TABLE="width: 100%"] [TR] [TD] Line 89: <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"Line 90: type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">Line 91: <providerOption name="CompilerVersion" value="v3.5"/>Line 92: <providerOption name="WarnAsError" value="false"/>Line 93: </compiler>[/TD] [/TR] [/TABLE] Source File: C:\Users\ACER123\Desktop\ongcweb\web.config Line: 91 [HR][/HR]Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312 [/FONT]
It's best to create a new web site/application then copy your code over. However you can change the the web.config and will need to because the .net framework 2.0 is different than more modern versions of the .net framework. If you set your project target to a lower framework visual studio should change your web.config accordingly and you will not get those errors. Other issues can be the project/solution files having a version number greater than your projects version and it will not load correctly. If those versions are manually modified it should load correctly.