我有一个烦人的问题,它说项目和程序包具有不同的保护级别。事实并非如此,它们都设置为“EncryptSensitiveWithUserKey”相同。
我尝试了这个Protection level changed mid project - now project won't build和其他一些解决方案,但是没有用。
每当我要构建或重建时,它都会说:
Error 1 Project consistency check failed. The following inconsistencies were detected: Persoon.dtsx has a different ProtectionLevel than the project. CountableUren.dtsx has a different ProtectionLevel than the project. Projecten.dtsx has a different ProtectionLevel than the project. Master_LAB_DSA.dtsx has a different ProtectionLevel than the project. DimProject.dtsx has a different ProtectionLevel than the project. DimPersoon.dtsx has a different ProtectionLevel than the project. DimLookupSources.dtsx has a different ProtectionLevel than the project. InitializeDim.dtsx has a different ProtectionLevel than the project. Master_LAB_ETL.dtsx has a different ProtectionLevel than the project. Master_LAB_DWH.dtsx has a different ProtectionLevel than the project. 0 0
设置为“EncryptSensitiveWithUserKey”时,在“查看代码”中没有“DTS:ProtectionLevel =“X”“。并在项目的属性中将其设置为“EncryptSensitiveWithUserKey”。我还尝试将所有内容都设置为“DontSaveSensitive”,这也给了我同样的错误。
如何解决这个问题?
最佳答案
解决方案是在billinkc的帮助下以及上面的解决方案中找到的:Protection level changed mid project - now project won't build
问题是ProtectionLevel的保护等级不同。有些是1,有些是2,而在属性菜单中,它们都是相同的。
因此,这些步骤已解决:
屏幕上,然后选择属性
与属性。将“安全性”下的“保护级别”更改为
属性中的DontSaveSensitive(对所有软件包都执行此操作)
.dtproj扩展名。类型为 Integration Services的一个
项目文件而不是类型为Visual Studio的项目文件
项目用户选项文件。
您还可以使用Visual Studio和其他文本编辑器将其打开。
EncryptSensitiveWithUserKey到DontSaveSensitive。
此数字后面的任何数字都为0零。搜索整个文件,在那里
如果您的软件包多于一个,则应大于一个。
在解决方案资源管理器中单击项目名称,然后单击生成。
现在一切正常。
关于ssis - 项目一致性检查失败。与项目的保护级别不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30055796/