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 ...GetModuleByDefinition doesnGetModuleByDefinition doesn't exist after fresh install 3.2.2. and 4.0.2
Previous
 
Next
New Post
2/21/2006 3:51 PM
 

Windows Server Enterprise 2003 with SP1, ASP.NET 2.0, SQL Server 2005, IIS 6.0

1. I created SQL 2005 databases (not SQL Express) with proper uid and pwd in web.config.

2. I created virtual directory pointing at unzipped install folder with all permissions possible

3. Browse to http://localhost/DNN3. Install completed successfully.

4. Login as host, go to Module Definitions, at bottom of the page, I see this error message:

Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.InvalidOperationException: The stored procedure 'dbo.GetModuleByDefinition' 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

I tried version 3.2.2 and 4.0.2, the same error message showed up.

I check both of my databases, there are stored procedures called:

GetModuleDefinition, GetModuleDefinitionByName, GetModuleDefinitions

But NO GetModuleByDefinition exists.

 

What's wrong?

 
New Post
3/5/2006 4:12 AM
 

I get the same error. Yesterday i installed 4.0.2 on my Windows 2003 box, like you did, except i use SQL server 2000.
Could it have something to do with the database collation? The collation on my DotNetNuke database is SQL_Latin1_General_CP1_CI_AS.

I get missing stored procedure errors here as well:

Host - Host settings (GetModuleByDefinition missing)

Host - Vendors (GetVendors missing)

Host - languages (GetModuleByDefinition missing)

Host - skins (GetModuleByDefinition missing)

Admin - Site settings (GetModuleByDefinition missing)

Admin - Vendors (GetVendors missing)

Admin - languages (GetModuleByDefinition missing)

Admin - skins (GetModuleByDefinition missing)

All of the common task links gives a GetModuleByDefinition missing error.

Under Admin - log viewer i get another error:

 

Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve collation conflict for equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve collation conflict for equal to operation. 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.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.GetLog(Int32 PageSize, Int32 PageIndex) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Services.Log.EventLog.LogController.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Modules.Admin.Log.LogViewer.BindData() at DotNetNuke.Modules.Admin.Log.LogViewer.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
 
New Post
4/7/2006 4:42 AM
 


Unfortunatly, I get the same error.

The first problem was the install itself. After reading a hint in this forum, I changed the Case-Sensitive database (default on this SQL Server 2005 is "Latin1_General_CS_AS") into an Case-InSensitive one ("SQL_Latin1_General_CP1_CI_AS"). After this change the install run successful for both Versions 3.2.2 and 4.0.2.

But now, I have the same problem as you described: 'dbo.dnn322_GetModuleByDefinition' for the 3.2.2 installation and 'dbo.dnn402_GetModuleByDefinition' for the 4.0.2 installation. (I definied the "objectQualifier" in the web.config, but they run in 2 separated databases). This happens when I am trying to insert a module into a page.

Then I tried to view the log, but instead of the log this errormessage appears:

Error: Log Viewer is currently unavailable.

DotNetNuke.Services.Exceptions.ModuleLoadException: Ein Sortierungskonflikt zwischen "Latin1_General_CS_AS" und "SQL_Latin1_General_CP1_CI_AS" im equal to-Vorgang kann nicht aufgelöst werden. ---> System.Data.SqlClient.SqlException: Ein Sortierungskonflikt zwischen "Latin1_General_CS_AS" und "SQL_Latin1_General_CP1_CI_AS" im equal to-Vorgang kann nicht aufgelöst werden. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.GetLog(Int32 PageSize, Int32 PageIndex) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Services.Log.EventLog.LogController.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Modules.Admin.Log.LogViewer.BindData() at DotNetNuke.Modules.Admin.Log.LogViewer.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

Aha ... something is still not working well here! But ... how to solve this? 


The Websites run on a Windows 2003 Server w
ith IIS 6 and SP1 & SQL Server 2005.


Does anybody have some suggestions ... without reinstalling the whole SQL-Server-2005?


TIA!

Mark

 
New Post
5/6/2006 6:24 AM
 
Hi, I get the same error:

Error: Host Settings is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.GetModuleByDefinition' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.GetModuleByDefinition' 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.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.GetModuleByDefinition(Int32 PortalId, String FriendlyName) at DotNetNuke.Entities.Modules.ModuleController.GetModuleByDefinition(Int32 PortalId, String FriendlyName) at DotNetNuke.Modules.Admin.Host.HostSettingsModule.BindData() at DotNetNuke.Modules.Admin.Host.HostSettingsModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

This error occours at nearly everywhere in the host account...
I'm using Windows Server 2003 and SQL Server 2005... My collation is SQL_Latin1_General_CP1_CI_AS.
The Procedure
GetModuleByDefinition doesn't exist in the DB.

But there where no errors during the installation (which i ran very often...
)


What can I do?

 
New Post
5/20/2006 5:35 PM
 
I had this same problem after a fresh install of 4.0.2.  While trying to locate the installation file that contains the SQL script for creating the procedure I came across a file named DotNetNuke.Schema.txt in \Providers\DataProviders\SqlDataProvider.  This file contained information on stored procedures that could not be created during the install process.  In all cases, the procedures could not be created due to typos in the SQL script.  This file contained both the error descriptions and the SQL script for each of the procedures that could not be created.  I fixed the errors and ran the scripts for each procedure in Query Analyzer and now everything appears to be working fine.  There are a number of other files in this directory that appear to contain additional installation errors related to database objects.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...GetModuleByDefinition doesnGetModuleByDefinition doesn't exist after fresh install 3.2.2. and 4.0.2


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