I have been reviewing the examples in the XML IP Phone Services SDK 4.1.1.
I tried to make a C# class from the "logo.asp" example just to have a component to convert JPG/GIF files to Cisco IP Phone (CIP) data in order to display the picture in the Cisco IP Phones. The client code of this C# class (BOCipImage.cs) is as follows:
public static void Main(String args)
BOCipImage cip = new BOCipImage(@"C:\DELL\", "Default.jpg");
I know the SDK contains a COM Server called: "cipimage.dll" which I registered successfully in my system (WinXP Pro) using the command:
The trouble? I'm getting this exception:
System.BadImageFormatException was unhandled
Message="Invalid access to memory location. (Exception from HRESULT: 0x800703E6)"
at Common.Business.BOCipImage.ConvertPicture() in BOCipImage.cs:line 139
at System.AppDomain._nExecuteAssembly(Assembly assembly, String args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String args)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Do I need to make "something extra" within Visual Studio 2005 in order to invoke properly the "cipimage.dll's" methods. I've got it correctly referenced at my VS2005 Console Project and it compiles successfullly but at runtime it failS.
What is interesting it's that trying the same JPG/GIF file with the "logo.asp" script, it works perfectly...
Any ideas? Thanks in advance.