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 ...DNN 4.3.4 configuration errorDNN 4.3.4 configuration error
Previous
 
Next
New Post
8/9/2006 4:42 PM
 

Hello

I am trying to install DNN 4.3.4 on my host server.  In the web config file I have set the connection strings as per instructions editing both the connection string settings and the app settings :

 ***************************************************************

<connectionStrings>

    <!-- Connection String for SQL Server 2005 Express -->
    <add
      name="SiteSqlServer"  connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" providerName="System.Data.SqlClient" />
   
    <add  name="SiteSqlServer" connectionString="Server=MySERVER;Database=xxxxx;uid=xxx;pwd=xxx;"
      providerName="System.Data.SqlClient" />
 
 
  </connectionStrings>


  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>


    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->


    <add key="SiteSqlServer" value="Server= MySERVER;Database=xxxx;uid=xxx;pwd=xxx;"/>
  

***********************************************************************

When I tried to acces the site on line I saw this error:

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The entry 'SiteSqlServer' has already been added.

Source Error:


Line 26:       providerName="System.Data.SqlClient" />
Line 27:    
Line 28:     <add
Line 29:       name="SiteSqlServer"
Line 30:       connectionString="Server=MySERVER;Database=xxx;uid=xxx

 

Source File: D:\xxx\xxx\xxx\web.config    Line: 28

What have I done wrong, this is my first attempt at installing DNN 4

Any advice appreciated.

Thanks in advance.


www.seemalta.net
 
New Post
8/9/2006 10:08 PM
 

It has to do with comments - This is a comment: <!-- Connection String for SQL Server 2005 Express -->
NOTE the string between the <!-- and --> which are the open and close tags

This is NOT a comment and therefore a configuration string:

<add name="SiteSqlServer"  connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" providerName="System.Data.SqlClient" />
NOTE there is NO <! at the head of the tag.

So with that knowledge looking at the first section, you added the key SiteSqlServer twice in the connection string section as the error message mentioned. 

 


Shadow
 
New Post
8/10/2006 2:02 AM
 

Hello Shadowpdx

Thanks for the reply.  The none edited web config file looks like this:

<!-- Connection String for SQL Server 2005 Express -->

<add name="SiteSqlServer"

connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"

providerName="System.Data.SqlClient" />

<!-- Connection String for SQL Server 2000/2005

<add

name="SiteSqlServer"

connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"

providerName="System.Data.SqlClient" />

-->

</connectionStrings>

<appSettings>

<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules -->

<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules

<add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>

-->

***************************************************************************

According to the DNN installation:

(In addition to the <appSettings> required in 3.x, 4.x also requires the same connection String to be set under the <connectionString> section)

Which to me implies that I must also edit this section:

<!-- Connection String for SQL Server 2000/2005

<add

name="SiteSqlServer"

connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"

providerName="System.Data.SqlClient" />

-->

*******************************************************

Below are my full config settings:

 

<!-- Connection String for SQL Server 2005 Express -->

<add

name="SiteSqlServer"

connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"

providerName="System.Data.SqlClient" />

<!-- Connection String for SQL Server 2000/2005 -->

<add

name="SiteSqlServer"

connectionString="Server=MySERVER;Database=kxxxx;uid=xxxx;pwd=xxxx;"

providerName="System.Data.SqlClient" />

</connectionStrings>

<appSettings>

<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules -->

<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->

<add key="SiteSqlServer" value="Server=MySERVER;Database=xxxx;uid=xxxx;pwd=xxxx;"/>

*****************************

Oops! my misunderstanding, I thought I needed both.

So in my

<add name="SiteSqlServer" connectionString

I should comment one of them out depending on which server my hosting provider is using? 

If that is the case then what about this section:

<appSettings>

<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules -->

<add key="SiteSqlServer"

Do I need to comment out one of them too?

Thanks


www.seemalta.net
 
New Post
8/10/2006 4:02 AM
 

Hello  Shadowpdx

In my web config file and my development config file I commented out the following connection string:

<connectionStrings>

<!-- Connection String for SQL Server 2005 Express -->

<!-- commented out connection string

<add

name="SiteSqlServer"

connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"

providerName="System.Data.SqlClient" />

-->

<add

name="SiteSqlServer"

connectionString="Server=MySERVER;Database=xxxx;uid=xxxx;pwd=xxxx;"

providerName="System.Data.SqlClient" />

</connectionStrings>

 

************************************************

And I was given an install error message:

Error Installing DotNetNuke
Current Assembly Version: 04.03.04
EXECUTE permission denied on object 'GetDatabaseVersion', database 'xxx', owner 'dbo'.

*************************************************

 

In my web config file and my development config file I then also commented out the following app settings:

<appSettings>

<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules COMMENTED OUT

<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

-->

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->

<add key="SiteSqlServer" value="Server= MySERVER;Database=xxxx;uid=xxxx;pwd=xxxx;"/>

 

*********************************************

Then I was given this error message:

DotNetNuke Upgrade Error
The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.

*****************************************

I checked and found that my hosting provider is using MS SQL 2000 servers. What am I doing wrong?

Thanks

 

 


www.seemalta.net
 
New Post
8/10/2006 7:03 AM
 

Hello All

I am still having install problems as above.  I would appreciate a little more advice. Please.

Thanks


www.seemalta.net
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.3.4 configuration errorDNN 4.3.4 configuration error


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