Page 1 of 2

Installed but getting a C+ scripting error [SOLVED]

Posted: Sun Oct 09, 2016 7:15 pm
by DDC
HI all,

I installed OC4BAv4 a couple of hours ago but get a scripting error when I click on "Config". Any ideas? I went through the "read me" file to make sure i followed the steps correctly but no success.
Any ideas?


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

************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at OC4BAv4.Config.ReadSioc()
at OC4BAv4.Config..ctor()
at OC4BAv4.OC4BAv4.button1_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: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
OC4BAv4
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/SIOC/OC4BAv4.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.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.

Re: Installed but getting a C+ scripting error

Posted: Mon Oct 10, 2016 7:58 am
by mvr1918
Are you running OC4BAV4 as Admin?

Re: Installed but getting a C+ scripting error

Posted: Tue Oct 11, 2016 3:15 am
by DDC
Thanks, Yes I installed and run as administrator.

I did follow the instructions in the PDF installation manual provided with one exception. OC4BAv4 is installed at C:\Program Files (x86)\SIOC and P3D is installed at C:\Program Files (x86)\Lockheed Martin. I know these are not the recommended paths but its not possible for me to move P3D to the C:/ directory as the LOE would be enormous.

Could permissions be a cause of the error?

Re: Installed but getting a C+ scripting error

Posted: Tue Oct 11, 2016 3:41 am
by DDC
Also it seems to be similar to the user who reported "OC4BAv4 crashes" except the difference is his was after he clicked on "config". Mine "crash" is when I click on config. Any ideas, maybe the two have the same root cause? Thanks!

Re: Installed but getting a C+ scripting error

Posted: Tue Oct 11, 2016 2:47 pm
by mvr1918
Make sure you has all persmissions for the SIOC folder files. I believe your problem is caused by the security. That is the reason I recommend to install outside of the Program Files(x86) folder.

Check that your folder/files are not marked as READ ONLY and that you have all permissions

Do you have your P3D.exe in Lockheed Martin folder or under Lockheed Martin\P3D folder?

IF it is the first your SIOC folder location is correct, if it is the latter then copy your SIOC folder to Lockheed Martin folder to be able to run OC4BAv4 from the P3D AddOn menu. Otherwise just start OC4BAV4 from the SIOC folder.

Re: Installed but getting a C+ scripting error

Posted: Wed Oct 12, 2016 1:09 pm
by DDC
Thank you. I will try that tonight.

Re: Installed but getting a C+ scripting error

Posted: Sat Oct 15, 2016 11:45 pm
by DDC
Hi,
I have tried many things but I still get the error message when clicking on "Config". I moves P3D to C:/. I installed OC4BAv4 in C:/. I checked the permissions to make sure my account had full control but I still get the same error.

Can this be Windows 10 related? I have spent 4 hours checking the permissions and making sure I have the right .Net files installed with no success.
Any ideas?

Re: Installed but getting a C+ scripting error

Posted: Sun Oct 16, 2016 8:55 am
by mvr1918
I am running Windows 10 and it is OK.

I can connect to your PC via TeamViewer and have a look at your setup.

Send an email to roarkrsp@gmail.com

with ID and PSW

Re: Installed but getting a C+ scripting error

Posted: Sun Oct 16, 2016 3:08 pm
by DDC
Thanks a lot. I will send an email now.

Re: Installed but getting a C+ scripting error

Posted: Sun Oct 16, 2016 4:29 pm
by DDC
Thanks a lot for your help this afternoon.

You left my computer with some instructions but I lost the chat channel so couldn't copy. I think you said:

1. copy the 737 file (sorry but can you confirm which file so I am sure I keep it)?
2. Uninstall both SIOC and OC4BAv4
3. Reinstall both files.

Thanks a lot for your help. Your service is much appreciated.