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 ...Creating new project from .vsi template having old stored procedures inside of .vsi packageCreating new project from .vsi template having old stored procedures inside of .vsi package
Previous
 
Next
New Post
3/24/2008 9:32 PM
 

When I add a new module by adding a project from VS 2005 menu: File >> Add >> New Project >> Selecting Visual Basic >> Web >> My Templates >> DotNetNuke Compiled Module .... using the modulename: ITARedirect .... then the file generated with namne: ITARedirect.SqlDataProvider is having some old stored procedure inside of it ... because when you later try to install a built module the installation process in dotnetnuke are complaining about:

 

StartJob Start Sql execution: ITARedirect.SqlDataProvider file Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException:

 

Procedure or function 'AddDesktopModule' expects parameter '@CompatibleVersions', which was not supplied. Cannot insert the value NULL into column 'DesktopModuleID', table 'C:\INETPUB\DOTNETNUKE_04_08_01_INSTALL\APP_DATA\DATABASE.MDF.dbo.ModuleDefinitions'; column does not allow nulls. INSERT fails.

 

Procedure or function 'AddModuleControl' expects parameter '@SupportsPartialRendering', which was not supplied. Procedure or function 'AddModuleControl' expects parameter '@SupportsPartialRendering', which was not supplied.

 

Procedure or function 'AddModuleControl' expects parameter '@SupportsPartialRendering', which was not supplied. The statement has been terminated. 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 *****/ /***** *****/ /************************************************************/ exec dbo.[AddDesktopModule] @ModuleName = N'ITARedirect', @FolderName = N'ITARedirect', @FriendlyName = N'ITARedirect', @Description = N'A ITARedirect module', @Version = N'01.00.00', @IsPremium = 0, @IsAdmin = 0, @BusinessController = N'ITAnsvar.Modules.ITARedirect.ITARedirectController', @SupportedFeatures = 3 declare @DesktopModuleId int select @DesktopModuleId = DesktopModuleId from dbo.[DesktopModules] where ModuleName = 'ITARedirect' exec dbo.[AddModuleDefinition] @DesktopModuleId, @FriendlyName = N'ITARedirect', @DefaultCacheTime = 0 declare @ModuleDefID int select @ModuleDefID = ModuleDefID from dbo.[ModuleDefinitions] where FriendlyName = 'ITARedirect' exec dbo.[AddModuleControl] @ModuleDefID, @ControlKey = NULL, @ControlTitle = NULL, @ControlSrc = N'DesktopModules/ITARedirect/ViewITARedirect.ascx', @IconFile = NULL, @ControlType = 0, @ViewOrder = NULL, @HelpUrl = NULL exec dbo.[AddModuleControl] @ModuleDefID, @ControlKey = 'Edit', @ControlTitle = 'Edit Content', @ControlSrc = N'DesktopModules/ITARedirect/EditITARedirect.ascx', @IconFile = NULL, @ControlType = 1, @ViewOrder = NULL, @HelpUrl = NULL exec dbo.[AddModuleControl] @ModuleDefID, @ControlKey = 'Settings', @ControlTitle = 'ITARedirect Settings', @ControlSrc = N'DesktopModules/ITARedirect/Settings.ascx', @IconFile = NULL, @ControlType = 1, @ViewOrder = NULL, @HelpUrl = NULL EndJob End Sql execution: ITARedirect.SqlDataProvider file

 

Is there a fix for this? ... can someone provide the correct stored procedure that should be inside this module ?

/Johan

 

 

Nätdejting
Personalrekrytering
Konferenslokaler
Solkräm
Kassasystem
Rekrytering

 

 
New Post
3/24/2008 11:14 PM
 

Solved! See colored codelines for what was missing in the ITARedirect.SqlDataProvider file

 

 

 

 

/************************************************************/

/***** 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 {databaseOwner} and {objectQualifier} *****/

/***** *****/

/************************************************************/

exec {databaseOwner}[{objectQualifier}AddDesktopModule]

@ModuleName = N'ITARedirect',

@FolderName = N'ITARedirect',

@FriendlyName = N'ITARedirect',

@Description = N'A ITARedirect module',

@Version = N'01.00.00',

@IsPremium = 0,

@IsAdmin = 0,

@BusinessController = N'ITAnsvar.Modules.ITARedirect.ITARedirectController',

@SupportedFeatures = 3,

@CompatibleVersions = NULL,

@Dependencies = NULL,

@Permissions = NULL

declare @DesktopModuleId int

select @DesktopModuleId = DesktopModuleId

from {databaseOwner}[{objectQualifier}DesktopModules]

where ModuleName = 'ITARedirect'

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

@FriendlyName = N'ITARedirect',

@DefaultCacheTime = 0

declare @ModuleDefID int

select @ModuleDefID = ModuleDefID

from {databaseOwner}[{objectQualifier}ModuleDefinitions]

where FriendlyName = 'ITARedirect'

exec {databaseOwner}[{objectQualifier}AddModuleControl]

@ModuleDefID,

@ControlKey = NULL,

@ControlTitle = NULL,

@ControlSrc = N'DesktopModules/ITARedirect/ViewITARedirect.ascx',

@IconFile = NULL,

@ControlType = 0,

@ViewOrder = NULL,

@HelpUrl = NULL,

@SupportsPartialRendering = 0

exec {databaseOwner}[{objectQualifier}AddModuleControl]

@ModuleDefID,

@ControlKey = 'Edit',

@ControlTitle = 'Edit Content',

@ControlSrc = N'DesktopModules/ITARedirect/EditITARedirect.ascx',

@IconFile = NULL,

@ControlType = 1,

@ViewOrder = NULL,

@HelpUrl = NULL,

@SupportsPartialRendering = 0

exec {databaseOwner}[{objectQualifier}AddModuleControl]

@ModuleDefID,

@ControlKey = 'Settings',

@ControlTitle = 'ITARedirect Settings',

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

@IconFile = NULL,

@ControlType = 1,

@ViewOrder = NULL,

@HelpUrl = NULL,

@SupportsPartialRendering = 0

 

/Johan

 

 

Heminredning
Vattenskoter
Sökmotormarknadsföring
Centraldammsugare
Kontorshotell Stockholm
Kontorshotell
Ekonomisystem

 
New Post
6/9/2009 4:02 PM
 

thanks for posting the solution it helped me :)


http://blog.wasay.net
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Creating new project from .vsi template having old stored procedures inside of .vsi packageCreating new project from .vsi template having old stored procedures inside of .vsi package


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