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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Help! Scheduler running in Test is looking into LiveHelp! Scheduler running in Test is looking into Live
Previous
 
Next
New Post
9/18/2009 2:03 AM
 

Hi,

DNN 4.9.3
IIS 7
Win Server 2008
semi-dedicated server in shared hosting environment

Live and Test running on same server

When running the Scheduler in Test, the history shows that it is trying to run a process against the Live DB(!), even though there is no reference to the Live DB in web.config (or elsewhere that I can find). Fortunately the SQL Test credentials don't have access to the live DB, so it errors.

Here's the error message fromm Schedule History:

Kola.WF.Scheduler, BookPal_WFSchedulerWF Scheduler failed. System.Data.SqlClient.SqlException: The server principal "lpdf123h" is not able to access the database "aspndb" under the current security context. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at
...
at DotNetNuke.Data.SqlDataProvider.ExecuteNonQuery(String ProcedureName, Object[] commandParameters) at Kola.WF.Scheduler.AssignProducers() at Kola.WF.Scheduler.DoWork()


Now 'aspndb' is the Live DB. 'aspnDevdb' is the Test DB.

Everything else in the site works with 'aspnDevdb'.

As we want Test to match live, we copied the directory and updated web.config. Two of us have tripple-checked web.config, and it only references 'aspnDevdb'.
I've tried combinations of 'Clear Cache', 'Restarted Application', restarting the Scheduler, disabling/enabling the scheduled task... all to no avail.


Here's the code of AssignProducers():

   Friend Sub AssignProducers()

      'run stored procedure to add to producer to-do lists where the customer has satisfied the WF's criteria

      'Create PortalId parameter
      Dim myParam As SqlParameter = New SqlParameter("@portal", SqlDbType.Int)
      myParam.Value = 0 'DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings.PortalId

      'Execute Stored Procedure
      DataProvider.Instance().ExecuteNonQuery("WF_Sched_AssignProducersSp", myParam)

End Sub


The module runs sweet in Live.


Any thoughts?


Cheers,
Kent

 
New Post
9/18/2009 5:09 PM
 

You checked web.config for BOTH database connection strings, right?


Eric Swanzey
www.swanzey.com
 
New Post
9/19/2009 6:43 AM
 

Yes, two of us did a CTRL-F and searched for the live DB name. Nothing. Both point to test.

Cheers,

Kent

 
New Post
9/21/2009 7:28 AM
 

I wonder if there a standard way of admitting one's an idiot? I'm sure there is a form I can fill out.

I executed the SP directly in Query and got the same message.
It turns out that the stored procedure (which I double-checked) calls another very old SP (which I didn't check) that references, mistakenly, a fully qualified tablename.

 

Obviously was never a problem in live.

 

Cheers

Kent

 
New Post
9/21/2009 9:48 AM
 

Don't you just love those light-bulb moments.


Eric Swanzey
www.swanzey.com
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Help! Scheduler running in Test is looking into LiveHelp! Scheduler running in Test is looking into Live


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