Web Service Not Working

Topics: CAB & Smart Client Software Factory
May 22, 2006 at 6:03 PM
originally posted by: jofreder

I am New to this code and still trying to learn. I have a seperate solution that provides business and database layers( generated with CodeSmith nettiers). I have a SmartClient solution setup with the Guidance Package.

I created a Module (Navigator) that holds an Infragistics Exploere bar, I load this to the Leftworkspace of Shell, the rightworkspace get a customerlisting view from the Customer Modul. THe Customer listing control loads the list on the load event. This works just fine when my data access is processed with the connection string right to the database. When I switch this to the Web Service provider ( part of the referenced dlls) it never works I do get this error message after a wait.


ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x19d4f8 to COM context 0x19d668 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.


I did test my web service outside of the UI Solution. Could I be loading my view incorrectly.
In the Navigator module I load the workspaces

NavigatorView myView = WorkItem.Items.AddNew<NavigatorView>();
WorkItem.WorkspacesWorkspaceNames.LeftWorkspace.Show(myView);

CustomerListingView rightPanel = WorkItem.Items.AddNew<CustomerListingView>();
WorkItem.WorkspacesWorkspaceNames.RightWorkspace.Show(rightPanel);

ON The Click event I do this

_presenter.NavBarItemSelected(e.Item.Text);

in the presenter class I load the view to the right workspace

Customers.CustomerListingView myView = _workItem.Items.AddNew<Customers.CustomerListingView>();

_workItem.WorkspacesWorkspaceNames.RightWorkspace.Show(myView);

in the onload event of the ListControl ( CustomerListingView)

grdCustomerListing.DataSource = DataRepository.CustomerInformationProvider.GetAll();
grdCustomerListing.DataBind();



Any Help would be greatly appreciated

Joe