Red Gate forums :: View topic - System.InvalidOperationException creating ComparisonSession
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

System.InvalidOperationException creating ComparisonSession

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
pince



Joined: 30 Jul 2010
Posts: 5

PostPosted: Fri Jul 30, 2010 8:12 am    Post subject: System.InvalidOperationException creating ComparisonSession Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6645

PostPosted: Fri Jul 30, 2010 1:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
pince



Joined: 30 Jul 2010
Posts: 5

PostPosted: Mon Aug 02, 2010 5:22 am    Post subject: Reply with quote

Thanks Brian. Issue has now been resolved
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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