2016-09-26 59 views
0

我的工作與SQL Server和SSISSSIS錯誤無法找到Window服務器「sgen.exe」

在我的包有腳本任務來調用Web服務 包在我的筆記本電腦正常運行

但是當我部署服務器組(沒有安裝Visual Studio) 時運行

Date  9/26/2016 8:16:22 PM 
Log  Job History (TestCallws) 

Step ID  1 
Server  CRM2016 
Job Name  TestCallws 
Step Name  test 
Duration  00:00:02 
Sql Severity 0 
Sql Message ID 0 
Operator Emailed  
Operator Net sent 
Operator Paged 
Retries Attempted 0 

Message 
Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility 
Version 12.0.2000.8 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved.  
Started: 8:16:22 PM 
Error: 2016-09-26 20:16:24.45  
Code: 0x00000005  
Source: Script Task Script Task  
Description: Failed to compiled scripts contained in the package. 
Open the package in SSIS Designer and resolve the compilation errors. 
End Error 

Error: 2016-09-26 20:16:24.45  
Code: 0x00000005  
Source: Script Task Script Task  
Description: MSB3086 - Task could not find "sgen.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". 
Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed, C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets, 2769, 5 
End Error 

Error: 2016-09-26 20:16:24.47  
Code: 0x00000005  
Source: Script Task Script Task  
Description: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. 
End Error 

Error: 2016-09-26 20:16:24.50  
Code: 0x00000004  
Source: Script Task  
Description: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. 
End Error 

Error: 2016-09-26 20:16:24.50  
Code: 0xC0024107  
Source: Script Task  
Description: There were errors during task validation. 
End Error DTExec: The package execution returned DTSER_FAILURE (1). 

Started: 8:16:22 PM 
Finished: 8:16:24 PM Elapsed: 1.703 seconds. 
The package execution failed. The step failed. 

任何一個可以幫我解決這個問題

我得到這個錯誤

謝謝。

回答

0

此錯誤是由於您的目標服務器上未安裝.Net SDK。您的Web任務需要生成序列化程序集。
您可以通過多種方式修復它 - 在目標服務器上安裝.Net 4.0 SDK。
備選 - 禁用生成序列化程序集選項。要做到這一點 - 打開腳本任務,去編輯腳本代碼,然後選擇項目並打開它的屬性(使用上下文菜單)。 On Build page - select 生成序列化程序集並選擇關閉。然後在離開代碼編輯器之前保存您的代碼和項目。

相關問題