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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 4.9.5 to 5.1.2 Error - Script & Package FileUpgrade 4.9.5 to 5.1.2 Error - Script & Package File
Previous
 
Next
New Post
9/30/2009 3:35 AM
 

This has been my 2nd attempt to upgrade and not sure if it's an "easy" fix or if I should just stick with 4.9.5.

I apologise if this is covered elsewhere and please feel free to point me there if it is!  I'm sure most are aware the DNN forum search doesn't work and with Google I could only find stuff over 3yrs old.

The error lines in the upgrade are as follows:

00:00:00.171 -   Executing Script: 05.00.00.SqlDataProvider Error! (see 05.00.00.log for more information)
00:00:24.343 -   Executing Script: 05.00.01.SqlDataProvider Error! (see 05.00.01.log for more information)
00:00:28.046 -   Executing Script: 05.01.00.SqlDataProvider Error! (see 05.01.00.log for more information)
00:00:34.234 -   Executing Script: 05.01.01.SqlDataProvider Error! (see 05.01.01.log for more information)
00:00:36.578 -   Executing Script: 05.01.02.SqlDataProvider Error! (see 05.01.02.log for more information)

and

00:02:32.406 -   Installing Package File HTML_Community_05.01.03_Install:  Error!

everything else was fine.

The log files all show the following:

 

System.Data.SqlClient.SqlException: Cannot find the object 'tacuk_Forum_NewsArticleAdd', because it does not exist or you do not have permission.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText)
   at DotNetNuke.Data.SqlDataProvider.GrantStoredProceduresPermission(String Permission, String LoginOrRole)

if exists (select * from dbo.sysusers where name='public')  begin    declare @exec nvarchar(2000)     declare @name varchar(150)     declare sp_cursor cursor for select o.name as name     from dbo.sysobjects o     where ( OBJECTPROPERTY(o.id, N'IsProcedure') = 1 or OBJECTPROPERTY(o.id, N'IsExtendedProc') = 1 or OBJECTPROPERTY(o.id, N'IsReplProc') = 1 )     and OBJECTPROPERTY(o.id, N'IsMSShipped') = 0     and o.name not like N'#%%'     and (left(o.name,len('tacuk_')) = 'tacuk_' or left(o.name,7) = 'aspnet_')     open sp_cursor     fetch sp_cursor into @name     while @@fetch_status >= 0       begin        select @exec = 'grant EXECUTE on ' +  @name  + ' to [public]'        execute (@exec)        fetch sp_cursor into @name       end     deallocate sp_cursor  end

 

When viewing the site - the skin seems fine but there is no content shown at all, just the module containers.

It shows the error:

A critical error has occurred.
Could not load type 'DotNetNuke.Data.NonCommandParameterAttribute' from assembly 'DotNetNuke, Version=5.1.2.51, Culture=neutral, PublicKeyToken=null'.

 

The General Exception detail is:

AssemblyVersion: 5.1.2
PortalID: 0
PortalName: x
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Home
RawURL: /Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 7a787c0e-539a-482f-95fe-09496caa0a16
InnerException: Could not load type 'DotNetNuke.Data.NonCommandParameterAttribute' from assembly 'DotNetNuke, Version=5.1.2.51, Culture=neutral, PublicKeyToken=null'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: CATALooK.Data.SqlCommandGenerator.GenerateCommandParameters
StackTrace:
Message: System.TypeLoadException: Could not load type 'DotNetNuke.Data.NonCommandParameterAttribute' from assembly 'DotNetNuke, Version=5.1.2.51, Culture=neutral, PublicKeyToken=null'. at CATALooK.Data.SqlCommandGenerator.GenerateCommandParameters(SqlCommand command, MethodInfo method, Object[] values) at CATALooK.Data.SqlCommandGenerator.GenerateCommand(SqlConnection Connection, MethodInfo Method, Object[] Values, CommandType SQLCommandType, String SQLCommandText) at CATALooK.StoreAdminInfo.CAT_GetSettings(Int32 PortalID) at CATALooK.StoreAdminInfo.GetStoreSettings(Int32 PortalID, String ModuleSkin) at CATALooK.StoreAdminInfo..ctor(Int32 PortalId, String ModuleSkin) at CATALooK.DashBoard.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)
Source:
Server Name: A418

Which I had thought may indicate an error with Catalook, but I have modue exceptions such as:

ModuleId: 1441
ModuleDefId: 95
FriendlyName: x
ModuleControlSource: DesktopModules/HTML/HtmlModule.ascx
AssemblyVersion: 5.1.2
PortalID: 0
PortalName: x
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Home
RawURL: /Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: f5e2ddba-ace4-459b-a552-1986e7b18a88
InnerException: Parameter count does not match Parameter Value count.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Parameter count does not match Parameter Value count. ---> System.ArgumentException: Parameter count does not match Parameter Value count. at Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues(SqlParameter[] commandParameters, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.HTML.SqlDataProvider.GetHtmlText(Int32 moduleId) at DotNetNuke.Modules.HTML.HtmlTextController.GetHtmlText(Int32 moduleId) at DotNetNuke.Modules.Html.HtmlModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: A418

 

Does anyone have further insight into this?

Thanks

 
New Post
9/30/2009 5:31 AM
 

it looks like there is a modified stored procedure in your previous system which interferes with the upgrade process. Makre sure to use latest versions of 3rd party modules - in this case NewsArticle from ventrian.com.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/1/2009 1:38 AM
 

Hi Sebastian

What makes you say it's the NewsArticle module from Ventrian?

The only indication I could find of the news was tacuk_Forum_NewsArticleAdd but this seems to have nothing to do with Ventrian which has only had minor updates in the last month to the version I was running.

Looking over the site, it seemed the main errors where actually the TEXT/HTML module, as indicated by the module error too.

From a Google search the mentioned of Forum_NewsArticleAdd could be found:

http://dnnforums.net/Resources/Forums/tabid/53/forumid/1/postid/257/scope/posts/language/en-US/Default.aspx (25Jan07 - Maathias mentions briefly at top)

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/7/postid/18090/scope/posts/Default.aspx (7Feb06 - Crispy says this was obsolete)

as well as Google links to it in 03.00.00.SqlDataProvider.

 

 

 
New Post
10/1/2009 5:11 AM
 

I am sorry, it seems to be a Forums sproc, but the upgrade procedure tries to enumerate all sprocs to adjust permissions on it - and fails. Either this is caused by the wrong databaseOwner (if yours is other than dbo) or there seeems to be an inconsistency in your DB, you might need to investigate and try to fix.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/1/2009 8:37 AM
 

Hi Sebastian

I don't have this sproc showing at all in the database (yes, owner is 'dbo'). Could this be the cause?

If it is no longer used should it even be referenced?

I've had no upgrade problems in around 2 1/2 years and I'm not even sure where to begin to look if there might be some sort of inconsistency.

Will try to keep an eye out in the forums as I am expecting there'll be at least one other with the same prob.

Thanks

David

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 4.9.5 to 5.1.2 Error - Script & Package FileUpgrade 4.9.5 to 5.1.2 Error - Script & Package File


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