Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SiteSqlServer problem in web.config DNN 4.3.3SiteSqlServer problem in web.config DNN 4.3.3
Previous
 
Next
New Post
7/27/2006 12:35 AM
 
Can anyone have a look at my web.config file below.  I have a test site running 4.3.1 and it works ok.  When i try to install DNN 4.3.3 on the same machine i keep coming across this message;

"The entry 'SiteSqlServer' has already been added".

I've seen posts about this problem where people are using the connection strings for SqlExpress & SQL 2005 but I've completely removed all references to Sqlexpress in the config file but the problem persists.  I'm guessing that the message is trying to tell me that there are 2 entries for "SiteSqlServer" but i just cant see where.   I even tried to remove the legacy string to no avail.  An extract of my web.config is below;


  <connectionStrings>
    <!-- Connection String for SQL Server 2000/2005 -->
    <add name="SiteSqlServer"
      connectionString="viewmobile;Database=coralsolutions;uid=dbtestuser;pwd=xxx;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->
    <add key="SiteSqlServer" value="viewmobile;Database=coralsolutions;uid=dbtestuser;pwd=xxx;"/>


My setup is WinXP Pro (IIS 5.1), SQL Server 2005 Developers edition.  Any help would be appreciated.

cheers
John

 
New Post
7/27/2006 12:53 AM
 
This could also be becuase you have a version of DNN installed in the root and the one giving the error in a sub-directory.  It sees the settings in the root web.config and when it tries to load the web.config in the sub-direcotry you get the error.  This is becuase .Net cascades web.config files it finds in a web site root and the sub-directories under it.  This allows sites to share some setting in the root web.config while setting application specific settings in the web.config for the sub-application.
 
New Post
7/27/2006 1:28 AM
 
thanks for the super fast response.  There are no web.config files in the root.  The only thing in the root is;

Library (Subdirectory)
Website ((Subdirectory)
DotNetNuke.sln

but to be sure, i'll move the site out of the inetpub directory and put it into a directory off the main drive.  I'll let you know how i go.

Cheers
John
 
New Post
7/27/2006 2:44 AM
 
Moved my site out of the default inetput directory to C:\TESTDNN433 and still get the same error.  Could it be something to do with the default directory in IIS?
 
New Post
7/27/2006 3:12 AM
 

Shawn is talking about a website root, not the file system's directory root.

So maybe you already have another website in http://<domain> with a web.config and now you are having trouble in http://<domain>/dotnetnuke with another web.config?

The application in the virtal directory is now inheriting the settings from the web.config in the web root.

 


Geert Veenstra
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SiteSqlServer problem in web.config DNN 4.3.3SiteSqlServer problem in web.config DNN 4.3.3


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out