wcf

Restart a WCF service after a server reboot

Is there some mechanism in WCF that can be used to "pre-start / warm-up" WCF services that are hosted in IIS ? - something like the warm-up scripts for SharePoint sites I have the situation where servers are re-booted over night and next day there is a long delay while the WCF services spin-up. I can't change the time-out in various app...

How do I get the generated proxy class of a WCF service to implement INotifyPropertyChanged

Is it possible to have the proxy classes that are generated when setting a service reference implement INotifyPropertyChanged? In this case it's a silverlight app referencing a WCF service? Update: The SlSvcUtil.exe commandline utility is part of the silverlight SDK installed {Program Files}\Microsoft SDKs\Silverlight\v4.0\Tools will ...

Fault Exception - Method not found

Hello - I'm having some trouble with references to an external project that contains services for my application. After changing the types of some properties in a class, I got errors like "Method not found: get_Size() (Where Size is the name of the field) After rebuilding numerous times, deleting the class and adding a new one with a ...

Telerik RadGrid ExportToExcel not working

Hi - I have a radgrid and I want to use the built-in functionality to export the data in the grid to a spreadsheet. I remember a time when I ran the code and it worked, but right now when the call is made, nothing happens. Anyone experience this problem or have any suggestions? Thanks very much in advance! ...

Extra column appearing when paging in Telerik RadGrid

Hi - I'm getting a blank column when switching to another page using the default pager in the telerik radgrid. As data for each row, it shows the type of data i am using for the rows (SearchRecord) Anyone have any clues as to why this may be happening? It doesn't show up on initial population of the grid, but only when I do paging. M...

Are there some best practices when it comes to object graph serialization using WCF?

I am using WCF with Entity Framework v4 and using POCO entities. Our entities have a large number of related entities. One object can have many children objects of a different type which then in turn of many children of different types. For example a Car has 1 or many drivers. Each driver has 0 or many children. Each child then has 0 or ...

Error when writing C++ wrapper for WCF

Hi, I'm getting the following error in my WCF project: "An unhandled exception of type 'System.InvalidOperationException' occurred in System.ServiceModel.dll Additional information: Could not find default endpoint element that references contract 'IPhiFeed' in the ServiceModel client configuration section. This might be because no con...

WCF TCP client with Java Socket server on custom XML messages

I am trying to build a WCF client for a Java Socket server which talks on a custom XML messages. I have created my own custom binding with MessageEncoder and netTCP transport. Now what I have seen happen is on the first call to the server, server accepts the connection. However the server then waits for a specific XML packet. This is bu...

Cannot start service

I have 2 other services running on a server and they start and stop without a problem, however one of them will not start. I can't see any difference in their implementation or config files. I'm receiving the following messages when attempting to start the service after installing it with InstallUtil: The service is not responding to ...

Can I add ony specific WCF endpoints to a .NET 2.0 project as web references?

Hi, I'm developing a .NET 2.0 client application that needs to connect to a WCF service. I add a web reference to a basicHttpBinding WCF service that we've developed and VS creates the proxy class and the config paraphenalia which is fine. The problem is that I only want to use a small fraction of the methods that the WCF service implem...

Create a WCF service hosted in IIS7 alive between request?

How can I keep a WCF service alive between requests? The service is creating a simple cache in memory on initialisation and I dont want the service to have to re-initialise between requests. The cache is built up using data extracted from a database and so for efficiency i only need this to be done rarely. The database is not going to ...

Why are my queued WCF messages silently disappearing?

I have a transactional MSMQ queue setup on server THOR. I am able to post messages to that queue from a workstation with the following code: var queue = new MessageQueue("FormatName:Direct=OS:thor\\private\\myqueue"); using (var tx = new MessageQueueTransaction()) { tx.Begin(); queue.Send("test", tx); tx.Commit(); } However,...

Sending WPF User Controls over WCF or similar

I am building an application in the MVVM style where the actual views (UserControls) are stored remotely and hopefully sent via a WCF service to my main application window. I am doing this in order to avoid having the user reinstall the application each time a new view is added. However, when I try to return a User Control from my WCF ...

Response time Issue in WCF REST Service returning a large file

HI, I have created a WCF REST service with response format as JSON. The basic functionality of the service is that when it is called it will return a large file(mostly zip file) from the file system to the requester. The time taken for the file to completely downloaded by the user is taking more than 20 mins for 20MB file. How to find ...

WCF net.tcp only service giving TargetInvocationException/ServiceModel.CommunicationException

I'm writing a WCF (net.tcp) file transfer service which will eventually split files into several pieces and transfer said pieces to the client from the server/service. Currently the client and server are console apps. While writing this service, I have at various times gotten the following exception; System.ServiceModel.Communication...

Another "The maximum string content length quota (8192) has been exceeded while reading XML data." issue with WCF and Silverlight 4

I have no trouble retrieving a large amount of data, but sending it back to the service displays this error. I've tried adding the element to both the web.config and servicereferences.clientconfig and it's not recognized in either. At one point I got a message about adding readerQuotas to bindingElementExtensions, but I can't find anyth...

WCF and n-tier architecture and serialization performance

When working with 5-tier architecture (front-end => interface tier => business tier => database tier => database) using WCF service as the interface tier, having the client applications calling it's methods, should I use also WCF service for the business and database tiers? I ask because of all the serialization / deserialization that wi...

How to parse form-data from Stream in WCF?

Hello Guys, I have a webservice that will accept stream (Image). I was able to successfully save the image but part of it is I also need to get the form-data that is part of the Stream. Do you have any idea how to achieve this? Or any suggestion perhaps to achieve same functionality. Best regards, ...

wcf authentication kerberos with no ssl

Hi All, I have configured active directory. Also I have several computers joined the domain. I have wcf service hosted in IIS. The service uses wsHttpBinding. I need to configure the wcf service and client to use windows authentication with kerberos. Also I do not plan to use ssl. (is kerberos part of active directory or I need to ins...

wcf service creating proxy by using svcutil.exe in command prompt?

hi, when i am trying to generate proxy manually using comand prompt i am getting this error Setting environment for using Microsoft Visual Studio 2008 x86 tools. C:\Program Files\Microsoft Visual Studio 9.0\VC>cd\ C:\>svcutil /language:cs /out:proxy.cs /config:app.config /http://localhost:2544 /myservicewcf/Sasi.svc 'svcutil' is not ...