Server 2016 Standard Crash

386 views
Skip to first unread message

Derek Blumenschein

unread,
Nov 8, 2016, 1:41:07 AM11/8/16
to RemoteApp Tool
First, thanks or the great tool.  Just upgraded to server 2016 and so disapointed this functionality is no longer available.  I like to have a 1 click install or users that puts a shortcut with icon in start menu and desktop

I can create rdp files with no issue, but when I try to create a msi I get the following error.  I have installed your current version as well as wix 3.10.3

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

************** Exception Text **************
System.IO.IOException: The process cannot access the file 'C:\Users\administrator.CLIFTYVIEW\AppData\Local\Temp\2\Windows Media Player.rdp' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at Microsoft.VisualBasic.FileIO.FileSystem.CopyOrMoveFile(CopyOrMove operation, String sourceFileName, String destinationFileName, Boolean overwrite, UIOptionInternal showUI, UICancelOption onUserCancel)
   at RDP2MSIlib.RDP.CreateMSI(String DestinationPath)
   at RemoteApp_Tool.RemoteAppCreateClientConnection.CreateButton_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.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/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
RemoteApp Tool
    Assembly Version: 5.3.0.0
    Win32 Version: 5.3.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RemoteApp%20Tool/RemoteApp%20Tool.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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.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.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.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.Runtime.Remoting
    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.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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.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
----------------------------------------
RemoteAppLib
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files%20(x86)/RemoteApp%20Tool/RemoteAppLib.DLL
----------------------------------------
IconLib
    Assembly Version: 0.73.0.0
    Win32 Version: 0.73.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RemoteApp%20Tool/IconLib.DLL
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
RDP2MSIlib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RemoteApp%20Tool/RDP2MSIlib.DLL
----------------------------------------
RDPFileLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RemoteApp%20Tool/RDPFileLib.DLL
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.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.





Kim Knight

unread,
Nov 8, 2016, 6:59:00 AM11/8/16
to RemoteApp Tool
Hi Derek,

Does this happen with all RemoteApps you create or just this one?

If it happens with all RemoteApps, it sounds like there is something locking the RDP file that temporarily gets created.

I would try:

1. Clear the contents of your TEMP folder.

2. Disable any antivirus software temporarily. It might be scanning the file while WiX is trying to access it.

Let us know whether this helps or not.

Matthias Bedarff

unread,
Jan 15, 2017, 5:05:42 AM1/15/17
to RemoteApp Tool
Hi Tim,

Thank you for this tool, too!

I'm expirencing the same issue while creating an MSI file. I tried this on two machines (Win 10 Pro and Win 7 Pro) with WiX 3.10.3. On both machines the creation is crashing due to a WinIO-Error on copying the RDP file. More over I clean the Temp-dir and deactivated the antivirus software.

I tried to debug this exception with Visual Studio 2015 but cannot see any details since I do not have your code. Do you provide you source code somewhere (e.g. GitHub)?

In another project I expirenced some similar issue. The solution was to sleep some ms before performing another file operation.

Is there any way how I can help you to find the bug?


Best regards,
Matthias

Indi Lotey

unread,
May 5, 2017, 2:26:27 PM5/5/17
to RemoteApp Tool
Getting the exact same error on Server 2016 Standard

Indi Lotey

unread,
May 5, 2017, 3:57:07 PM5/5/17
to RemoteApp Tool
Found that it works ok in the older version 5010

Kim Knight

unread,
May 8, 2017, 8:03:00 PM5/8/17
to RemoteApp Tool
Thanks for this information! I will try and identify the issue based on changes between the versions

Kim Knight

unread,
Sep 29, 2019, 9:27:42 AM9/29/19
to RemoteApp Tool
Only two and a half years late, but RemoteApp Tool is now open source - https://github.com/kimmknight/remoteapptool

Green Clinic IT

unread,
Jan 6, 2022, 3:04:17 PM1/6/22
to RemoteApp Tool
The fix for this is to open the installation directory of RemoteApp Tools, and there should be a file called "RDP2MSI". Create a regular RDP icon using the app, and then save it to your desktop. Then drag the icon to the RDP2MSI file. A CMD window will open, and then it will create the MSI file for you and drop it on the desktop.
Reply all
Reply to author
Forward
0 new messages