Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The configuration section cannot contain a CDATA or text element error in web.config file

I am getting an error while executing the application on server "The configuration section cannot contain a CDATA or text element(web.confing line 149) the error lines are as follows,

<location path="admin">    <system.web>     <authorization>                      <allow roles="Admin"/>         <deny users="*"/>;     </authorization>    </system.web> </location> 

Pleae help me in this error.

like image 616
user2409235 Avatar asked Aug 21 '13 10:08

user2409235


2 Answers

You have a semicolon in front of

<deny users="*"/> 

This semicolon is not allowed and is the reason you are getting that error.

like image 180
ProgrammingNinja Avatar answered Oct 28 '22 20:10

ProgrammingNinja


Make sure there's no stray character in the configuration file. It can be as "harmless" as a misplaced "-->" or extra ." or anything really minor.

like image 24
meol Avatar answered Oct 28 '22 20:10

meol