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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesScheduled Task unable to open DBScheduled Task unable to open DB
Previous
 
Next
New Post
10/23/2012 10:25 AM
 

I have a large, self written module.  All the data is in a separate database, secondary to the main DNN one.

One component is a scheduled task, there are other standard display/edit module components.  All share the secondary database, all use the same connection string, picked up from the web config.  The online portion of the site is working perfectely. 

Yesterday I discovered that the scheduled task has been failing since the early hours of September 27.  My last code signoff was Sep10, so the code ran happily for 17 days.  The failure is "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

The site is hosted at PowerDNN.  The connectionstring uses SQL Server authentication.  The SQL Server (for both the DNN database and the secondary) is on the same machine as the Site.

I'm out of ideas.  I feel that it has to be a change in the environment that stops the code from reaching the SQL Server.  I cannot imagine what it might be that allows the online pages to connect, but fails when the scheduled task connects.

If anyone has any idea what this might be, or can suggest any checks I can ask PowerDNN support to try.  I'm *very* interested.

Thanks for reading so far.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
10/23/2012 5:27 PM
Accepted Answer 
Turns out I am (probably - we have yet to completely prove this) looking at the wrong connection string. The connection string in error had...

server=(192.1.1.1);

...which looks plausible but does not work. This blog entry mentions why.

http://blogs.msdn.com/b/sql_protocols...

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesScheduled Task unable to open DBScheduled Task unable to open DB


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