SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

masterdineen
Aged Yak Warrior

United Kingdom
548 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

masterdineen
Aged Yak Warrior

United Kingdom
548 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  
 New 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.2 seconds. Powered By: Snitz Forums 2000