Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot run the SSIS package in 64-bit mode in SQL Server 2008 R2 or SQL Server 2008


View products that this article applies to.

Symptoms

Assume that you create a Microsoft SQL Server Integration Services (SSIS) package in Microsoft SQL Server 2008 R2 or Microsoft SQL Server 2008. When you try run the package in 64-bit mode, you find that you cannot run the package. Additionally, you may receive one or more of the following error messages, depending on the tasks or components in the package:
  • The package contains an ADO.Net source:

    Error: <Time Stamp>
    Code: 0xC0047062
    Source: Data Flow Task ADO NET Source [1]
    Description: System.InvalidCastException: Specified cast is not valid.
    at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.GetSqlCommand()
    at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.Validate()
    at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper100 wrapper)
    End Error
  • The package contains an XML source:

    [XML Source [1]] Error: The "component "XML Source" (1)" is missing the required property "AccessMode". The object is required to have the specified custom property.
    [SSIS.Pipeline] Error: "component "XML Source" (1)" failed validation and returned validation status "VS_ISCORRUPT".
  • The package contains a sending mail task:

    Error: <Time Stamp>
    Code: 0xC0014005
    Source:
    Description: The connection type "SMTP" specified for connection manager "SMTP Connection Manager" is not recognized as a valid connection manager type. This error is returned when an attempt is made to create a connection manager for an unknown connection type. Check the spelling in the connection type name.
    End Error
Note When you run the package in 32-bit mode, the package runs successfully.

↑ Back to the top


Cause

The issue occurs because the native 64-bit image of the specific Microsoft .NET Framework assembly that is used by the SSIS task or component becomes corrupted. For example:

  • For an ADO.NET source, the .NET Framework assembly is Microsoft.SqlServer.ADONETSrc.dll. Therefore, the native image Microsoft.SqlServer.ADONETSrc.ni.dll becomes corrupted.
  • For an XML source, the .NET Framework assembly is Microsoft.SqlServer.XMLSrc.dll. Therefore, the native image Microsoft.SqlServer.XMLSrc.ni.dll becomes corrupted.
  • For an SMTP connection, the .NET Framework assembly is Microsoft.SqlServer.SendMailTask.dll. Therefore, the native image Microsoft.SqlServer.SendMailTask.ni.dll becomes corrupted.

↑ Back to the top


Resolution

To resolve this issue, use one of the following methods:

  • Method 1

    Uninstall the native assembly, and then reinstall the native assembly by using ngen command.

    To uninstall and reinstall the Microsoft.SqlServer.ADONETSrc.dll native assembly image, follow these steps:
    1. Uninstall the native assembly image by using a command that resembles the following:
      ngen uninstall "Microsoft.SqlServer.ADONETSrc, Version=10.0.0.0"
    2. Display native assembly image information to confirm that the native image does not exist:
      ngen display "Microsoft.SqlServer.ADONETSrc, Version=10.0.0.0"
    3. Install the native assembly image by using a command that resembles the following:
      ngen install "Microsoft.SqlServer.ADONETSrc, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
    4. Display native image information to confirm that the native image is installed:
      ngen display "Microsoft.SqlServer.ADONETSrc, Version=10.0.0.0"
  • Method 2
    Reinstall SQL Server Integration Services on the computer on which the error occurs.

↑ Back to the top


More Information

For more information about the .NET Framework assembly native image, go to the following Microsoft Developer Network (MSDN) blog website:

For more information about the Native Image Generator (Ngen.exe), go to the following MSDN website:Note Ngen.exe is part of the Microsoft Visual Studio command tools. You have to select the correct platform. For example, you have to select a 64-bit or 32-bit platform. On computers on which you do not have Visual Studio installed, you can copy the appropriate Ngen.exe file from a development computer on which you have Visual Studio installed. Or, you can install Ngen.exe by using Windows SDK.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbsurveynew, kbtshoot, kbexpertiseadvanced, kb

↑ Back to the top

Article Info
Article ID : 2853715
Revision : 1
Created on : 1/7/2017
Published on : 6/6/2013
Exists online : False
Views : 781