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 5 install failure on IIS7 and SQL Server 2008DNN 5 install failure on IIS7 and SQL Server 2008
Previous
 
Next
New Post
4/26/2009 1:44 PM
 
Hi, I'm trying to get DNN 5 to install on IIS7 and SQL Server 2008.
I have copied the install files to the root folder of my server and am attempting to run the app to install DNN. However, I get the following message - that seems to suggest that there is a failure to connect to the DB. Any help most gratefully received!
Steve

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Stack Trace:[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Common.Utilities.Config.GetConnectionString(String name) +50
DotNetNuke.Common.Utilities.Config.GetConnectionString() +38
DotNetNuke.Data.SqlDataProvider..ctor(Boolean useConfig) +105
DotNetNuke.Data.SqlDataProvider..ctor() +10

The DB connection related settings I have used in the web.config are :



 
New Post
4/26/2009 4:16 PM
 

web.config entries:

 <connectionstrings>      <!-- Connection String for SQL Server 2000/2005     <add name="SiteSqlServer" connectionString="Data Source=tcp:esqaaaaaa.discountasp.net;Initial     Catalog=XXXXX;User ID=YYYYY;Password=ZZZZZ" providerName="System.Data.SqlClient" />      -->     </connectionstrings>     <appsettings>     <!-- Connection String for SQL Server 2000/2005     <add key="SiteSqlServer" value="Data Source= tcp:esqaaaaaa.discountasp.net;Initial Catalog=XXXXX;User ID=YYYYY;Password=ZZZZZ;" providerName="System.Data.SqlClient" />
--> </appsettings>

 

 
New Post
4/26/2009 6:18 PM
 

I would double and triple check the connection string to make sure it is correct.  Also, make sure the the permissions are correct on the root folder.

 

 

 
New Post
4/26/2009 6:59 PM
 

AFAIS the connection string is commented, remove "< ! --" and "-- >" in both places.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/26/2009 10:27 PM
 

Hi Guys,

Many thanks - DNN 5 successfully installed!

Steve

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 5 install failure on IIS7 and SQL Server 2008DNN 5 install failure on IIS7 and SQL Server 2008


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