wcf

IIS Silverlight not connecting to WCF

Hi, I am at a loss, and hoping someone here can help me. I have created a WCF service that runs on a remote computer. The service is self-hosted, but provides the clientaccesspolicy.xml through a webget command. I also have a silverlight application that queries the WCF server. I access the service through a service reference. When ...

WCF Authentication

Hi We're building some core services in .Net 3.5 and exposing the services via WCF. The services will only be accessed internally (i.e. within the intranet). The services just need to authenticate the calling user's windows credentials and get their AD/functional groups. The serives need to be exposed using NetTcpBinding and BasicHtt...

Using Castle for logging thrown exceptions in WCF (and otherwise)

Hello, I'm writing a WCF web service and I'm wondering if there's an elegant (aspect-oriented) way to use Castle interceptor mechanism for logging exceptions thrown by my web methods? I know about the IInterceptor inteface, but I could not find any exception information there. I've seen http://stackoverflow.com/questions/238755/castle...

WCF Mex End Points for Multiple Bindings

Hi, I'm building a WCF service that will expose BasicHttp and NetTcp bindings. I've also added two corresponding Mex endpoints, i.e. <service name="WCFTest.CalculatorService" behaviorConfiguration="WCFTest.CalculatorBehavior"> <host> <baseAddresses> <add baseAddress = "http://localhost:8000/WCFTest/CalculatorService...

How can I generate a client proxy for a WCF service with an HTTPS endpoint?

Might be the same issue as this previuos question: WCF Proxy but not sure... I have an HTTPS service connfigured to use transport security and, I hope, Windows credentials. The service is only accessed internally (i.e. within the intranet). The configuration is as follows: <configuration> <system.serviceModel> <services> ...

Is It possible to use WCF(C#) in that environment ? ...

I have several "blackbox" that sends data to determinated IP and PORT, I can´t specify anything else (just IP and PORT)... My server should be listening that PORT and catch information to send to MSMQ... How can I set a WCF server to listening that PORT? Thanks! ...

Can I Redirect mis-addressed message on outgoing MSMQ?

I have a bunch of message on an outgoing MSMQ that have been addressed incorrectly due to a typo. They are stuck on the outgoing queue since the box they have been directed at does not exist. The name of the queue is of the form DIRECT=OS:foo\private$\MyQueue and is in state Waiting to connect and I want to send to DIRECT=OS:bar\...

How do you send complex objects using WCF? Does it work? Is it good?

Can I have a data contract of this shape?? [DataContract] public class YearlyStatistic{ [DataMember] public string Year{get;set;} [DataMember] public string StatisticName {get;set;} [DataMember] public List<MonthlyStatistic> MonthlyStats {get;set} }; I am assuming here that class MonthlyStatistic will also need to be a DataContrac...

WCF Newbie Question: Calling Methods from JavaScript

Greetings! I'm new to WCF and I thought it would be similar to ASP.NET web services, but I'm unable to call a method from client-side JavaScript. My web form looks like this: <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="...

svcutil omits the ServiceKnownType attribute from the generated interface proxy.

I encountered a problem when I tried to implement the ServiceKnownType example from MSDN. In the example they provide the following classes: [DataContract()] public class Widget { [DataMember] public string Id; [DataMember] public string Catalog; } [DataContract()] public class Machine : Widget { [DataMember] pu...

WCF performance net.tcp versus namedpipes

What the performance benefit is of switching from net.tcp to named pipes binding? Asking since we have had some problems getting named pipes to work, and therefore wondering if it is worth the effort. Thanks Shiraz ...

ASP.Net MVC and Webservices/Ajax - Which route to take?

Hello I'm developing an ASP.Net mvc application which has a requirement to do some small, atomic actions without an entire page postback. The logical way of doing this is of course with an ajax call. My question is - What would people suggest is the best way of achieving this? As far as I am aware I can do it along the following lin...

AJAX and asp.net security question

Hello. I have a couple of questions regarding security mechanisms in asp.net (2.0). I have always been using Forms authentication + Page.User for validating permissions. Now I need to send some data from client side javaScript (jQuery) to a WCF service. Will my IPrincipal be still accessible from HttpContext of WCF service (I'm hosti...

Cannot understand WCF error message, help needed.

I have a simple web service to allow applications to query my CMDB. The function I am having trouble with works with a small resultset but fails with a larger one, indicating that it is something in the WCF service config that is preventing it succeeding. I have a simple WinForms test app with a Service Reference to the web service and...

WebInvoke/DataContractJsonSerializer, '1,6276' cannot be parsed as 'double'.

Hi, I am using WCF WebInvokeAttribute for declarative JSON requests (DataContractJsonSerializer), with DataContractAttribute/DataMemberAttribute based serialization. I'm using a service that supports returning JSON containing data based on different cultures. By default, this service uses en-US culture settings, which means the decimal...

Find the App_Data path from a WCF service

Duplicate: http://stackoverflow.com/questions/480504/access-appdata-in-wcf-service I'm trying to write a WCF function that gives me back the URI of an image in the App_Data folder so I can display it in a silverlight application. How do I get the location of the App_Data folder so that I can search inside it to find the Image...

Application Architecture using WCF and System.AddIn

A little background -- we're designing an application that uses a client/server architecture consisting of: A server which loads server-side modules, potentially developed by other teams. A client which loads corresponding client-side modules (also potentially developed by those other teams; each client module corresponds with a server...

WCF client/server model

I'm looking to create a rich-featured application using a client/server model, using WCF as a possible communications framework. I will host the service(s) in a Windows Service (so with WCF I'd using netTcpBinding). Now, I suppose I could define every service operation into a single service contract, but there could be quite a few oper...

Multiple interfaces from a single WCF service?

Can a single WCF service offer multiple interfaces, and if so how would you express this in app.config? I mean one services offering several Interfaces on one endpoint. ...

WCF, Service attribute value in the ServiceHost directive could not be found.

I'm trying to host my service with IIS 6 but I keep get this exception. Server Error in '/WebServices' Application. -------------------------------------------------------------------------------- The type 'QS.DialogManager.Communication.IISHost.RecipientService', provided as the Service attribute value in the ServiceHost directive...