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 ...Security Problem Connecting to Server 2003Security Problem Connecting to Server 2003
Previous
 
Next
New Post
12/5/2006 10:44 AM
 
We are having a problem connecting our local DNN site to our development database that contains our custom module data.  I am hoping someone here might give us an idea what could be going wrong.

Our network group recently wiped our development server and installed Server 2003.  They then installed SQL Server 2000 and applied service pack 3 and restored the databases from backup.  In Enterprise Manager, I can connect to the database, but my coworker can't.  Messing with some security, we found he could connect if he was in one of the admin groups.  So, we know there is some security issue with that.  Also, we both found that our local DNN sites were having problems when trying to open our custom modules.  During development, we have the DNN database on our local machine and run IIS off it as well.  Our application database is on the rebuilt server.  This all worked before the rebuild.  The DNN log shows "SQL Server does not exist or access denied" when we open one of our modules.  That, combined with my coworker's sudden inability to connect without admin rights, makes me think there is some security setting we have screwed up.

Does anyone have any idea what could be causing our local IIS not to be able to connect with the server?

Thanks,
Jim Plankenhorn
 
New Post
12/6/2006 10:27 AM
 
Well, we fixed the problems.  The problem with my coworker's connection was fixed by reinstalling SQL Server with the authentication in mixed mode.  The DNN/IIS problem was fixed by applying this solution that I found after spending the day googling:

http://www.doughughes.net/index.cfm?event=viewEntry&entryId=91

I spent almost all morning tracking down a problem where an ASP.NET app would not connect to my Microsoft SQL server. It turns out that the solution I found also applies to failing ColdFusion MX JDBC Connections.

In ASP.NET, I kept seeing this message in my logs: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. In ColdFusion, MSSQL datasources with correct connection information fail to verify.

I was pretty sure that all of my connection information was correct. My MSSQL Server was up and running, and I was logged into it using Enterprise Manager and Query Analyzer with the exact same information which were failing in .NET and ColdFusion.

I spent quite a bit of time messing around with a bunch of different settings in the SQL server and other places, but didn't get anywhere. Out of desperation I did what I should have done first and Googled the error message. As a result I stumbled across this page. Apparently a lot of people have had this same problem for a variety of reasons.

I found the answer to the problem in the third to last comment on that page. Apparently, if you have an out of date version of the file DBNETLIB.dll Server 2003 and XP Service Pack 2 disables TCP/IP access to MS SQL Server. This is a defense against the Slammer worm.

To confirm this was the problem, I attempted to telnet to port 1433 on my localhost and could not. At this point, I was pretty sure I'd found the problem.

The solution to the problem was to go to this page on Microsoft.com and download the SQL Critical Update (SQLCritUpdPkg_ENU.exe). This update appears to deliver the needed DLL and, as a nice side effect, it patches you against the SQL Slammer worm.

After installing the patch I did a quick telnet to port 1433 and was able to connect. I then tried to use my ASP.NET app and, lo and behold, it worked just find. I also confirmed that JDBC connections to MSSQL from ColdFusion were now working and validating and I no longer had to use the (ugly) work around of ODBC.


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Security Problem Connecting to Server 2003Security Problem Connecting to Server 2003


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