System.InvalidOperationException creating ComparisonSession

Automate and integrate using the SQL comparison API

Moderator: Chris Auckland

System.InvalidOperationException creating ComparisonSession

Postby pince » Fri Jul 30, 2010 8:12 am

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?
pince
 
Posts: 5
Joined: Fri Jul 30, 2010 8:04 am

Postby Brian Donahue » Fri Jul 30, 2010 1:03 pm

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
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Postby pince » Mon Aug 02, 2010 5:22 am

Thanks Brian. Issue has now been resolved
pince
 
Posts: 5
Joined: Fri Jul 30, 2010 8:04 am


Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests