Knowledgebase

Home » Item #838

Error: 'name redefined'

Item: #838
Date: 1 Apr 2004
Applies to
v5

Question

I have setup my site with MS SQL Server but I get a 'name redefined' error. What's up? Is it a biggie to fix?

Answer

In the config.asp file, there are a number of connection strings for different databases, each beginning with 'CONST'. When setting constants in this way, you cannot declare the constant more than once or you will get this error.

Ensure you only have one active 'CONST strDataSourceName' line. In particular if you are running MS SQL, ensure that only one of the two strings is active and that the other is commented out (by putting a single quote in front of it).

Can't find the answer you need? Click here to open a support ticket.

« Back