Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DragDrop registration did not succeed #49

Closed
kenkendk opened this issue Aug 5, 2014 · 6 comments
Closed

DragDrop registration did not succeed #49

kenkendk opened this issue Aug 5, 2014 · 6 comments

Comments

@kenkendk
Copy link
Member

kenkendk commented Aug 5, 2014

From gabriel....@gmail.com on April 07, 2009 20:36:46

What steps will reproduce the problem? 1. Create a backup job
2. Run the backup job What is the expected output? What do you see instead? I expected that the job backup run, and it didn't. What version of the product are you using? On what operating system? 1.0 Beta 3, on WinXP with .Net Framework 2.0 Please provide any additional information below. The output windows log show the following info:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: DragDrop registration did not succeed.
---> System.Threading.ThreadStateException: Current thread must be set to
single thread apartment (STA) mode before OLE calls can be made. Ensure
that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.TreeView.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TreeView.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.1433 (REDBITS.050727-1400)

CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

Duplicati
Assembly Version: 0.5.0.0
Win32 Version: 0.5.0.0

CodeBase: file:///C:/Arquivos%20de%20programas/Duplicati/Duplicati.exe

System.Data.SQLite
Assembly Version: 1.0.46.0
Win32 Version: 1.0.46.0
CodeBase:

file:///C:/Arquivos%20de%20programas/Duplicati/System.Data.SQLite.DLL

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/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.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

LightDatamodel
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0

CodeBase: file:///C:/Arquivos%20de%20programas/Duplicati/LightDatamodel.DLL

Datamodel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

CodeBase: file:///C:/Arquivos%20de%20programas/Duplicati/Datamodel.DLL

Duplicati.Library.Main
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:

file:///C:/Arquivos%20de%20programas/Duplicati/Duplicati.Library.Main.DLL

System.Windows.Forms.Wizard
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:

file:///C:/Arquivos%20de%20programas/Duplicati/System.Windows.Forms.Wizard.DLL

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

file:///C:/WINNT/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

Duplicati.Library.Core
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:

file:///C:/Arquivos%20de%20programas/Duplicati/Duplicati.Library.Core.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:

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.

Original issue: http://code.google.com/p/duplicati/issues/detail?id=49

@kenkendk
Copy link
Member Author

kenkendk commented Aug 5, 2014

From kenneth....@gmail.com on April 07, 2009 13:06:18

I cannot reproduce this on my own machines.

Did you do something while the backup was starting/running?

Do you have a guess at what window that was supposed to show?

Status: Accepted
Labels: -Priority-Medium Priority-High Milestone-Release1.0

@kenkendk
Copy link
Member Author

kenkendk commented Aug 5, 2014

From gabriel....@gmail.com on May 29, 2009 18:11:52

I think that this ticket can be closed, as I installed the version 1.0 RC1 and this
problem was gone.

@kenkendk
Copy link
Member Author

kenkendk commented Aug 5, 2014

From kenneth....@gmail.com on May 30, 2009 03:02:47

Ok, very nice, thank you for testing.

Status: Fixed

@kenkendk
Copy link
Member Author

kenkendk commented Aug 5, 2014

From elsdoer...@gmail.com on April 05, 2010 14:07:39

I see this on a Windows 7 installation, 64bit version, running in VirtualBox, using the
current 1.0 download.

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.InvalidOperationException: Fehler bei der DragDrop-Registrierung --->
System.Threading.ThreadStateException: Für den aktuellen Thread muss der STA-Modus (Single
Thread Apartment) festgelegt werden, bevor OLE-Aufrufe ausgeführt werden können. Stellen Sie
sicher, dass die Hauptfunktion mit STAThreadAttribute gekennzeichnet ist.
bei System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
bei System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
bei System.Windows.Forms.TreeView.OnHandleCreated(EventArgs e)
bei System.Windows.Forms.Control.WmCreate(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.TreeView.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam,
IntPtr lparam)

************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.

Duplicati
Assembly-Version: 1.0.0.183.
Win32-Version: 1.0.0.183.

CodeBase: file:///C:/Program%20Files%20(x86)/Duplicati/Duplicati.exe.

System.Data
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
CodeBase:

file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll.

System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
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.4927 (NetFXspW7.050727-4900).
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Wi

ndows.Forms.dll.

System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.

dll.

System.Data.SQLite
Assembly-Version: 1.0.60.0.
Win32-Version: 1.0.60.0.

CodeBase: file:///C:/Program%20Files%20(x86)/Duplicati/System.Data.SQLite.DLL.

System.Transactions
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
CodeBase:
file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Trans

actions.dll.

LightDatamodel
Assembly-Version: 1.1.0.0.
Win32-Version: 1.1.0.0.

CodeBase: file:///C:/Program%20Files%20(x86)/Duplicati/LightDatamodel.DLL.

Datamodel
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.

CodeBase: file:///C:/Program%20Files%20(x86)/Duplicati/Datamodel.DLL.

System.Windows.Forms.Wizard
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.

CodeBase: file:///C:/Program%20Files%20(x86)/Duplicati/System.Windows.Forms.Wizard.DLL.

Duplicati.Library.Main
Assembly-Version: 1.0.0.183.
Win32-Version: 1.0.0.183.

CodeBase: file:///C:/Program%20Files%20(x86)/Duplicati/Duplicati.Library.Main.DLL.

System.Configuration
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Co

nfiguration.dll.

System.Xml
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.

System.EnterpriseServices
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
CodeBase:
file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System

.EnterpriseServices.dll.

Duplicati.Library.Core
Assembly-Version: 1.0.0.183.
Win32-Version: 1.0.0.183.

CodeBase: file:///C:/Program%20Files%20(x86)/Duplicati/Duplicati.Library.Core.DLL.

System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e0

89/System.Windows.Forms.resources.dll.

mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

@kenkendk
Copy link
Member Author

kenkendk commented Aug 5, 2014

From kenneth....@gmail.com on April 07, 2010 00:09:39

This should be fixed in the latest preview.
What happens is that Duplicati is already running (in the tray).
When you start Duplicati again, it activates the running instance, but in 1.0 this
happens in a wrong thread, thus the exception.

If you only manipulate Duplicati from the tray icon (or use the preview version), the
problem should go away.

@kenkendk
Copy link
Member Author

kenkendk commented Aug 5, 2014

From kenneth....@gmail.com on September 22, 2010 23:42:17

Issue 273 has been merged into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant