DragDrop registration did not succeed in Setup Project

Posted by rodnower on Stack Overflow See other posts from Stack Overflow or by rodnower
Published on 2010-04-17T18:20:36Z Indexed on 2010/04/17 18:23 UTC
Read the original article Hit count: 323

Hello, we have some installation project in Visual Studio solution (Other project types -> Setup and deployment -> Setup project). This project have other library type project with Installation class named InstallationCore like project output. In user action I call to Install and Uninstall functions of installer of InstallationCore.
InstallationCore has windows forms for interaction with user. There, in forms, I use Drag and Drop functionality for Drag and Drop text from Tree View to Text Box.
But in line:

txbUserName.AllowDrop = true;

I get error of JIT debugger:

Unhandled exception has occured
DragDrop registration did not succeed
System.InvalidOperationException: DragDrop registration did not succeed

And long stack trace after that.
Important to say, that when I run Installer function from test project the error did not occur and all work fine. Error occurs only when I run the .msi package.

Any suggestions?
Thank you for ahead.

© Stack Overflow or respective owner

Related posts about c#

Related posts about installer