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...The stored procedure 'dbo.GetRole' doesn't existThe stored procedure 'dbo.GetRole' doesn't exist
Previous
 
Next
New Post
9/19/2012 6:24 PM
 

Hi, i have just upgraded from 6.1.4. to 6.2.3 and all go right (no errors, no sql errors etc) but ..

for only ONE of many portals in my instance i get:

[InvalidOperationException: The stored procedure 'dbo.GetRole' doesn't exist.] System.Data.SqlClient.SqlCommand.DeriveParameters() +1963037 System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) +121 Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) +86 Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) +150 Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) +82 Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) +59 DotNetNuke.Security.Membership.Data.SqlDataProvider.GetRole(Int32 roleId, Int32 portalId) +129 DotNetNuke.Security.Membership.DNNRoleProvider.GetRole(Int32 portalId, Int32 roleId) +20 DotNetNuke.Security.Roles.RoleController.GetRole(Int32 RoleID, Int32 PortalID) +17 DotNetNuke.Entities.Portals.PortalInfo.get_AdministratorRoleName() +76 DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 tabID, PortalInfo portal) +388 DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabID, PortalAliasInfo objPortalAliasInfo) +115 DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2601 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

In my TEST instance (not production where there is the problem) for same portal, where it run with no problem, this stored procedure not exist and the portal run well !?!?!?!

Anyone can help me please ?

Thanks in advance



Sandro De Matteis Microsoft IT Pro: Enterprise Admin, Enterprise Messaging Admin Technology Specialist: Microsoft Virtualization Dnn portals: http://www.dbdog.it , http://www.royalcrestgoldn.it, http://www.retrieversclub.it
 
New Post
9/19/2012 7:08 PM
 
Just found in 6.2.0 update script this lines

/* Drop GetRole Procedure */
/**************************/

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'{databaseOwner}[{objectQualifier}GetRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE {databaseOwner}[{objectQualifier}GetRole]
GO

This stored procedures is deleted in 6.2.0 upgrade step and i don't understand why is called in my 6.2.3 instance !

Help !!!


Sandro De Matteis Microsoft IT Pro: Enterprise Admin, Enterprise Messaging Admin Technology Specialist: Microsoft Virtualization Dnn portals: http://www.dbdog.it , http://www.royalcrestgoldn.it, http://www.retrieversclub.it
 
New Post
9/20/2012 3:59 AM
 
please check version number of dotnetnuke.dll, you might still use an older version.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/21/2012 9:15 AM
 
Found the problem ! It's a my problem ! The dns host name is set to an old ip of an old server (6.1.4 version) meanwhile the web.config database settings point to updated database (6.2.3).

It's strange how an 6.1.4 istance works with a 6.2.3 db with no warnings !

Thanks anyway, Sandro

Sandro De Matteis Microsoft IT Pro: Enterprise Admin, Enterprise Messaging Admin Technology Specialist: Microsoft Virtualization Dnn portals: http://www.dbdog.it , http://www.royalcrestgoldn.it, http://www.retrieversclub.it
 
New Post
9/21/2012 9:54 AM
 

if the database is newer than the files and .dll, there is no warning (by design) because of no downgrade option, in the opposite case however, the upgrade wizard is triggered.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...The stored procedure 'dbo.GetRole' doesn't existThe stored procedure 'dbo.GetRole' 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