I understand the concept of Fault Contracts in WCF, but they seem to be tightly coupled to WCF and SOAP in particular. I've created a set of services that are separate from the contract definitions and the implementations could be used in many ways, not just WCF/SOAP. For instance, if I wanted to create a RESTful service, or just use t...
I noticed that WCF's named pipe address
net.pipe://localhost/mynamedpipe
and Windows API's
\\.\pipe\mynamedpipe
don't collide. Why is that? How can I make them point to the same pipe?
...
Update:
I have found that the error is occurring in the System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.VerifyObjectCompatibilityWithInterface method.
If I switch the WebMessageFormat to XML then it works fine. Is this a bug in the JSON Serializer?
System.Runtime.Serialization.SerializationException occu...
I have the following object:
public partial class Game
{
public bool Finished { get; set; }
public Guid GameGUID { get; set; }
public long GameID { get; set; }
public bool GameSetup { get; set; }
public Nullable<int> MaximumCardsInDeck { get; set; }
public Player Player { get; set; }
public Player Playe...
We have a WCF service which will be accessed from outside systems. Under certain conditions, we want our responses to include some descriptive text. Because the calling system isn't under our control, we need to return the text itself, not an error_code or similar abstraction. The text we return needs to be human-readable, and it must...
I have a Silverlight app that gets a unique sequence # back from a WCF call to a db. From there I wanted to pass that into a printing function that opens the print dialog. But the problem is that I get a security exception if I call the open print dialog from the WCF call back (the dialog can only be opened from user click event).
I t...
Hi,
I am new to WCF, want to know what difference it make sync call or async call, it will be really helpful if some one will explain with example
Thanx
...
Hi there,
i wish to create a repository pattern but with a WCF Rest Service which controls the data access. Can anyone confirm or help with my thinking / config.
ASP.NET Controllers call to service (not rest service but service of a repository pattern)
Repository Pattern Service >> calls to repository
Repository >> calls to WCF Rest S...
Im have a lab-environment in VMware with a WS2008R2-server and a W7-client. Im trying to broadcast a WCF-service-address from the server and receive this in the client. Im using System.Net.Sockets in C# .NET and I can successfuly send data from the server. I looks okay with WinDump at least. But when I try to receive this on the client i...
Is it possible to host .svc file on ASP.NET Development Server? How?
...
Hello,
I have a simple WCF4 REST service which is working fine when using a browser. However, when I try to add a service reference to it from another project in VS2010, I get an error saying that, “The HTML document does not contain Web service discovery information.”
My question is, since WCF4 has a new simplified config model, I can...
I have a .Net service hosted on a server, and .Net clients connecting to this server over the internet.
I want to implement a publish subscribe model where clients can subscribe to events on the service and have data pushed to them as data becomes available. An alternative would be to have clients poll the server for data, however this ...
Hello everyone,
I am using VSTS 2010 + C# + .Net 4.0 + IIS 7.5 + Windows 7. When I open a WCF svc file in IIS 7.0, there is some error like this, any ideas what is wrong?
System.BadImageFormatException: Could not load file or assembly 'foo.test' or one of its dependencies.
thanks in advance,
George
...
Hi
I have a simple WCF service hosting on IIS6 on a server on the network.
When I use the following binding on a server in my network I got 404, if just made clientCredentialType None, it works, also it works on my machine, why Windows authentication fails on server, 404 actually means it cannot even see the endpoint, if it is a proxy ...
Hello,
I have an existing ASP.NET web application. This ASP.NET web application uses JQuery to provide a rich experience to the users. This user interface interacts with the server through some WCF services. A sample service looks like the following:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMo...
Hi All,
I have written a commercial WCF web service.
I would like to give the service to another person to test independent of the application that will be using the web service. This is because a third party is going to be building that app and we don't have access to it at the moment.
Another thing to remember too is that the person...
Hi All,
I am using the WCF Test Client. When I go to 'add service' and select a service to add I get this message,
Assembly Microsoft.ApplicationServer.Hosting, Version 1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 was not found. Reinstall the assembly or Visual Studio. The application cannot continue and will exit.
The se...
Hello,
I have created a very basic service operation that needs to write content to my database. This service looks like the following:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
[ServiceBehavior(IncludeExceptionDetailInFaults = false)]
public class myService : ImyService
{
publ...
Hi,
I have a WCF with server and client certificates.
When calling service I get the following error and have no idea how to fix it:
Test method TestProject1.UnitTest1.TestMethod1 threw exception: System.ServiceModel.Security.SecurityNegotiationException: Secure channel cannot be opened because security negotiation with the remote...
Why not just add http get support in config and that's done with the advantage that the service will be dual both SOAP AND REST?
What's all the buzz around rest ? What WCF will bring to this ?
I mean what's the difference from the viewpoint of a REST client application if I just set in my web.config for my asmx webservice to being abl...