I'm trying to add a connection to a database into my web.config file. Unfortunately, now I'm getting the generic runtime error that tells me to turn the custom errors to off in my config file but I already have, so I'm really at a loss of what to do now.
<configuration><connectionStrings><add name="MyConnectionString" connectionString="Data Source=mssql.xxxx.xxxx;Initial Catalog=xxxxx;Persist Security Info=True;User ID=xxxxx;Password=xxxxx" providerName="System.Data.SqlClient"/></connectionStrings><appSettings><add key="MyConnectionString" value="server=mssql.xxxx.xxxx;uid=xxxxx;pwd=xxxxx;database=xxxxx"/></appSettings><system.web><customErrors mode="off"/><pages enableEventValidation="false"/></system.web></configuration>
This tool can help you to figure it outhttp://alpascual.com/blog/al/archive/2006/11/28/ASP.NET-Best-Practises.aspx
Also I believe the word off needs to be with the O capital : <customErrors mode="Off"/>
Not sure but pretty sure ;-)
DOH!! Thank you - that was exactly the problem.
No worries, sometimes you need a new pair of eyes, too many tags, too little time.
Please mark the thread answered or resolved
0 comments:
Post a Comment