Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

using XSLT WITH SCRIPT in XML task in SSIS project

$
0
0

hello everyone:

There is an problems while using XML task in SSIS. The steps I use are as following:

  1.  I created an XML task in a package;
  2.  Fill the "input": OperationType: XSLT, Source Type: file connection(the existing XSLT file contains script elements)...
  3.  "output" SaveOperationResult: false. Second Operand: fileconnection....

the task setting is quite simple, here is my xlst file like:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:JS="JSCode">
  <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration="no" version="1.0" standalone="yes" />
<msxsl:script language="JavaScript" implements-prefix="JS">
<![CDATA[
   function ReplaceHTMLValues(htmlVal)
   {
      return htmlVal.replace(/"/g,"&quot;");
   }
]]>
</msxsl:script>

however, I got error message:

SQL Server 2008, VS2008:

 [XML Task] Error: An error occurred with the following error message: "Could not load file or assembly 'en9eam6s, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)".

SQL SERVER 2012, VS 2010:

 [XML Task] Error: An error occurred with the following error message: "Execution of scripts was prohibited. Use the XsltSettings.EnableScript property to enable it"

Additionally, if I remove all the script elements(declaration and call) out of XSLT, the task runs successfully.

So can SSIS XML Task using XSLT WITH SCRIPT. Please help and give advice.

thank you


similar questions here:

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/93b569d0-cef3-45ed-855f-5a54a8afb74b/ssis-xmltaskxslt-could-not-load-file-or-assembly-randomid-failed-to-grant-permission-to



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>