This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Okay.. I know I'm new to LightSpeed and all but I'm having major issues finding DataService for WCF communications.
I'm getting: "The type of namespace 'DataService' could not be found. I have the following References added Mindscape.LightSpeed Mindscape.LightSpeedServiceModel |
|
|
It appears it is because of the sample WCF application I'm looking at uses version 1.0.0.0 of the Mindscape.LightSpeed.ServiceModel. Can we get an updated simple WCF sample that uses Lightspeed's DistributedUnitofWork method? |
|
|
Have a look at the Film Festival sample which is one of the standard installed samples with LightSpeed. That sample uses a DistributedUnitOfWork for fetching its data.
|
|
|
Jeremy, When running this in Mono(Mono JIT compiler version 2.10.8.1) I get the following.
|
|
|
Sounds like you are missing some configuration - what does the system.serviceModel section in your machine.config file look like?
|
|
|
Jeremy, Here are the files that I copied over (directly from the solution)
Here is machine.config section you requested from my linux server
|
|
|
Thanks - what do you have defined in the system.serviceModel/behaviors section?
|
|
|
See attached files. machine.config-4 = /etc/mono/4.0/machine.config machine.config-2 = /etc/mono/2.0/machine.config |
|
|
Jeremy, Is there another sample that uses Light Speeds distributed computing? I understand the Model and Service projects inside the Film Festival however I do not understand the Web or Showcase projects. I'm looking for a simple winform app that accesses the http binding that Service exposes. Thanks. |
|
|
Yes there is also an example of this in the ATM sample which is a WPF application so this may be a bit more what you are looking for - have a look within the Teller project where this is being used. Also all the information about how to define and configure the DistributedUnitOfWork is detailed in the documentation here: http://www.mindscapehq.com/documentation/lightspeed/Building-Distributed-Applications-/Distributed-Entity-Programming.
|
|
|
For the original issue with the Film Festival (which you will likely hit with the ATM sample as well) it seems like this may be an issue with how the Mono implementation of ServiceHostBase is dealing with the service configurations. You can see in the source for that file here: https://github.com/mono/mono/blob/master/mcs/class/System.ServiceModel/System.ServiceModel/ServiceHostBase.cs#L350 that they are only doing a null check when compiled for .NET 4 but has a IsNullOrEmpty check previously. Clearly the configuration name is coming through as String.Empty when its not defined so thats the cause of the issue. So what you could try doing is adding a dummy behavior, e.g. Add the following into system.serviceModel in the Service's app.config file
And then update the service definition to:
That should then get around it looking for a non existant behavior definition :)
|
|