wcf

Inexplicable Assembly Load in WCF Service (IIS 7)

I'm working on a new WCF web service that's to be hosted within an existing ASP.NET web application. When I attempt to run the .svc file for the service, I'm getting an exception that it can't find the file for an assembly. Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5...

Working with wcf testing

I am getting an error stating unable to load Service :unable to import binding BasicHttpBinding_IcontractDocumentService from NameSpace: “http://tempuri.org/”. ...

Cannot test WCF service in Visual Studio. "There was no endpoint listening."

I am attempting to test a WCF web service I'm developing by accessing it using a Winforms client in Visual Studio. The WCF service is being hosted by the Visual Studio ASP.NET development server, and I can see it when I access it via my web browser (it gives me the "You've created a service." page). However, when I attempt to connect to ...

WCF 4 REST service can't return a StatusDescription, only StatusCode

I'm currently migrating my WCF RESTful service from .NET 3.5 (Starter Kit) to .NET 4. I started my project using a WCF Rest service template from Visual Studio 2010. I had to figure out how to keep my authorization scheme (formely done with RequestInterceptor) using ServiceAuthorizationManager. After some work and researching I got it do...

Sending own data collection in WCF

I have own collection DataContracts: [DataContract] public class DzieckoAndOpiekun { public DzieckoAndOpiekun() { } public DzieckoAndOpiekun(string dzImie, string dzNazwisko, string opImie, string opNazwisko) { this.DzieckoImie = dzImie; this.DzieckoImie = dzNazwisko; this.OpiekunImie = opImie; ...

Get more error detail info from WCF in Silverlight client

Hey, In Silverlight client I get error but it always looks like : An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at SecretaryAppNav.ClientService.GetChildAndOpiekunByFirstnam...

Programming WCF Services vs Essential Windows Communication Foundation

Which would you recommend for a experienced Microsoft .NET (Web) Developer to learn WCF who want to learn this technology and start using it in their upcoming projects? Thanks. ...

C# WCF - Custom Server-Side Monitoring Implementation.

Scenario I've written a distributed application in C# using WCF. It uses Client/Server architecture, implementing the Publisher/Subscriber design pattern for "pushing" new data to the client. The server-side is hosted in a windows service, the client is a windows forms app. The server-side continually loops through a series of processe...

WCF service inheritance

I have a VERY complex service host which consists of multiple DUPLEX services here. They provide a bit of common functionality (Connect, Disconnect, KeepAlive, etc...) but besides that they provide very specific functionality each. All my services inherit from a common base class (abstract). So, I'm also responsible for a part of the c...

How can I use IMetadataExchange endpoint to get information about service metadata?

Hi ALl, How can I use IMetadataExchange endpoint to get information about service metadata? Do I need to implement it in a class like we do for other interfaces ? Please help me ... ...

Inconsistent treatment of quotes in JSON payload

Why is it possible to send in a WCF DataService the following JSON string: { SomeElement: 'val1', SomeOtherElement: 'val2' } whilest you have to send in an normal WCF Service like [OperationContract, WebInvoke (Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, ...

SOA Services Testing

What is the best way to test SOA services? Should I write my own tests using WCF or should I be using a testing framework such as SOAPUI. What are the limitations to each method and are there better tools? ...

How to access an internal asp.net web application from the internet?

Hi All, I have an asp.net web application in an internal windows domain which calls a wcf-service. In the wcf-service I use the SecurityContext.Identity.Name, so it needs impersonation. Our task is that the web application can be accessed from anywhere. The first step was that the administrators published the web application throught ISA...

WCF service - Client Uml class diagram

Hi I have implemented a three layer web site project. Business layer is composed of a WCF service. Presentation layer uses this WCF service. Data access layer is used by WCF. The project is working. But I have a difficulty of showing the relation between WCF service and its client in a UML class diagram with visual studio 2010. I'm seei...

How to use machine names in WCF Services with REST with Windows Authentication

We are developing many WCF services that are hosted in IIS. (IIS 6.0 running on Windows Server 2003 SP2). These services are set up for REST. For an environment (DEV, CERT, PROD), we typically have many services per IIS server. Each service has its own login account that's assigned via the Application Pool. This works fine, but if we ...

WCF Service Communication Exception Due to Parameter Size

I've got a WCF Web MEthod that takes in an XElement object as a parameter. For one of my XML files (sized at 600KB or so) this works just fine, however, for this bigger XML file (about 5MB) I get a CommunicationException right away. I've already increased the message sizes for my binding. Below is the ServiceModel section of my web.conf...

ActionFilterAttribute equivalent in REST WCF .net 4.0

what is the ActionFilterAttribute equivalent in WCF? I have a rest service which looks like below [WebInvoke(Method = "POST", UriTemplate = "/")] public User CreateBookMark(BookMark bm) { User authenticateUser = GetUserSomeHow(); //do stuff } I want to change this to follwoing [WebInvoke(Method = "POST", UriTemplate = "/")] p...

.NET 4, WCF REST Services, Entity Framework, Serialization, and circular references

That title is quite a mouthful. Let me try to be as clear as I can... I have a WCF REST Service written in .NET 4 that uses the entity framework to pull some data from SQL Server into a list of objects. The objects are then returned as XML to the client. The problem is that the XML have references to each other due to my model's rela...

WCF service with HttpContext

I had a web service which I converted to wcf service with the same asmx extension. I have basicHttpbinding since my service talks to various clients like java, perl etc. I had a validation which had HttpContext.Current in it. But I know this will not work in wcf service. I am trying to use RequestContext or OperationContext but am not a...

WPF and WCF Data Services Authenticate at Query level?

So, I swear i'm utterly confused by how to secure WCF Data Services. In that, is there a simplified way of checking to make sure that the client that is sending the data to the WCF Service is authenticated more so, that the client itself is the client I wrote and not some mock client? Any URL"s that can help me decode this problem? ...