ASP.Net/web.config - "The entry 'x' has already been entered"? -


When I see an error message in ASP.NET " the entry 'x' has already been entered < / Strong> "I think it means a name (in this case 'x') is defined twice in web.Config .

Is there a proper summary of the reasons for that error or can it be generated in other ways?

'x' in the question does not appear twice in the web. Config - Any other ideas of what might be causing this error?

If you've nested web.config files, string the same connection to both web.config files The entry may be the reason for this error, in the nested web.config file, a & lt; Clear /> You can fix this by adding tags:

  & lt; ConnectionStrings & gt; & Lt; Clear /> & Lt; Add name = "MyEntities" connectionString = "blah, blah, etc." / & Gt; & Lt; / ConnectionStrings & gt;  

Comments