TOPIC: Scheduled task for .rdd files does not complete

Scheduled task for .rdd files does not complete 22 Dec 2015 02:53 #2121

  • andrea.stub
  • andrea.stub's Avatar
  • Offline
Hi all,

I have a 2008 Server that runs several .rdd files via task scheduler. On that server they run in 2003 mode.

We are retiring that server and now have a new 2012 server with the duplicate setup.

The tasks hang on OpenWith.exe, likely due to the difference in how 2012 runs ...

social.technet.microsoft.com/Forums/offi...=winserverManagement
Prior to Vista/2008 Server, all services ran in the same session as the first user who logged onto the console - this is Session 0. Well, running user apps and services in this session posed a security risk because services run at elevated privileges and can be targets for malicious code.

Enter the new and improved Task Scheduler that uses Session 0 isolation. In Vista/2008 and higher, we mitigate this security risk by isolating services in Session 0, and making it non-interactive. Only system processes and services now run in Session 0.

My last logged event before the task times out:
Task Scheduler launched action "C:\Windows\system32\OpenWith.exe" in instance "{46c81279-c181-4b22-bb22-5171e5bb2e5c}" of task "\Daily.rdd".

Does anyone know how I can get around this problem please?

Many thanks
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 30 Dec 2015 20:44 #2123

  • andrea.stub
  • andrea.stub's Avatar
  • Offline
The scheduled task is not my sticking point....yet :dry:

When Logicity is opened on the new server and an .rdd file is loaded into the Solution Builder, selecting Execute .rdd appears to do nothing.
I need to turn on some logging to investigate.

When Crystal is opened on the new server and a .rpt file is loaded, it runs just fine.

File associations are correct: rpt for Crystal, rdd for Logicity.

This suggests to me that I am missing something with my Logicity setup.

Note: the .rdd and .rpt files are located on a network share if that makes any difference.
Last Edit: 31 Dec 2015 17:26 by andrea.stub.
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 06 Jan 2016 20:06 #2125

  • andrea.stub
  • andrea.stub's Avatar
  • Offline
Did I say something wrong that no one has replied with any suggestions?

Advice on how to turn on verbose logging for logicity would be appreciated greatly.

Details:
Windows 2012 Std
Logicity 1.6.26.0
Crystal 11.5.10.1263

Problem: Logicity does not run .rdd files when Execute is selected.

Under Help there is an option for debugging: Write Debug Unload file....

Unhandled exception has occurred in your application. If you click Continue, the app will ignore this error and attempt to continue:
Object variable or With block variable not set.

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

************** Exception Text **************
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at Logicity.Common.fileIO.writeDebugUnload(Array ActiveActionList, Array ActiveParameterList, String filePath)
at Logicity_Solution_Builder.MainForm.writeDebug()
at Logicity_Solution_Builder.MainForm.menuItemHelpWriteDebug_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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.6421 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
Logicity Solution Builder
Assembly Version: 1.6.26.0
Win32 Version: 1.6.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/SaberLogic/Logicity/Logicity%20Solution%20Builder.exe
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.6419 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6421 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6427 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6428 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6424 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
Logicity.Common
Assembly Version: 1.6.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/SaberLogic/Logicity/Logicity.Common.DLL
Logicity Desktop
Assembly Version: 1.6.26.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/SaberLogic/Logicity/Logicity%20Desktop.EXE

************** 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.
Last Edit: 06 Jan 2016 20:10 by andrea.stub. Reason: adding debug message
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 06 Jan 2016 20:11 #2126

  • bellis
  • bellis's Avatar
  • Offline
>When Logicity is opened on the new server and an .rdd file is loaded into the Solution Builder, selecting Execute .rdd appears to do >nothing.

So you have an RRD that is saved with an action, and when you load it in Solution Builder it will not execute? Does it execute if you launch it from Logicity Desktop?

If not, I would reinstall as I bet it's an issue with the Crystal Runtime installed.
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 06 Jan 2016 20:19 #2127

  • andrea.stub
  • andrea.stub's Avatar
  • Offline
Thank you so much for your reply.
Your statement is correct...Logicity solution building executing an .rdd file appears to do nothing.

As per your suggestion I opened Logicity desktop and called a report (.rpt) and got a .Net framework error:

Unhandled exception has occurred in your application. If you click Continue the app will ignore this error and attempt to continue.
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKey Token=692fbea5521e1304 or one of its dependencies. The system cannot find the file specified.

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

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at Logicity_Desktop.ViewerForm..ctor(Int32 recordNumber, Array actList, Array parmList, Array setList)
at Logicity_Desktop.ProgressForm.ProgressForm_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

I then pressed Continue and a new Window titled Logicity reports it is Processing reportname.rpt
Currently running action..... the progress bar moves but it does not complete.

.Net Framework 3.5 and 4 is installed.

I will try your prior suggestion and re-install Crystal and Logicity...that is unless this updated info steers in a different direction.

Again...thank you so much for your reply, as the 'old' server just kacked two hours ago.

Andrea
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 06 Jan 2016 20:22 #2128

  • bellis
  • bellis's Avatar
  • Offline
Yep! When you reinstall make sure you reinstall the Crystal Reports runtime.

System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

That indicates that the runtime is not loaded correctly.
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 06 Jan 2016 20:58 #2129

  • andrea.stub
  • andrea.stub's Avatar
  • Offline
Thank you so much!
You are correct I am missing my runtime as can been seen when comparing add/remove programs on the old vs new servers.

On the old 2008 Server, installed is Crystal Report 2008 Runtime SP3.

My new server is 2012 Std, with the exact same versions of Logicity and Crystal.

I installed the missing runtime and Logicity now will run my .rdd file.

You are brilliant and thank you.
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 06 Jan 2016 21:05 #2130

  • andrea.stub
  • andrea.stub's Avatar
  • Offline
So after your expert advice the Logicity desktop can run a .rpt file fine and the Logicity Solution builder can run a .rdd file just fine.

My entire post started with an OpenWith.exe problem when calling Logicity rdd files via a Windows Scheduled task.

I am now back at that point lol.

Task Scheduler launched action "C:\Windows\system32\OpenWith.exe" in instance "{2f26f231-1d42-47ca-bf2a-54550c87e770}" of task "\Daily.rdd".

I am uncertain if you have run across this Windows 2012 issue, however if you have I would appreciate your advice again.

For now I will use the built in Schedule function of Logicity Solution builder as a work around.

Many thanks

Andrea
The administrator has disabled public write access.

Scheduled task for .rdd files does not complete 06 Jan 2016 21:30 #2131

  • andrea.stub
  • andrea.stub's Avatar
  • Offline
So I solved my own problem by using the built in scheduler in Logicity Solution builder.
It populated the task scheduler and all appears to be running as expected.

Bellis...you are great!
Andrea
The administrator has disabled public write access.