Click here to Skip to main content
15,887,746 members
Everything / WCF

WCF

WCF

Great Reads

by Daniel Vaughan
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
by Roman Kiss
This article describes a design, implementation and usage of the Custom Routing Manager for managing messages via Routing Service built-in .Net 4 Technology.
by Roman Kiss
This article describes a design, implementation and tooling of model driven WorkflowServices logically centralized in the Repository and physically decentralized for their runtime projecting.
by Max Paulousky
This article presents the techniques and caveats of building Silverlight applications that can be notified about database state changes via polling duplex. WSHttp binding and CLR triggers are used to implement the solution as well.

Latest Articles

by NikStar
Using OutgoingMessageProperties and OperationContextScope to implement authorization by http header for WCF client that communicates with non WCF-based web services.
by ToughDev
How to fix PlatformNotSupportedException when running WCF apps
by lvmcastro
A tutorial showing how to use a smartcard API, a SharePoint extension and web services, to add a qualified electronic signature (QES) to a PDF file located in a SharePoint online library.

All Articles

Sort by Updated

WCF 

27 Jan 2010 by #realJSOP
They need a PDP-11, or maybe a VAX.
22 Apr 2010 by #realJSOP
You can't specify parameters on event handlers like that.Since you know what control posted the event, you can simply rerfer to that control in the event handler. private void cmbControl_Open(string strControlName){ this.cmbStatus.DisplayMemberPath = "Field";}
22 Apr 2010 by #realJSOP
Make those methods "internal". (30-character minimum made me add this text)
2 Jun 2010 by #realJSOP
Look at Log4Net. It does all that stuff.
3 Jun 2010 by #realJSOP
Did you create your web service correctly? If you're doing a WCF service, you have to first create a .net web service, and then within that project, you have to create a Silverlight-compatible WCF service.
8 Jun 2010 by #realJSOP
It's a configuration error. The endpoint your client is using isn't compatible with any endpoints implemented for the service itself.
20 Jul 2010 by #realJSOP
Depending on the average size of a single record, you may not be able to pass that much info to a service. If it were me, I'd write a web method that accepted 1-to-n "records", so I can adjust the load in my code. Make the max possible records you can pass at any given time 100 (or...
21 Jul 2010 by #realJSOP
You may have to change the max buffer size in your service web.config.To upload multiple files, simply call your web service for each file.
10 Sep 2010 by #realJSOP
Well, the first thing I would do is refactor the code. A lot of the changes I did were simply to serve the page width limitations here on CP as well as to ease debugging, but the key is to put a try/catch block around ALL of the code. With the code below, you can now step through the code and...
27 Sep 2010 by #realJSOP
You're not much of a self-starter, are you...Ever heard of google?Dio they have book stores where you're from?
24 Nov 2010 by #realJSOP
Without seeing your .clientconfig file for your Silverlight app AND your web.config file for your service, we really can't help you.
6 Dec 2010 by #realJSOP
You can't. You either need the service reference, or you need to use svcutil to generate the appropriate files for you. It sounds like you're trying to use a web service without permission from its owner.
7 Dec 2010 by #realJSOP
You could just have the client app periodically check to see if the server app is running...
16 Dec 2010 by #realJSOP
Put a breakpoint at the first statement in your CreateTicket method, and see how many times it's hit. When it stops, check the call stack window and see where it's being called from.
17 Dec 2010 by #realJSOP
A google search reveals this CodeProject article:Globalization Patterns in WCF (WS-I18N implementation)[^]
29 Dec 2010 by #realJSOP
No. That subject is way to broad to be answered here. The best thing you can do is develop some initiative and google ".Net 4.0". There are MILLIONS of results awaiting your perusal.
2 Jan 2011 by #realJSOP
Google is your friend. Try searching for "Linq tutorial" and "wcf tutorial". You'll get thousands of results back that you can peruse at your leisure.
4 Jan 2011 by #realJSOP
Make sure you have a crossdomain.xml file, as well as a ClientAccessPolicy.xml file for your WCF service.Also, make sure your endpoints are correct in your silverlight app's ServiceReferences.ClientConfig file.
23 Feb 2011 by #realJSOP
I have a WCF service that I've created, and when a client calls one of the service methods, I want to post an event from the service host to the app that instantiated it (NOT to the client app), and have the app that handle those events. I tried this:public class MyService :...
26 Jan 2011 by #realJSOP
I recommend that you put try/catch blocks around everything, and then run it under the debugger.It might be that your WCF connection isn't being established.
26 Jan 2011 by #realJSOP
When you need to communicate with the app that contains your ServiceHost object, use custom events
1 Feb 2011 by #realJSOP
Is there something special about making a Windows service run as a WCF client?I've written the following:- A Winforms app that acts as a WCF ServiceHost- A Winforms app that acts as a WCF client- A Windows service that acts as a WCF clientThe WCF stuff uses NamedPipe...
7 Feb 2011 by #realJSOP
Windows service for synchronizing folders
7 Feb 2011 by #realJSOP
As I recently learned, a windows service cannot use WCF to communicate across privilege boundaries, regardless of the binding used UNLESS the app it's communicating with is run as admin.You might want to checkout the article I posted on Saturday, where I was trying to do the same thing you...
7 Feb 2011 by #realJSOP
AppSettings if for settings not necessarily related to the WCF service. How the clients connect are determined by how you decide you want to do it. If it were me, I'd develop a centralized sever app that marshalls messages between connecting clients. That way, each client would simply need to...
8 Feb 2011 by #realJSOP
If that's what you heard, then that's what you should study up on. Chances are pretty good that they'll be asking fairly basic questions, but that really depends on the amount of experiecne they're looking for. Without a fairly basic understanding of the cited technologies, you're going to have...
8 Feb 2011 by #realJSOP
Based on the last question of yours that I answered, if your upcoming interview mentioned WCF and WPF, you should probably look for work elsewhere. By the looks of things, you don't even have the mental chops to use google on your own.
9 Feb 2011 by #realJSOP
Contact the manufacturer and describe your problem.I googled "wcf web service using https binding", anBTW, I d got 242,000 results.I then googled "Could not find any resources appropriate for the specified culture or the neutral culture.", and got back 57,300 results.
21 Feb 2011 by #realJSOP
How to use SvcUtil.EXEhttp://msdn.microsoft.com/en-us/library/aa702581.aspx[^]
23 Feb 2011 by #realJSOP
While Nish's answer steered me in the right direction, the more precise solution was to add the following attribute to the service declaration:[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)]
28 Feb 2011 by #realJSOP
The best way is via IIS on a web server. *Your* machine won't always be turned on, or could be experiencing problems that affect your ability to serve the service. Beyond that, most ISPs don't allow you to run a web server from your house.
28 Feb 2011 by #realJSOP
You don't need WCF to send mail. You simply use the appropriate built in framework objects. WCF is for communicating between a client and a server.If it were me, I'd have the windows service doing the check/email thing, but the web site would STILL be running on IIS, and would access the...
4 Mar 2011 by #realJSOP
Put the code into a try/catch block, and use the freakin' debugger.
16 Mar 2011 by #realJSOP
They ALL work over the internet. And yes, WCF should be fine. You don't have to worry about clients IP addresses because they don't change as long as their connection to the internet is alive. The only time their IP will change (about 99.99% of the time) is if they cycle the power on their...
16 Mar 2011 by #realJSOP
These links may help:http://msdn2.microsoft.com/en-us/library/ms733025.aspx[^]http://msdn2.microsoft.com/en-us/library/bb463275.aspx[^]
24 Mar 2011 by #realJSOP
Are all of the calls on the same port? If so, that's why it's blocking.
29 Mar 2011 by #realJSOP
0) Change your stored proc to change the query based on whether the specified date range results in a single day, or a range of days. 1) Adjust your query so that it's built dynamically, and it either queries for a range of dates, or for a single date, depending on how the specified date...
29 Mar 2011 by #realJSOP
Try using SqlDataReader.BeginExecuteReader. It's the asynch version of ExecuteReader and requires a bit more work pon your part, but it may address your problem. Having X million records to search doesn't help anything either.
6 Apr 2011 by #realJSOP
Assuming you meant WCF, yes, it can transfer as much data as you want to transfer, assuming you have a reasonably reliable internet connection or are transferring across a LAN.
8 Apr 2011 by #realJSOP
While you're searching google for your answer, keep in mind that there are several conditions which must be met in order to get a silverlight app to talk to a WCF web service. When it doesn't work the first time (and it most certainly won't), you'll know what to do more research on.
15 Apr 2011 by #realJSOP
Put a try/catch block around the wcf code that launches the app, and have the wcf service method return the exception that's occurring.I think that's the only way you're going to find out what's going on.You can also check the system logs on the server in question, but I doubt that's...
13 Apr 2011 by #realJSOP
I've found that the best way to debug a Windows service is to put the code into a console app and run it that way. It's much easier to use the debugger that way. You are trying to use the debugger, right?
21 May 2011 by #realJSOP
We're not at all familiar with your code or your functional environment. In other words, it could be ANYTHING. However, I would start looking at the service itself and how much it's doing, or even the server it's on. Maybe it has to wake up the hard drives to retrieve data or something.
1 Jun 2011 by #realJSOP
Like this?Creating WCF Service Extensibility through MEF (Managed Extensibility Framework)[^]
6 Jun 2011 by #realJSOP
Don't you mean this?Session["first"] = "123";
21 Jul 2011 by #realJSOP
The client doesn't need to know. The client contacts the service with a request, and if the client is using an appropriately configured endpoint, the service allows the connection.
3 Aug 2011 by #realJSOP
What you're trying to do is impossible. Think about it. A web service truns on the server. If you put the Process code in the web service, it's going to try to open Notepad ON THE SERVER.I'm not even sure you can use the Process object in a silverlight app, either.
7 Aug 2011 by #realJSOP
Is google somehow disabled or blocked by your ISP?More than 1.8 million google results for "how to create a wcf web service"[^]
23 Aug 2011 by #realJSOP
You don't control user access to a computrer with a wcf service. That's the operating system's job. Either put the user into an appropriate group (probably the best way) and control it that way, or prevent the person from logging on in the first place.
28 Aug 2011 by #realJSOP
You're doing it wrong.I know, my answer seems vague, or even obtuse, but the quality of the answer is dictated by the quality of the question.
28 Aug 2011 by #realJSOP
MSDN - Securing Services and Clients [^]
2 Sep 2011 by #realJSOP
I wrote an article that kinda does that.Synchronicity - A Folder Synchronizing Application[^]
2 Sep 2011 by #realJSOP
WFC is a transport layer that allows a web service to communicate with clients.
5 Sep 2011 by #realJSOP
Even a simple sample would far exceed the charter of "Quick Answers". The part you need to concern yourself with is the WCF web service. 1.1 million google search results for "wcf web service" [^]This is the first link in the results:Getting Started Building a WCF Web Service [^]
14 Sep 2011 by #realJSOP
Here's some shocking info - you may actually have to write some code.Look at the answer by zuninet here:http://social.msdn.microsoft.com/forums/en-US/wcf/thread/f00037f1-02e1-4e1c-b6ed-03fe134f3460/[^]
10 Nov 2011 by #realJSOP
Google reveals all[^]Here are all the results returned from the google search phrase, "wcf difference between transport security and message security" [^]EDIT =====================Try this link. Seriously dude, you gotta learn how to uyse...
8 Dec 2011 by #realJSOP
Assuming you've implemented an appropriate level of exception handling which isn't showing you where the problem might be...Write diagnostic info to the system log (or a text file). This is going to take a while because unless you have an idea of where/why it's breaking, you're doing to have...
26 Dec 2011 by #realJSOP
Write a Windows service that lives on the server. All it does is listen for client connections. When it receives one, it sends back any data for that user that is pending.Write a SECOND windows service that lives on a given client's machine. This service will notify the server that the user...
28 Dec 2011 by #realJSOP
That tells me that some other code is calling the javascript method multiple times. Perhaps you're calling a method that runs the code once, and then the calling method runs the code itself a second time. It's hard to tell what's going on, because only YOU can run YOUR code under the debugger to...
1 Feb 2012 by #realJSOP
I'me developing a WCF web service. I want to be able to use it on my local box (for debugging purposes, and deploy it to two secure web sites. I've come up with the following service model configuration:
1 Feb 2012 by #realJSOP
I got it to work, but I'm not sure why. I had originally done this:public class CrisSvc : ICrisSvc{ // web methods are here}public class LocalSvc : CrisSvc{ // empty class}public class DevSvc : CrisSvc{ // empty class}public class ProdSvc :...
18 Oct 2016 by #realJSOP
This is my answer:(this space intentionally left blank because I can't read you're freakin mind)
28 Nov 2016 by #realJSOP
It's because you're using localhost. You have to use the IP address of the machine where the service is hosted.
29 Nov 2016 by #realJSOP
Here's an article I found using google - you know, that free search engine that everyone's been talking about...Extemporaneous Mumblings[^]
9 Jan 2017 by #realJSOP
Consuming a WCF Service[^]
29 Jun 2018 by #realJSOP
Are you using a base class that isn't Window? Is the object bound to the control public with a public set method? Are you sure the required references are implemented in the project? We can only make wild-ass guesses because your question is too vague.
28 Oct 2018 by #realJSOP
This is the first way I would do it: 0) Send a request to the server to generate the file. 1) As mention by F-ES Sitecore[^], have the server generate the Excel file using the Excel ODBC driver, and save the file using a GUID for the name, such as EE430293-3460-4251-AD14-84E4E99B6E8E.xlsx...
28 Jan 2022 by #realJSOP
Radio buttons don't have "values". They have a checked status. The way I'd do it is to associated an integer value with each radio button, and pass that "value" to the WCF method. The easiest way to implement this paradigm is to assign the Tag...
6 Jul 2010 by 艾绍荣
Hello!I Created a REST service used by WCF,Like This:Service1.csnamespace WcfRestService1{ [ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] [ServiceBehavior(InstanceContextMode =...
9 Jul 2010 by 艾绍荣
First! Thank helianthus87 !But my Problems still exist,I test the code like here:Service1.cs...[WebInvoke(UriTemplate = "", Method = "POST")]public string Test(string instance){ return instance;}... When I POST the URL http://localhost/WcfRestService1 and use
22 Dec 2010 by -Rowan-
So I have been playing with WCF recently in C3 and VS2010 and wanted to get this all stuck together with an AJAX ASP.NET website.The question is:What is the best way to implement a Web Browser accessing a WCF Service directly via JavaScript when that WCF is running in a separate...
18 Mar 2014 by . _Puneet Sharma
Dear Friends,How To Call WCF Service in Android app for Data exchange?Kindly Provide me step by step solution
20 Mar 2014 by . _Puneet Sharma
Following is Complete Code service is live alsoon 223.30.26.198/MyWcfServiceusing System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.ServiceModel.Web;using System.Text;namespace...
5 Jun 2012 by .net333
Good evening friendz... I am doing one big project with wcf services..i want to secure that wcf services with claim based security service...i studied the msdn document..but i didn't understand..i want a practical source code for that.... Thank You.....
6 Jun 2012 by .net333
Good evening friends.... I have the static templtes in my project...i want to edit the Static Templte and i want to insert this edited templtes into sql server 2008....my question is how can i Insert This edited template Html format code in Sqlserver 2008?Thanx in...
4 Jul 2012 by .net333
hi friendz, i am getting the huge amount of data(Contacts) from Sql server..i am getting the following error...Error:An error occurred while receiving the HTTP response to http://localhost:8732/Design_Time_Addresses/ICloudServices/ContactService/. This could be due to the...
8 Aug 2012 by .net333
hai, I written many wcf services..these wcf services are working in websites....now i want to modify these wcf services for IPhone....I am posting small service..If this service work correctly then I'll modify all servicesEx:I want to Modify This existing...
21 Aug 2012 by .net333
I written wcf service for .net and Android..basic http binding for .net and web http binding for androidI am getting the Following Error:When 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' is set to true in configuration, the endpoints are required to specify...
26 Aug 2012 by .net333
hai friendz, I wrote many services for single project....i want to put exception handling in this services...i wanna to display User Friendly messages..now i want to use one of the following...
10 Oct 2012 by .net333
hi, i added global.asax file in website...but i am trying to add global.asax file to class library..but i didn't find Global Application Class filePlease help meThanks in advance
15 Oct 2012 by .net333
hai friends, my web.config file is working in local host with Json and Soap endPoints..but not working in server..if i remove Json End point it's working in Server....Please help me In this RegardMy Web.config File Is
24 Oct 2012 by .net333
hi friends, i added wcf service application to my solution...i removed .svc file and Added UserService.cs and IUserService.cs classes..if i run solution i am not getting end point...i want to add UserServiceReference to .net projectHere is my wcf Service...
19 Oct 2012 by .net333
I followed this Link...http://www.a2zdotnet.com/View.aspx?Id=188#.UIGQnu8tvIU[^]In service hosting environment i added ServiceActivation Attribute like this
31 Jan 2013 by .net333
hi friends, i want to write a service for authenticate and validate the Facebook credentials..i written in .net using Login Radius.. it's working..but we have to use this in Android, iPhone and .net website...for that i want to write a wcf service for that... The goal is to...
18 Aug 2013 by .net333
hi Friends, 1) how can i give back sessionid based upon user id and password?2) When we provide session id - how can i log the request IP address in my server.3) When the user wants to update, delete -- User passes session id that I verify in our system along with IP...
27 Jun 2014 by .net333
Hi friends, How can i improve Wcf services performance..if i retrieve 1000 or more records from sql database to Wcf services it's take 10 mins time to load the data...how can i solve this issue..? I used below settings in my web.config
22 Dec 2012 by .Net_d19
I'm studing wcf. In my test project Service read data from xml file and then send it to client. Data is array of type "myClass".Service class has a function private XDocument GetDB() { string filePath = "SampleDB.xml" return...
8 Mar 2013 by 007Tyagi
Hi All,There is a task in my project which I need to complete but not having much idea.The task is I need to create a API in WinForms using WCF to create such an API which can upload and download files.So please provide such solutions or urls where i can have some ideas.Any help...
21 Jan 2012 by 01xedoc
Hi All,I'd like to ask the advantages and disadvantages of using WCF for an upcoming project.The project is a distributed application can be accessed via a PDA (Windows Mobile) and on the Web. We've already decided to use .NET - C# and ASP.NET. The application is also communicating with...
19 Feb 2013 by 07405
Hi...My projects is all about a company, adding of employees and assigning work to employees. Now i need notifications about database update. If a new employee is added notification should be sended to rest of the employees that new employee named xxxxxxx is joined and so on. i have to...
20 Mar 2014 by 0xMoonstar
I have an ASMX-Web Service and tested whether I can access the iPhone over the web wervice url (using json instead of soap) and everything worked. What bothers me is if there is any possibility to exchange objects than Collections or primitive data types? Is it possible to send LINQ-TO-SQL...
28 Oct 2015 by 1234ctk
I did a project with a wcf service- which run as windows service, and a user interface that using the wcf service-I activated it on the same computer and it worked.my question is-what should I do in order to separate the project to 2 computers-that the wcf service will be in one computer and...
31 Oct 2015 by 1234ctk
I made an project in 3 tiers with wcf service which host in windows servicewhen I try to open the windows form app after I install the service in another computer in the load event there is a code that connect to the wcf service (the window service opened it) and using functions from it-but...
1 Nov 2015 by 1234ctk
when I tried to run my user interface in the client computer (in the same network) I got a message of the current error:"A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel."my wcf service is using...
19 Apr 2016 by 1234ctk
Hello, I tried to do a wcf server which host in a windows service.the wcf is using tcp binding and the transferMode="Buffered"my problem is that if the string is too long, the wcf service can send it .I dont know what I need to change so it will work,I tried to find a solution but with...