我的DNN模块安装时出现如下错误,我现在继续大家帮助,希望高手联系我一下,我的qq是258244397
败 SQL Execution resulted in following Exceptions:System.Data.SqlClient.SqlException: 过程或函数
'AddDesktopModule' 需要参数 '@Dependencies',但未提供该参
数。不能将值 NULL 插入列 'DesktopModuleID',表
'dotnetnuke.dbo.ModuleDefinitions';列不允许有空值。
INSERT 失败。过程或函数 'AddModuleControl' 需要参数
'@SupportsPartialRendering',但未提供该参数。过程或函数
'AddModuleControl' 需要参数 '@SupportsPartialRendering',
但未提供该参数。过程或函数 'AddModuleControl' 需要参数
'@SupportsPartialRendering',但未提供该参数。过程或函数
'AddModuleControl' 需要参数 '@SupportsPartialRendering',
但未提供该参数。过程或函数 'AddModuleControl' 需要参数
'@SupportsPartialRendering',但未提供该参数。语句已终止。
在 System.Data.SqlClient.SqlConnection.OnError
(SqlException exception, Boolean breakConnection) 在
System.Data.SqlClient.SqlInternalConnection.OnError
(SqlException exception, Boolean breakConnection) 在
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning
(TdsParserStateObject stateObj) 在
System.Data.SqlClient.TdsParser.Run(RunBehavior
runBehavior, SqlCommand cmdHandler, SqlDataReader
dataStream, BulkCopySimpleResultSet bulkCopyHandler,
TdsParserStateObject stateObj) 在
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds
(String methodName, Boolean async) 在
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery
(DbAsyncResult result, String methodName, Boolean
sendToPipe) 在
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() 在
DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String
SQL) 在 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'TabProducts', @FolderName = N'TabProducts',
@FriendlyName = N'TabProducts', @Description = N'A
TabProducts module', @Version = N'01.00.00', @IsPremium =
0, @IsAdmin = 0, @BusinessController =
N'TAB.Modules.Components.TabProductsController',
@SupportedFeatures = 3, @CompatibleVersions=N'this
TabPorduct will update.' declare @DesktopModuleId int
select @DesktopModuleId = DesktopModuleId from dbo.
[DesktopModules] where ModuleName = 'TabProducts' exec
dbo.[AddModuleDefinition] @DesktopModuleId, @FriendlyName
= N'TabProducts', @DefaultCacheTime = 0 declare
@ModuleDefID int select @ModuleDefID = ModuleDefID from
dbo.[ModuleDefinitions] where FriendlyName =
'TabProducts' exec dbo.[AddModuleControl] @ModuleDefID,
@ControlKey = NULL, @ControlTitle = NULL, @ControlSrc =
N'DesktopModules/TabProducts/ViewTabProducts.ascx',
@IconFile = NULL, @ControlType = 0, @ViewOrder = NULL,
@HelpUrl = NULL exec dbo.[AddModuleControl] @ModuleDefID,
@ControlKey = 'Edit', @ControlTitle = 'Edit Content',
@ControlSrc =
N'DesktopModules/TabProducts/EditTabProduct.ascx',
@IconFile = NULL, @ControlType = 1, @ViewOrder = NULL,
@HelpUrl = NULL exec dbo.[AddModuleControl] @ModuleDefID,
@ControlKey = 'Settings', @ControlTitle = 'TabProducts
Settings', @ControlSrc =
N'DesktopModules/TabProducts/Settings.ascx', @IconFile =
NULL, @ControlType = 1, @ViewOrder = NULL, @HelpUrl =
NULL exec dbo.[AddModuleControl] @ModuleDefID,
@ControlKey = 'EditCategory', @ControlTitle =
'EditCategory', @ControlSrc =
N'DesktopModules/TabProducts/ManageCategory.ascx',
@IconFile = NULL, @ControlType = 1, @ViewOrder = NULL,
@HelpUrl = NULL exec dbo.[AddModuleControl] @ModuleDefID,
@ControlKey = 'ProductDetails', @ControlTitle =
'ProductDetails', @ControlSrc =
N'DesktopModules/TabProducts/ProductDetails.ascx',
@IconFile = NULL, @ControlType = 1, @ViewOrder = NULL,
@HelpUrl = NULL --------------------编程问答-------------------- 调用存储过程的时候错掉了,说的很明显啊
'AddDesktopModule' 需要参数 '@Dependencies',但未提供该参 数
要去改代码的 --------------------编程问答-------------------- 改数据库脚本怎么改啊? --------------------编程问答-------------------- 我知道是数据库的问题,你知道怎么改数据库脚本吗? --------------------编程问答-------------------- 他里面有专门的数据类的
如果你用sql server
找到这个
SqlDataProvider,其他的可以类似的找到
然后取找里面的sql代码文件,一般是没有后缀名的可以用txt打开的,你在那里面改就可以了
然后还有个SqlDataProvider.cs,那里面的代码可能也需要修改
补充:.NET技术 , C#