I'm using Visual Web Developer 2005 on my Machine and My Web Server and SQL server 2000 are Hosted on a Remote Machine. All the settings were working perfectly fine untill i try to add <ConnectionStrings> element in my web.config file. If i add <ConnectionStrings> element in my web.config file then apperently it dosent like and and give the followind Error
Now i Knw that this error can be resolved by adding <customErrors mode ="Off"> element, but the question is how to use both togather.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration> |
I've try renaming my web.config file, bt that didn't work either, please see the file below, Any help to solve this problem will be highaly appriciated.
<?
xml version="1.0" encoding="UTF-8" ?><configuration>
<
connectionStrings><add name="ParsDotNet" connectionString="Server=sql0;Database=ParsDotNet;uid=xxxx;pwd=xxx;" providerName="System.Data.SqlClient" /></connectionStrings>
<
system.web><customErrors mode ="Off">
</
customErrors></system.web>
</
configuration>