wcf

Silverlight 3 Validation MVVM WCF EF

My application is SL2 reading and writing data through an Entity Framework Model exposed via WCF. We have resisted writing any UI validation due to the exicting new validation controls coming from SL3. ...However after doing a trial update on our project yesterday, we realised that most of the standard practices for attaching validation...

No connection could be made because the target machine actively refused it prob in WCF.

Hi All, I have created a class library called AddServiceLibrary in which I have a method called AssemblyLoader the code is below: string executingAssemblyName = Application.ExecutablePath; AssemblyName asmName = AssemblyName.GetAssemblyName(executingAssemblyName); AppDomain appDomain = AppDomain.CurrentDomain; ...

use svcutil to map multiple namespaces for generating wcf service proxies

I want to use svcutil to map multiple wsdl namespace to clr namespace when generating service proxies. I use strong versioning of namespaces and hence the generated clr namespaces are awkward and may mean many client side code changes if the wsdl/xsd namespace version changes. A code example would be better to show what I want. // Servi...

WCF Service Hosted in IIS System.Runtime.InteropServices.SEHException

I have a WCF service, hosted in IIS returning the following error (when trying to call a method or even just browse to the service definition): "Service not available" The error log shows a bit more detail: An unhandled exception occurred and the process was terminated. Application ID: /LM/w3svc/1/ROOT/C_wcfService ...

What exactly do I need to do to host a WCF service in IIS 7.0 using netTcpBinding?

Hello Everyone: I've been trying for more than a week without any success at all, to host a very simple HelloWorld-like wcf service using netTcpBinding. With http, everything is ok. I can access my service even from a remote machine. But with tcp problems arise. I have performed all the steps I'm supposed to, in order to host my servi...

Hosting MSMQ Integration Binding with WAS

Appears that WAS does not support the integration binding. I've tried setting it up by enabling the net.msmq protocol in WAS just to confirm it to no avail. Has anyone gotten this to work and if not, what are you using to host integration services? I'm leaning towards a Windows Service. ...

ASMX or WCF for AJAX consumption inside of ASP.net only

I have an ASP.Net 3.5 application in which I would like to setup some web services for AJAX consumption for ONLY within the application they reside. There is no foreseeable need to expose them to anything beyond the application in which they live. That being said, is there any particular benefit to use WCF over ASMX or viceversa to exp...

Winforms client and SSL WCF forms authentication

I am writing a console application to make calls to a wcf service that is hosted in iis and uses FormsAuthentication over SSL in production but not so in dev if possible. I have the following link http://www.zamd.net/2009/03/05/FlowingFormsAuthenticationCookieToWCF.aspx and am looking for both the server and client configs as well as th...

How to communicate between two applications?

I have created a library which reads the app.config file and gets the type of WCF service in which it is called. Now, I have a separate console application, I want that this library informs the console application about the type it found in the WCF service so that the console application can host it. It is useful because then I will j...

WCF Timeout Returning Five-Dimensional Array of String

Hi, I wrote a WCF service that returns a string[][][][][] (necessary for legacy reasons). Then I noticed an important fact: if the service manipulates N objects the answer is returned immediately (in localhost) but if it tries to manipulate N+1 objects a timeout occurs (I set it to 30sec). The problem occurs if the string[20][20][20][...

How to write endpoint information in app.config at runtime WCF>

Hi All, Is there a way to write in a app.config file the information about endpoints? Actually I want to read tag from one app.config file and want to write it in other app.config file's tag. Please anyone tell me how can I do it? Actually I have a config file called "WCFService.exe.config" which i want to read in my program , so wha...

What is meant by hosting a wcf service ?

Hi All, I want to know what happens when I create an instance of a ServiceHost class? What it does ? ...

WCF Service with webHttpBinding; 404 error

Hi, does a service, which is configured like in the box below, throwing a 404 when there is a mismatch in the parameter? In this case the parameter is a complex type and every call to the SearchJson method returns a 404... ( is it even allowed with the WebInvoke option and WITHOUT the UriTemplate? ) The service is up and running ( i ca...

Hosting a WCF Service to spawn local processes via remote command.

I have need for a work project to run a controller application on PC A, which farms out tasks to PC's B-E. Originally I was planning on using something like psexec or WMI to remotely spawn processes with parameters that then connect back to PC A via WCF, but now I'm leaning towards using WCF as a windows service on B-E and having A conne...

Handling Thread Exceptions in WCF

Our WCF services occaisionally spawn a worker thread to handle something that the client doesn't care about. The worker threads do not report any status back to the client. In fact, the service has probably already returned results to the client by the time the thread finishes. One of these background threads recently caused an except...

Why can't a DataMember in WCF return Type?

Trying to get this to work, with no luck: [DataMember] public Type ParameterType { get; set;} ...

filtering infrastructure for fluentnhibernate over 3 tiers application

hello, i have a 3 tier app that needs to be capable of doing data filtering according to user requests, i'm working with fluentnhibernate to manage the crud of my entities. my question is how can i pass the filter from the client to the server (over wcf). the filter classes of fn is not serializable. any solution? ...

How do I get a client's address from a WCF Service Application?

How can I get a client's address from a WCF Service Application? Also, is there an event raised when a client connects, possibly with address information? ...

Default Directory in a WCF service that is hosted in IIS6?

I have written a simple WCF service that accepts and stores messages. It works fine when hosted locally. I still works when hosted on IIS 6. But when I enable the service's ability to store the messages to xml I get the following error: Access to c:\windows\system32\inetsrv\Onno.xml has been denied (translated from dutch, so may not matc...

Adding a WCF Service (<> WCF Service Reference) gives "Specified Cast is Invalid"

When adding a second WCF service to an existing WCF project, or adding a first WCF service to a project gives me a dialog box "Specified Cast Is Invalid". WCF files are added to the project except interface file. Web.Config isn't updated neither. I think the problem started after updating VS.NET 2008 to VS.NET 2008 SP1. ...