Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 <System.AddIn.AddIn' is not defined ssis script vb
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aged Yak Warrior

United Kingdom
550 Posts

Posted - 06/04/2013 :  03:26:49  Show Profile  Reply with Quote
Hello there.

I have a vb 2010 script in ssis package

and I have the following error

<System.AddIn.AddIn' is not defined

please see top part of script

Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports System.Globalization
Imports System.IO
Imports System.Net
Imports WinSCP

<System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
<System.CLSCompliantAttribute(False)> _
Partial Public Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase

Aged Yak Warrior

United Kingdom
550 Posts

Posted - 06/04/2013 :  03:56:43  Show Profile  Reply with Quote
I have just added the .NET System.AddIn reference and the error has gone.

but when I execute I get the following.

DTS script task has encountered an exception in user code,

cannot load script for execution.

but there is not error message

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000