ASP.net Page cannot run in debug mode

Hi

I am suddenly getting the following message in my ASP.net web application
project and am not sure why

1
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
So have you tried enabling it by modifying the web.config ???
0
Paul JacksonSoftware EngineerCommented:
Can occur if the web.config is read-only, assuming that you have tried clicking ok to modify the web.config.

Have you recently copied the project to a different location?
0
käµfm³d 👽Commented:
So as GaryC123 mentions, you need to enable debugging within the web.config. The window you are seeing is prompting you to do exactly that. If you click "OK" with the top radio button selected, then the web.config will be modified for you by Visual Studio. This happens in any web project within Visual Studio.
0
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
When I click OK I get the following message showinh line 25 in red

Line 24:   <system.web>
Line 25:     <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>
Line 26:     <authentication mode="Forms">
Line 27:       <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
 

 Source File:  C:\Users\murbro\Documents\Visual Studio 2010\Projects\Hotels\Hotels\web.config    Line:  25
0
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Server Error in '/' Application.
--------------------------------------------------------------------------------


Configuration Error
  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: Sections must only appear once per config file.  See the help topic <location> for exceptions.

Source Error:


Line 25:     <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>
Line 26:     <authentication mode="Forms">
Line 27:       <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
 

 Source File:  C:\Users\murbro\Documents\Visual Studio 2010\Projects\Hotels\Hotels\web.config    Line:  25


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18055
0
käµfm³d 👽Commented:
You've got a duplicate section in your web.config. You need to eliminate one or the other.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks very much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.