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...Upgrading DNN P...Upgrading DNN P...'dbo.Messaging_GetNewMessageCount' doesn't exist
Previous
 
Next
New Post
4/7/2010 3:45 AM
 

Hey all

Just upgraded to 5.3.1 and got this message in the log view;

Did the upgrade miss this stored procedure ? Thansk in advance...

UserName: admin ActiveTabID: 48 ActiveTabName: Log Viewer RawURL: /Admin/LogViewer/tabid/48/pid/1/currentpage/3/Default.aspx AbsoluteURL: /Default.aspx AbsoluteURLReferrer: http://akbrondby.dk/Admin/LogViewer/tabid/48/pid/1/currentpage/3/Default.aspx UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2) DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: 0b5b2e02-b7f4-42c4-8b86-bfea035119da InnerException: The stored procedure 'dbo.Messaging_GetNewMessageCount' doesn't exist. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: System.Data.SqlClient.SqlCommand.DeriveParameters StackTrace: Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.Messaging_GetNewMessageCount' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.Messaging_GetNewMessageCount' doesn't exist. at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.ExecuteScalar(String ProcedureName, Object[] commandParameters) at DotNetNuke.Services.Messaging.Data.MessagingDataService.GetNewMessageCount(Int32 PortalID, Int32 UserID) at DotNetNuke.Services.Messaging.MessagingController.GetNewMessageCount(Int32 PortalID, Int32 UserID) at DotNetNuke.UI.Skins.Controls.User.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---


Best regards /Kenneth Madsen
 
New Post
5/30/2010 3:51 AM
 
Hi Kenneth,

I have the same error message when upgrading from 5.3. It seems an unknown at the moment and hopefully someone can help.


Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.Messaging_GetNewMessageCount' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.Messaging_GetNewMessageCount' doesn't exist. at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.ExecuteScalar(String ProcedureName, Object[] commandParameters) at DotNetNuke.Services.Messaging.Data.MessagingDataService.GetNewMessageCount(Int32 PortalID, Int32 UserID) at DotNetNuke.Services.Messaging.MessagingController.GetNewMessageCount(Int32 PortalID, Int32 UserID) at DotNetNuke.UI.Skins.Controls.User.Page_Load(Object sender, EventArgs e) in D:\Websites\Admin\Skins\User.ascx.vb:line 126 --- End of inner exception stack trace ---
 
New Post
2/15/2011 9:18 AM
 
I've got a very similar / same error message after upgrading from version 5.1.4 to 5.6.1, via versions 5.2.3, 5.3.0, 5.4.2, 5.4.4, 5.5.1.
The error shows up on all pages of my 2 portals after having logged in as a host. The logout hyperlink is not there anymore.



DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.Messaging_GetNewMessageCount' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.Messaging_GetNewMessageCount' doesn't exist. at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.ExecuteScalar(String ProcedureName, Object[] commandParameters) at DotNetNuke.Services.Messaging.Data.MessagingDataService.GetNewMessageCount(Int32 PortalID, Int32 UserID) at DotNetNuke.Services.Messaging.MessagingController.GetNewMessageCount(Int32 PortalID, Int32 UserID) at DotNetNuke.UI.Skins.Controls.User.Page_Load(Object sender,EventArgs e) --- End of inner exception stack trace ---

 
New Post
2/15/2011 10:01 AM
 
The stored procedure Messaging_GetNewMessageCount was created (along with other messaging related database objects) in DotNetNuke 5.03.00. Do you recall seeing any errors during upgrade to that version?

I suspect that there may have been other issues as well during the upgrade(s) but would suggest that you first try re-creating this stored procedure using the Host --> SQL menu function:

1. Paste the following script into the SQL text area.
2. Check the "Run as Script" box.
3. Click Execute script.

//*** Create Messaging_GetNewMessageCount Procedure ***//

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'{databaseOwner}[{objectQualifier}Messaging_GetNewMessageCount]') AND OBJECTPROPERTY(id, N'IsPROCEDURE') = 1)
  DROP PROCEDURE {databaseOwner}{objectQualifier}Messaging_GetNewMessageCount
GO

CREATE PROCEDURE {databaseOwner}[{objectQualifier}Messaging_GetNewMessageCount]
 @PortalID int,
 @UserID int
AS
 SELECT count(*) FROM {objectQualifier}Messaging_Messages WHERE ToUserID = @UserID AND Status = 1
GO

/*** End of Procedure Creation **/

In general I don't recommend an incremental upgrade such as this, particularly when including 5.3.0 and 5.4.2 which were known to have a number of issues. I've had good succes with going directly from 5.xx to 5.6.1. Others recommend including 5.4.4 as an intermediate version step which for a number of reasons (particularly if also switching to ASP.Net 4.0 or not planning to use content localization) also makes good sense.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
2/15/2011 12:10 PM
 
I tried your suggestion and upgraded directly from version 5.1.4 to 5.6.1, but got errors.

Upgrading from version 5.1.4 to 5.4.4 to 5.6.1 though worked perfectly! No errors at all. Thank you very much!!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...'dbo.Messaging_GetNewMessageCount' doesn't exist


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