wcf

WCF chunk data with stream

HI, I neet to pass chunk data from WCF service to client. I have a table with 16 million records, and so, when the client requests data from that table i open a datareader to that table and serialize and send every record to client,here is my method signature.. public AsyncResult FindAsync(AsyncRequest request) where AsyncResult and A...

In VS08, On F5, sometimes WCF service loaded correctly, sometimes I get a list of files

Sorry, but I am not sure what causes the problem, and the problem isn't happening right now. I'll have to describe from memory. So I've started creating WCF Service Applications. Sometimes, when press F5 to run the project I get the correct screen, a screen that says: Service1 Service You have created a Service. To test this service...

calling https wcf service from silverlight...

hi, i am trying to access a https wcf service from silverlight. the clientaccesspolicy is placed on service root and i have validated through silverlightspy its showing it as valid and calls allowed. i am able to call that webservice successfully from desktop client but when tries to call from silverlight it throws an error that call to ...

Help: How to enable Windows Authentication on ASP.NET Development Server?

I hope any of you guys knows how to fix this issue we are having. We are trying to host a WCF service via the web. We set the web.config to have the service require windows authentication. The problem we are having is the following: When we host our service in a regular IIS, the service runs fine and there is no issues with the "Windo...

What is meant by WS-*?

I have seen the abbreviation WS-*, but I have not been able to figure out what this means, and why is it important? ...

WCF Encryption solution for App.config viewable to a client?

I have a desktop application which contains an App.config (program.exe.config at release) with clearly visible elements which define my WCF endpoints and WCF implementation. I would ideally like to hide this from the users eyes, from simple hacking, view and change. Should I: - Programmatically create and store my WCF endpoints and b...

WCF webservice stop working after upgrade to framework 3.5 sp1

I have a wcf webservice on one of my testing servers. Everything worked fine until I upgraded frome framework 3.5 to 3.5 sp1. the wcf web service stoped working and returns the error: "Failed to invoke the service. The service may be offline or inaccessible. Refer to the stack trace for details." "The remote server returne...

Models for developing WCF applications

Do you know any blueprints for organizing a WCF application in a way similar to Service Factory? The problem is that although Service Factory is well organized, my application is a medium-sized one and it would be an overkill to use the factory - some of the sub-projects that the factory creates for me, I wouldn't ever use. So what are...

Whats the big Advantage of WCF other than hosting for Windows APps?

Hello everyone, I've been using Webservices so long. But,so far up to what I know,I haven't found a solid point for using WCF over Webservices. Webservices hosted with Cassini webserver = WCF?? Is that all? Thanks ...

Is WCF platform independent?

Hello, I just need to know if WCF is platform independent like Webservices? Can the functions in WCF be accessed by Java and Php? Thanks ...

PrinterSettings.InstalledPrinters on Vista

I have a WCF service hosted on a Windows Service application and it should return all installed printers on the machine it is hosted on. I have used System.Drawing.Printing.PrinterSettings.InstalledPrinters to retrieve the list of installed printers but I don't know why in Windows Vista it doesn't return all printers. The host Windows ...

Properly catch SecurityTokenException from a WCF UserNamePasswordValidator

According to the UserNamePasswordValidator sample on http://msdn.microsoft.com/en-us/library/system.identitymodel.selectors.usernamepasswordvalidator.aspx one should throw a SecurityTokenException if the username or password is wrong. This works fine, but instead of getting the SecurityTokenException I'm getting a MessageSecurityExceptio...

Add a relationship entity in generic/abstract way

Hi, I'm trying to write a WCF method that will receive a detached EntityObject from the client and will be able to tell which properties and which relationships were changed for this entity comparing it with what's already in the context. Of course that if this entity is a new entity or one of its relationships were added/deleted/modifie...

Consuming a WCF service - c#, VS2008 with 3.5 SP1

I am trying to cnsume a WCF service.I was given the URL to the svc file. 1. Created a Windows form application 2. Added a service reference to the svc file 3. In my code behind during form load event, i call the method exposed by service ServiceReference1.SearchServiceClient search = new WindowsFormsApplication1.ServiceReference...

configSource doesn't work in system.serviceModel *or* its subsections

I'm trying to split an app.config file into multiple files to make it easier to manage the differences needed for different environments. With some sections it was easy... <system.diagnostics> various stuff </system.diagnostics> became <system.diagnostics configSource="ConfigFiles\system.diagnostics.dev" /> with the "various s...

What is the best way to send multiple files to a WCF service?

We are creating a WCF service that needs from 2-4 image files (small-about 2k-5k each) sent to it as input parameters, as well as about 6 text-field parameters. The data sent back simply consists of a few text values. I understand a single file can be sent as a stream, but am not sure how to go about sending multiple files. The clien...

Does WCF have performance issues compared to named pipes and remoting?

Hello, I'm just starting WCF...but will this slow down interprocess communication further compared to the old remoting,Tcp sockets or Named Pipes? Thanks ...

Detect network connectivity from a WPF/XBAP Application?

Is there any way to determine if an XBAP (WPF hosted in a browser) application has network connectivity? If not, how would a traditional windows client written in C# and .NET determine if it has connectivity? Basically the use case is an XBAP application running on a mobile laptop connected to an intranet via WiFi. The laptop will not h...

Passing primitive type to WCF RESTful service

I've been banging my head against the wall for the past couple of hours, here's what we're trying to do: a method expects a primitive/simple type as the request body. Originally we tried with a boolean, but that didn't work so we tried with string and object. Same thing. Here's the server-side code [OperationContract] [WebInvoke(UriTem...

WCF Getting "The primary signature must be encrypted." from FaultContract with ProtectionLevel.None

I have an existing asp.net application that talks to load balanced wcf services (iis hosted, in app pool running under account configured as servicePrincipalName, etc.). The wcf services return a few custom faults, all defined with FaultContract(typeof(x), ProtectionLevel = ProtectionLevel.None) -- these services are not exposed to the p...