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 ...Issues Connecting to SQL 2005 Named InstanceIssues Connecting to SQL 2005 Named Instance
Previous
 
Next
New Post
1/18/2006 2:33 AM
 

Am having problems connecting to named SQL 2005 instance (named SQL1) running on XP Pro. Here is the connect strings I am using. This is DNN Version 4.02, compiled from Source. Any thoughts would be appreciated.

ConnectionString="Data Source=TOSHIBA-USER\SQL1;Initial Catalog=DotNetNuke;uid=DNN;pwd=DNN;"

<add key="SiteSqlServer" value="Data Source=TOSHIBA-USER\SQL1;Initial Catalog=DotNetNuke;uid=DNN;pwd=DNN;"/>

I have also tried     

connectionString="Server=TOSHIBA-USER\SQL1;Database=DotNetNuke;uid=DNN;pwd=DNN;"

Database is new and empty, and I am pretty sure that the user authentication and permissions are OK.

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 fproblor 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.

Source Error:

Line 112:                'ASP.NET 2 version connection string (in <connectionstrings>)
Line 113:                'This will be for new v4.x installs or upgrades from v4.x
Line 114:                connectionString = System.Configuration.ConfigurationManager.ConnectionStrings(name).ConnectionString
Line 115:            End If
Line 116:

Source File: C:\Projects\DotNetNuke\Library\Components\Shared\Config.vb    Line: 114

 
New Post
1/18/2006 7:37 AM
 
It's

<add key="SiteSqlServer" value="server=MachineName\InstanceName;Database=DotNetNuke;uid=DNN;pwd=DNN;" />

Is your machine name TOSHIBA-USER?

Hope this helps.

Dave


www.dnnPhotoGallery.com
 
New Post
1/18/2006 10:35 AM
 
Hey Barnett,
There's actually a couple things that potentially could be the problem.  First, what version of SQL Server are you running?  With Express, by default, it doesn't actually listen for remote connections so it would not be possible, unless you changed the default settings, to run the site and the database on different servers.  Also, with DNN 4, there's actually two places that the connection string is stored in the web.config, so make sure you change both of them!

Always glad to help!
 
New Post
1/19/2006 2:39 AM
 

Oh Dummy me!

When you first start working with something complex you tend to look for the hard answers rather than the easy ones. And, in interest of keeping the post short I left out part of the Web.config. Seems I had removed the closing right arrow from the comment header causing the entire connection string to be commented out. I was editing in a text editor and it was not color coded. when I opened it in VS it was immediately obvious!

NO PROBLEM CONNECTING WITH A NAMED SQL 2005 INSTANCE.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Issues Connecting to SQL 2005 Named InstanceIssues Connecting to SQL 2005 Named Instance


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