本文介绍了CS2001 执行部署到服务器的 SSIS 包时缺少 AssemblyAttributes.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了 SSIS 包并使用集成服务部署向导将其部署到服务器.我将通过 SQL Server 2012 手动转到 Integration Services 目录访问,然后右键单击并执行我的包.

但是,包一直失败,当我检查执行报告的消息时,我收到以下错误.

他们似乎在我有脚本组件的数据任务上失败了.

分配:错误:CS2001 - 找不到源文件C:\Windows\TEMP.NETFramework,Version=v4.0.AssemblyAttributes.cs",CSC, 0, 0

分配:错误:无法编译包中包含的脚本.在 SSIS 设计器中打开包并解决编译错误.

解决方案

这个答案是 UberDoodles 答案的更详细版本.

在 Windows 资源管理器中.

  1. 导航到 C:\Windows\Temp\
  2. 右键单击文件夹并选择properties
  3. 转到标签Security,选择Advanced
  4. 在默认选项卡 Permissions 上,选择 Change Permissions
  5. 对于相关的权限条目,选择edit.
  6. 默认情况下,我为遍历文件夹/执行文件创建文件/写入数据创建文件夹/附加数据选中了允许">.
  7. 还要为列出文件夹/读取数据取得所有权勾选允许".
  8. 按确定,窗口关闭
  9. 按应用并确认您需要的任何内容.

此外,登录用户已经拥有完全控制权,但是当我为用户"条目更改此设置时,它对我有用.

(基于 微软文件/文件夹权限)..>

I created SSIS packages and used the Integration Services Deployment Wizard to deploy it out to the server. I'm manually going to the Integration Services Catalog access through SQL Server 2012 and right-clicking and executing my package.

However, the package keeps failing and I'm getting the following errors when I check the execution report's messages.

They appear to be failing on data tasks where I have script components.

解决方案

This answer is a more detailed version of UberDoodles answer.

In Windows Explorer.

  1. Navigate to C:\Windows\Temp\
  2. Right click the folder and select properties
  3. Go to tab Security, choose Advanced
  4. On the default tab Permissions, choose Change Permissions
  5. For the relevant Permission entry, choose edit.
  6. By default, I had 'allow' checked for Traverse folder / execute file, Create files / write data and Create folders / append data.
  7. Also check 'allow' for List folder / read data and Take ownership.
  8. Press OK, the window closes
  9. Press Apply and confirm anything you need.

Additionally, the logged in user had already Full control, but when I changed this for the entry 'Users', it worked for me.

(based on microsoft file/folder permissions).

这篇关于CS2001 执行部署到服务器的 SSIS 包时缺少 AssemblyAttributes.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 07:57