| Author |
Message |
pince
Joined: 30 Jul 2010 Posts: 5
|
Posted: Fri Jul 30, 2010 8:12 am Post subject: System.InvalidOperationException creating ComparisonSession |
|
|
I am creating a windows service to run a compare between some tables automatically overnight and report on exceptions. I am getting a System.InvalidOperationException when I try to instantiate a new ComparisonSession (ie Dim _session As New ComparisonSession). The rest of the exception message says "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."
What am I doing wrong that this object is trying to start a modal dialog box in a Windows Service? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Fri Jul 30, 2010 1:03 pm Post subject: |
|
|
Hello,
This error usually meany your SDK application is not licensed (the licensing assembly is trying to tell you this, but it can't unless you run the service in "interact with desktop" mode.
You'll want to troubleshoot this and double-check your build process. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
pince
Joined: 30 Jul 2010 Posts: 5
|
Posted: Mon Aug 02, 2010 5:22 am Post subject: |
|
|
| Thanks Brian. Issue has now been resolved |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group