Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
237 views
in Technique[技术] by (71.8m points)

vsta - How to stop SSIS from "Phoning Home"

Working on maintaining a substantial set of SQL Server Integration Services 2008 R2 packages, I've run into an oddball problem.

These packages make frequent use of Script Tasks, each containing C# code used to integrate with some internal Web Services.

Editing one of those scripts involves these steps:

  • Select the Script Task in the designer
  • Right click, select Edit to bring up the Script Task Editor dialog
  • Press the Edit Script button
  • Wait (just over) 15 seconds
  • Edit the script
  • Close the script editor
  • Press the OK button on the Script Task Editor dialog
  • Wait (just over) 30 seconds
  • Dialog disappears

It's the waiting, highlighted in bold, that's getting me frustrated.

There's no CPU activity, no disk IO, no network traffic during those times - the editor appears to be just frozen.

BTW - those timings are reliable - I've used a stopwatch to measure them over the past couple of days and they vary by less than my accuracy in hitting the start/stop button on the stopwatch.

The only clue I've been able to find is that netstat shows an extra network connection during the pause:

C:>netstat -o -b

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    fsis-datam-dev2:3478   akamai-9.fx.net.nz:http  SYN_SENT        700
  [VSTA.exe]

My current hypothesis is that the delays are some kind of timeout as SSIS (or perhaps the Visual Studio Tools for Applications editor) "phones home" for some reason. The machine in question doesn't have internet connectivity, so the requests are in vain.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes, your guess is correct and this is a (fairly) well-known issue. The .NET runtime contacts crl.microsoft.com to check for revoked certificates; if your machine has no internet access then the runtime waits until the connection attempt times out, which can result in SSIS packages starting very slowly, Visual Studio apparently locking up etc.

Common fixes are to allow internet access to crl.microsoft.com only, or to use the local HOSTS file to redirect the name to 127.0.0.1.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...