Open archanavedh opened 3 years ago
Interesting... The call stack stops short of showing any call into MagicScaler, so it's not clear what COM component the error is referring to. It's possible there's some CAS restrictions in place in SSIS that prevent unverifiable code, which would preclude running MagicScaler if so.
Interesting... The call stack stops short of showing any call into MagicScaler, so it's not clear what COM component the error is referring to. It's possible there's some CAS restrictions in place in SSIS that prevent unverifiable code, which would preclude running MagicScaler if so.
If I run the package removing this line of code MagicImageProcessor.ProcessImage(msImage, msResize, settings); it gets executed successfully. The issue is with this method MagicImageProcessor.ProcessImage(msImage, msResize, settings);
Right, I have no reason to doubt the call to ProcessImage
is failing. However, there is no indication whether the error is inside that method or whether SSIS has failed to load the type or invoke the call in the first place.
Your next troubleshooting step will need to be to get better error information from the SSIS host to determine where the failure is occurring.
We are using SQL Server 2012 and Windows Server 2008 R2 and I am not sure how to get better error information from SSIS
Hi,
I am getting the below error while trying to execute the below code in script component in SSIS Package on server while it runs good on visual studio if execute manually.
Error: Resize the Image:Error: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e) at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
Code in Script component: In the below i am trying to resize the image whose length is greater than 400k to less than 400k
region Namespaces
using System; using System.Data; using Microsoft.SqlServer.Dts.Pipeline.Wrapper; using Microsoft.SqlServer.Dts.Runtime.Wrapper; using PhotoSauce.MagicScaler; using System.IO; using System.Text;
endregion
///
/// This is the class to which to add your code. Do not change the name, attributes, or parent
/// of this class.
///
[Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
public class ScriptMain : UserComponent
{
region Help: Using Integration Services variables and parameters
}