wcf

DI with WCF -- Where do I initialize the Windsor Container when using WAS hosting?

Hi, I was reading an exellent article about how to use dependency injection with WCF Services. Unfortunately, it only shows how to instantiate and register the Windsor Container in a global.asax file. I'm looking to use WAS for my hosting so global.asax will not get called. Does anyone know where I should register the container? Do I...

Passing parameters on each wcf call

Hi, I am having this problem. I have integrated structuremap with wcf like it is described here: http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/07/29/integrating-structuremap-with-wcf.aspx the problem is that I am having classes which have constructor parameters like userId and applicationId that I must pass in order structu...

Silverlight 3/WCF Communication over SSL Issue

I have a WCF over SSL service that works no problem. I am able to add a reference to this service to my Silverlight Project. Everything is hosted in IIS7. When My app runs I get the following error An error occurred while trying to make a request to URI 'https://wikittybam/BurgerCounter.svc'. This could be due to attempting to acc...

Find out where a request to a WCF program is coming from?

I'm making a very simple WCF (C#, .NET 4.0) licensing program that automatically emails a user a key they can use to activate the software they just bought. My idea is my website would call a function provided by my service which would generate a key and then send the key the email provided. Later my software would also call that servic...

Getting "The Security Support Provider Interface (SSPI) negotiation failed" when using a ServiceHostFactory

Hi, I recently started using a custom ServiceHostFactory because I want to use dependency injection with WCF. Both my client and service are being run from VS2010 on my local machine and the service is using the ASP.NET Development Server. Why am I having this problem now? I've had success with wsHttpSecurity in the past, having both...

Mapping a partially populated DTO to a domain object

I'm using DTOs between my business and presentation layers and have some mapping code in the service that converts DTO <-> domain object. I'm currently allowing the PL to partially populate a DTO and send it to an Update service, which updates only the changed properties on the associated DO. What's the usual way of dealing with non-nul...

How to sign an xml file in a wcf service?

I'd like my WCF service to return an xml file that has been signed. I found documentation that shows how to sign an XmlDocument on msdn, but since a WCF function can't return an XmlDocument I'm not sure if the following would work (similar to thisquestion) public XmlElement GetXml() { var doc = new XmlDocument(); // add...

WCF Method that receive GET AND SOAP Requests

i created a WCf service with a method that can receive GET requests using WebGET attribute, i want the same method to receive Soap calls too (that when the programmer does a Service reference to the WCF, he will be able to call the method). my interface is: [ServiceContract] public interface IService1 { [OperationContract] [Web...

Error while adding service reference for a wcf service

Hi, I am getting an error when i try to add a service reference of a WCF service. Error details is below. My web service is hosted on a different server and my client is on different server. When i run the service directly from IE i can see the service but adding it in .net web application i get error. Please advise There was an err...

How do i host WCF service in windows service?

Hello, I am trying to host WCF serviec in managed Windows Service. Basically i have 1 solution CustomersWCFLibrary which contains 3 Projects. 1) CustomersWCFLibrary :- This is my app.config :- <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <connectionStrings> <add name="Customers...

Unable to invoke WCF service methods from Windows Phone 7 emulator

Hello, I am new to WCF and I am trying to create a Windows Phone 7 app which calls a self hosted WCF service. I have created WCF service hosted in a console app. I am unable to call the service from Windows 7 app running in emulator, but I am able to call it from another client console application running on the same machine the WCF ser...

WIF authentication scenario. STS implementation questions.

We’re considering using WIF for authenticating our users, so I’ve started to gather some information on how to do this the right way. Mainly how we should create the STS. I’ve had a hard time finding some information about our scenario where we have a “main” service that will be used by clients both internal and external. Internal clien...

Trouble with FK in EF after WCF round-trip

Hi there I'm working on a distributed app with a server and a client, where the server exposes services via WCF. The server uses the Entity Framework, and its various methods return EntityObjects. In the client, I have no references to the server. So in the client, the classes are wholly generated proxies. I have a delete method in th...

Is communicating using TCP faster than HTTP?

WCF supports several different protocols for communicating. My WCF services are deployed on the same machine only. I just wanted to know whether TCP is more effecient than HTTP or should i go with HTTP? ...

How to "warm up" (fill caches etc.) a WCF service hosted in IIS after recycling the ApplicationPool?

Hi, we are hosting a WCF service inside IIS 6. A ServiceHostFactory creates the ServiceHost when the first request to a service appears. In the OnOpening() Method of the ServiceHost, we load some data into a cache implemented as a static property. Since loading the data takes about 1 minute we do not want the "first user of the day" t...

getting access to the path denied while saving a zip file using DotNetZip library

Hi, I am trying to create a zip file and save it using DotNetZip library. But for some reason i get a "Access to the path is denied" error when i try to save it. Code4 is below Dim zipFile As New ZipFile() zipFile.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression zipFile.AddFile(filePath) Dim tempFilePath As String = "abc...

How do I deal with the reentrant call pattern in WCF?

Imagine a duplex WCF service that contains a list of subscribers. At some point the service sends data to all subscribers, and some of them may immediately call into the service again. The ConcurrencyMode of the service is Single, so this call fails with an exception. I would like to avoid that exception and found two possible solutions...

Breaking up a WCF RIA Services Project

I'm currently building an application that has two parts, the user front end and the administration backend. The front end is a ASP.NET MVC application and the backend is a silverlight application. I started the project by creating a silverlight business application called Administration and two projects got added, the silverlight app ...

asp.net vs WCF request pipeline in IIS 500 error

Using .net 4.0 , IIS 7.4 Windows Server 2008 R2 I have an asp.net application that sits between WCF web services and routes the requests according to some rules. The iis error page setting is set to 'Detailed errors for local requests and custom ....' the asp.net routing service calls the WCF service using HttWebRequest object. I am ...

LINQ + WCF + Transactions

I have a relatively simple use case which is failing. Consider the following code: [OperationBehavior(TransactionScopeRequired = true)] public IEnumerable<StatusRecord> ReadActive(int contactID, bool isActive) { var result = from n in ORM.Default.Table<StatusRecord>() where n.lng_contact_id == contactID && n.dte_effec...