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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SQL error in modulesSQL error in modules
Previous
 
Next
New Post
1/29/2008 4:09 PM
 

I've got 4.08 installed and working and all the modules that don't touch the SQL database seem to work fine (News, Announcements, HTML, etc.) but any module that uses SQL data (Users Online, FAQs, Repository) errors out:

DotNetNuke.Services.Exceptions.ModuleLoadException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.

The thing is that I know it's reaching SQL because I can log in OK but it still won't display any other data. Anyone seen this before?

 
New Post
1/29/2008 8:39 PM
 

make sure, both connection strings in your web.config file are identical!!


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/30/2008 8:36 AM
 

 

 

 

 

 

 

 

 

 

 

 

 

Here's the pertinent part of web.config. The format is a little different but that's the way it was in the original file. Should I make them exactly the same?

 

...

<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" />
-->

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

<add name="SiteSqlServer" connectionString="Data Source=______;Initial Catalog=_____;User ID=_____;Password=________"
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=_____;Database=_____;uid=_____;pwd=_____;" />

<add key="InstallTemplate" value="DotNetNuke.install.config"/>

<add key="AutoUpgrade" value="false"/>

....

 
New Post
1/30/2008 1:45 PM
 

Actually you were right - I changed them to be identical and it worked like a charm. I wonder why you need both of them then? Strange...

Anyway thanks!

 
New Post
1/30/2008 2:23 PM
 

one of them is for DNN 4 core and DNN 4 modules, the other is legacy support for DNN 3 modules.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SQL error in modulesSQL error in modules


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