The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 C# programming
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kreta

Slovenia
9 Posts

Posted - 05/26/2015 :  4:49:43 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.8.6
Operating System: Windows 7

I'm trying to run the sample: SendNumericDataToWks
and I got the following error.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast COM object of type 'Origin.ApplicationSIClass' to interface type 'Origin.IOApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{91186B48-39F5-11D3-9367-00C04F79EAFE}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Origin.ApplicationSIClass.Execute(String script, Object name)
at SendNumericDataToWks.Form1.ExecuteOriginCMD(String strCmd)
at SendNumericDataToWks.Form1.ShowOriginWindow()
at SendNumericDataToWks.Form1.Connect()
at SendNumericDataToWks.Form1.buttonConnect_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
SendNumericDataToWks
Assembly Version: 1.0.2721.24895
Win32 Version: 1.0.2721.24895
CodeBase: file:///C:/Program%20Files/OriginLab/Origin8/Samples/Automation%20Server/VC.NET/SendNumericDataToWks/SendNumericDataToWks.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interop.Origin
Assembly Version: 7.5.0.0
Win32 Version: 7.5.0.0
CodeBase: file:///C:/Program%20Files/OriginLab/Origin8/Samples/Automation%20Server/VC.NET/SendNumericDataToWks/Interop.Origin.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.






Castiel

268 Posts

Posted - 05/27/2015 :  11:31:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Looks like you have Origin 7.5 installed? Try run Origin 8.6 as Administrator first.

c   ȥ  fuc  c    Τ  c/     
 cʥ       ' ̩   /  թf
                            `    
                              
Go to Top of Page

kreta

Slovenia
9 Posts

Posted - 05/27/2015 :  11:40:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry, Now I have origin 8.1
OS: windows 7

I get the same error when I run the sample application


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast COM object of type 'Origin.ApplicationSIClass' to interface type 'Origin.IOApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{91186B48-39F5-11D3-9367-00C04F79EAFE}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Origin.ApplicationSIClass.set_Visible(MAINWND_VISIBLE )
at SendNumericDataToWks.Form1.Connect()
at SendNumericDataToWks.Form1.buttonConnect_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
SendNumericDataToWks
Assembly Version: 1.0.3686.17450
Win32 Version: 1.0.3686.17450
CodeBase: file:///D:/Instalations/OriginLab/Origin81/Samples/Automation%20Server/CSharp/SendNumericDataToWks/SendNumericDataToWks.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interop.Origin
Assembly Version: 8.0.0.0
Win32 Version: 8.0.0.0
CodeBase: file:///D:/Instalations/OriginLab/Origin81/Samples/Automation%20Server/CSharp/SendNumericDataToWks/Interop.Origin.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Go to Top of Page

Castiel

268 Posts

Posted - 05/27/2015 :  1:19:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Uninstall the old Origin(s). Clean up Registry. Install the latest release. Run as Administrator at least once. And try again. You may event build it and try to debug...

BTW, did you ever install any other version(s)?

c   ȥ  fuc  c    Τ  c/     
 cʥ       ' ̩   /  թf
                            `    
                              
Go to Top of Page

kreta

Slovenia
9 Posts

Posted - 05/27/2015 :  1:31:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Castiel,

No I only have those two licensed versions on two different pcs.
It worked just after running as admin without doing anything else.
Go to Top of Page

Castiel

268 Posts

Posted - 05/27/2015 :  6:54:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by kreta

Thanks Castiel,

No I only have those two licensed versions on two different pcs.
It worked just after running as admin without doing anything else.



So, you just ignored my previous reply - the very first one, and kept saying there was still a problem? Kidding me!

�c��   �ȥ�  �f�u�c  �c��    �Τ�  �c/     ����
 �c�ʥ� ����  �� ��   ����' �̩���   /��  �թ��f
   ��             ��          ����  �` ��   ��
                              ��

Edited by - Castiel on 05/27/2015 7:15:52 PM
Go to Top of Page

kreta

Slovenia
9 Posts

Posted - 05/27/2015 :  9:01:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Oh, Sorry was in a hurry and just read that part of installing 8.6.

Really thanks, if you have any idea about connecting /importing database please tell me, because I also have a problem with it. I already posted it to the import files forum.

Thanks
Go to Top of Page

long123

China
9 Posts

Posted - 06/24/2015 :  02:45:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I get the same error when I run the sample application

sbvdxfnbghm
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000