Consuming WCF Data Service - getting error "Operation could not be completed" - wcf

Whenever I attempt to consume WCF Data Service (version 5.0 of WCF Data Services), the proxy generation fails with the error message:
The operation could not be completed
Any ideas? The Data Service is built using VS2012, Entity Framework 5.0 and WCF Data Services 5.0. Client is Windows 8 built using VS2012.
I have also tried installing WCF Data service 5.3 installer but faces same issue.

So basically I was facing issues on the entities which had a timespan datatype and throwed a "Operation cannot be completed" error while consuming the WCF data service in a Windows Store Client Library.
So the solution to the issue whilst consuming the WCF Data service to Windows Store app is to install the "WCF Data Services 5.6.0 Alpha Tools Installer" available here
Installing this resolved the issues faced while consuming the service.

Related

WCF Service Warm Start with IISExpress

I'm building a WCF service that on startup (not first invocation) needs to monitor the filesystem for files to be updated. I have the service working however, I'm running into a problem where I can't get the WCF service to "warm up" on deployment and start doing its job. The only way I've been able to get the service to start is by directly poking it via one of its web methods.
I've followed the instructions in the following articles to no avail:
IIS 8 Application Initialization - warming up WCF services
http://www.codeproject.com/Articles/508713/Custom-WCF-web-service-warm-up
The only difference between what I'm doing and the samples appears to be that I'm using IISExpress. Has anyone had any success with WCF Service warm starts in IISExpress?
Dev Env: Visual Studio 2012 Sp2

Installing NServiceBus as a Windows Service with dependency on RavenDb

When we install an NServiceBus 3.3.6 endpoint as a Windows service using the /install flag, it is automatically configured with a windows service dependency on Message Queuing.
However, even though our NServiceBus endpoints use RavenDb for persistence, the installer does not configure a service dependency on RavenDb. This means that when our server restarts most of our NServiceBus endpoints fail to start up due to the following exception:
System.InvalidOperationException:
The database {name} is currently being loaded, but after 30 seconds,
this request has been aborted. Please try again later, database loading continues.
Is there any way to tell NServiceBus to set up a dependency on RavenDb or is this something we have to configure manually, perhaps using INeedToInstallSomething<T>?
You can pass a dependencies list eg:
NServiceBus.Host.exe /install /dependsOn:"MSMQ,RavenDB"
The list needs to be comma delimmited.
In v4 the command line args are a bit different:
NServiceBus.Host.exe -install -dependsOn=MSMQ -dependsOn=RavenDB

Mono/Unity3D disconnecting from a wcf duplex service after a while

I have a client using unity3D which connects to a WCF duplex service. The client connects and receives data all the time, but after a random amount of minutes it just stops receiving data. The service stays stable and can be reconnected without any problem, also no error is thrown.
I have set up other test clients using .net 3.5 and the exact same code i use on mono and the client stays connected pretty much forever.
Does WCF in mono have known connectivity issues? How can i prevent that from happening?
I was facing the same problem, until I copy another version of System.ServiceModel.dll and System.Runtime.Serialization.dll in my Unity Asset (or plugin) folder. You can find these assemblies here : https://www.dropbox.com/sh/z05gp6zsqhshvpx/S-Wywb7NDh
(Running with Unity 4.2.2f1)
Have a good day !

Error -1072824317 trying to use MSMQ with WCF

I have a Silverlight client which is talking to a WCF Service and performing some actions
Most of the time these actions will be quick, but often they wont be so I need a way of avoiding WCF timeouts by essentially passing the work onto its own "thread" server side and having a way for the client to know when the operation has completed
I have searched on here and found reference to the article below
http://msdn.microsoft.com/en-us/magazine/cc163482.aspx
I have downloaded the sample
It was targeting .NET 2 so I have updated it to 4.5 and the required IDesign folder didn’t exist in c:\program files so I have created it
Once I installed MSMQ and tried to run the client I get the error below
HResult=-1072824317
Message=An error occurred while opening the queue:Unrecognized error -1072824317 (0xc00e0003). The message cannot be sent or received from the queue. Ensure that MSMQ is installed and running. Also ensure that the queue is available to open with the required access mode
Does anyone know what the problem is here? I am very new to MSMQ
I notice that this code is very old (2006), so is there a better way of doing this nowadays?
Paul

WIF 4.5 and partial-trust environments

Is WIF 4.5 supported in a partial-trust environment? I have a WCF service that uses it and when deployed to a medium-trust environment the following error is occurring:
An error occurred creating the configuration section handler for system.identityModel: Attempt by method 'System.Configuration.ConfigurationElement.ApplyInstanceAttributes(System.Object)' to access method 'System.IdentityModel.Configuration.IdentityConfigurationElement.get_ApplicationService()' failed.
No WIF only runs in full trust.