Bad web.config

Jul 5, 2011 at 7:05 PM

I used the SQL membership template and edited some names to fit my database, etc. I noticed that the following issues happen to the configured web config:

Under <connectionStrings>, there's an extra leading space in the name key. Example <add name=" fbaSQL"... Also, there were some extra characters added into the keys for membership and roles. Example:

<add connectionStringName="fbaSQL" applicationName="/"      name="fbaRoles" type="System.Web.Security.SqlRoleProvider, System.Web,   &#xD;&#xA;        Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/></Role>

The "&#xD;&#xA;" was causing errors for me and had to be removed.

Feb 1, 2015 at 9:57 AM
Yes, this is a bug there. For 2013 version it is too. So I fix spaces text after "System.Web" before apply config, and all goes Ok.

The tool is great, thanks to author, it saves time!