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...Using Modules a...Using Modules a...Error installing moduleError installing module
Previous
 
Next
New Post
9/22/2010 12:04 AM
 
Hi - I'm new to DNN.  I have developed my first module on a local install of DNN and it works fine.  I'm now trying to load it onto the clients DNN install and I'm getting the following error...

Error loading files from temporary folder - see below
StartJob Starting Installation
Info Starting Installation - Products
Info Starting Installation - Script
Info Begin Sql execution
Info Creating backup of previous version - Products.SqlDataProvider
Info Created - Products.SqlDataProvider
Info Executing Products.SqlDataProvider
Info Start Sql execution: Products.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Incorrect syntax near '@CompatibleVersions'. An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alias to a valid name. An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alias to a valid name. An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alias to a valid name. 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 DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /************************************************************/ /***** RegisterModule *****/ /***** *****/ /***** Use this script to register a module in the *****/ /***** database using Query Analyzer *****/ /***** *****/ /***** *****/ /***** Note: To manually execute this script you must *****/ /***** perform a search and replace operation *****/ /***** for dbo. and dnna_ *****/ /***** *****/ /************************************************************/ exec dbo.[dnna_AddDesktopModule] @ModuleName = N'Products', @FolderName = N'Products', @FriendlyName = N'Products', @Description = N'A Products module', @Version = N'01.00.00', @IsPremium = 0, @IsAdmin = 0, @BusinessController = N'SipidCode.Modules.Products.ProductsController', @SupportedFeatures = 3 @CompatibleVersions = "" @Dependencies = "" @Permissions = "" declare @DesktopModuleId int select @DesktopModuleId = DesktopModuleId from dbo.[dnna_DesktopModules] where ModuleName = 'Products' exec dbo.[dnna_AddModuleDefinition] @DesktopModuleId, @FriendlyName = N'Products', @DefaultCacheTime = 0 declare @ModuleDefID int select @ModuleDefID = ModuleDefID from dbo.[dnna_ModuleDefinitions] where FriendlyName = 'Products' exec dbo.[dnna_AddModuleControl] @ModuleDefID, @ControlKey = NULL, @ControlTitle = NULL, @ControlSrc = N'DesktopModules/Products/ViewProducts.ascx', @IconFile = NULL, @ControlType = 0, @ViewOrder = NULL, @HelpUrl = NULL exec dbo.[dnna_AddModuleControl] @ModuleDefID, @ControlKey = 'Edit', @ControlTitle = 'Edit Content', @ControlSrc = N'DesktopModules/Products/EditProducts.ascx', @IconFile = NULL, @ControlType = 1, @ViewOrder = NULL, @HelpUrl = NULL exec dbo.[dnna_AddModuleControl] @ModuleDefID, @ControlKey = 'Settings', @ControlTitle = 'Products Settings', @ControlSrc = N'DesktopModules/Products/Settings.ascx', @IconFile = NULL, @ControlType = 1, @ViewOrder = NULL, @HelpUrl = NULL
Info End Sql execution: Products.SqlDataProvider file
Info Finished Sql execution
Failure Installation Failed - Script
Info Installation Failed - Products
Info Deleted temporary install folder
EndJob Installation Failed

Here is the SQL that is trying to run on my install...

exec {databaseOwner}[{objectQualifier}AddDesktopModule]

@ModuleName = N'Products',

@FolderName = N'Products',

@FriendlyName = N'Products',

@Description = N'A Products module',

@Version = N'01.00.00',

@IsPremium = 0,

@IsAdmin = 0,

@BusinessController = N'SipidCode.Modules.Products.ProductsController',

@SupportedFeatures = 3

@CompatibleVersions = ""

@Dependencies = ""

@Permissions = ""

declare @DesktopModuleId int

select @DesktopModuleId = DesktopModuleId

from {databaseOwner}[{objectQualifier}DesktopModules]

where ModuleName = 'Products'

exec {databaseOwner}[{objectQualifier}AddModuleDefinition] @DesktopModuleId,

@FriendlyName = N'Products',

@DefaultCacheTime = 0

declare @ModuleDefID int

select @ModuleDefID = ModuleDefID

from {databaseOwner}[{objectQualifier}ModuleDefinitions]

where FriendlyName = 'Products'

exec {databaseOwner}[{objectQualifier}AddModuleControl]

@ModuleDefID,

@ControlKey = NULL,

@ControlTitle = NULL,

@ControlSrc = N'DesktopModules/Products/ViewProducts.ascx',

@IconFile = NULL,

@ControlType = 0,

@ViewOrder = NULL,

@HelpUrl = NULL

exec {databaseOwner}[{objectQualifier}AddModuleControl]

@ModuleDefID,

@ControlKey = 'Edit',

@ControlTitle = 'Edit Content',

@ControlSrc = N'DesktopModules/Products/EditProducts.ascx',

@IconFile = NULL,

@ControlType = 1,

@ViewOrder = NULL,

@HelpUrl = NULL

exec {databaseOwner}[{objectQualifier}AddModuleControl]

@ModuleDefID,

@ControlKey = 'Settings',

@ControlTitle = 'Products Settings',

@ControlSrc = N'DesktopModules/Products/Settings.ascx',

@IconFile = NULL,

@ControlType = 1,

@ViewOrder = NULL,

@HelpUrl = NULL


It's failing the first SP [AddDesktopModule].  I know that cause I've tried to manually run it as well and I get the same error. 

Any help would be greatly appreciated as I'm a little lost (or a lot lost :-) )
 
New Post
9/22/2010 4:39 AM
 
which DNN version is the target system running, which did you use to compile your package?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/22/2010 7:36 AM
 
I compiled using version... 5.5.0.653 --> from the dotnetnuke.dll
The version I'm deploying to is... 5.4.4(2) --> from the host settings menu item

Do the versions have to be the same????  That would be very limiting.  Or are there special code mods that I have to make to ensure backward compatability?

Thanks!
Ryan.
 
New Post
9/22/2010 7:37 AM
 
Although I prefer to properly package an extension to allow easy installation on another DotNetNuke instance and so do not particularly recommend the use of this script, it appears that your script is missing commas at the end of the following lines:

@SupportedFeatures = 3

@CompatibleVersions = ""

@Dependencies = ""



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
9/22/2010 7:46 AM
 
Regarding version compatibility: You must compile against the lowest DotNetNuke version number that you wish to install into. In your case, a extension compiled against DNN 5.05.00 will not install into a DNN 05.04.04 instance. You would need to compile the module against 05.04.04 or a lower version.

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
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Error installing moduleError installing module


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