Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用kentico cms 7中的上载文件对话框上载图像时出现DataConnection.HandleError错误_Kentico - Fatal编程技术网

使用kentico cms 7中的上载文件对话框上载图像时出现DataConnection.HandleError错误

使用kentico cms 7中的上载文件对话框上载图像时出现DataConnection.HandleError错误,kentico,Kentico,当我尝试使用upload file上载图像文件时,会显示此错误 [DataConnection.HandleError]:查询:插入CMS\U附件 ([AttachmentID]、[AttachmentName]、[AttachmentExtension], [AttachmentSize]、[AttachmentMimeType]、[AttachmentBinary], [AttachmentImageWidth],[AttachmentImageHeight], [AttachmentDoc

当我尝试使用upload file上载图像文件时,会显示此错误

[DataConnection.HandleError]:查询:插入CMS\U附件 ([AttachmentID]、[AttachmentName]、[AttachmentExtension], [AttachmentSize]、[AttachmentMimeType]、[AttachmentBinary], [AttachmentImageWidth],[AttachmentImageHeight], [AttachmentDocumentID]、[AttachmentGUID]、[AttachmentLastHistoryID], [AttachmentSiteID]、[AttachmentLastModified]、[AttachmentSunSorted], [AttachmentOrder]、[AttachmentGroupGUID]、[AttachmentFormGUID], [AttachmentShash]、[AttachmentTitle]、[AttachmentDescription], [AttachmentCustomData])值(@AttachmentID、@AttachmentName、, @AttachmentExtension、@AttachmentSize、@AttachmentMimeType、, @AttachmentBinary、@AttachmentImageWidth、@AttachmentImageHeight、, @AttachmentDocumentID、@AttachmentGUID、@AttachmentLastHistoryID、, @AttachmentSiteID、@AttachmentLastModified、@AttachmentSunSorted、, @AttachmentOrder、@AttachmentGroupGUID、@AttachmentFormGUID、, @AttachmentShash、@AttachmentTitle、@AttachmentDescription、, @附件(客户数据);选择范围_IDENTITY()为[]:已导致 异常:对象或列名丢失或为空。选择 在语句中,验证每列都有名称。对于其他声明, 查找空的别名。不支持定义为“”或[]的别名 允许。将别名更改为有效名称


它发生在每个有上传文件对话框的页面上。我不知道这个错误。有什么帮助吗?

似乎您在
CMS\u附件
表中不知何故丢失了主键。尝试检查它,并可能添加

ALTER TABLE [dbo].[CMS_Attachment] ADD  CONSTRAINT [PK_CMS_Attachment] PRIMARY KEY NONCLUSTERED 
(
    [AttachmentID] ASC
)

别忘了重新启动应用程序。

没有主键,我添加了..但仍然是相同的错误。。还有两个外键…我也加了。但还是一样的错误