wcf

Performance Hosting under WAS vs Host as Service?

I have some performance issue when I host WCF service (net.tcp) under WAS (Windows Activation Services IIS 7). It is working fine if I host service as a console application. The issue is WCF Become Slow After Being Idle For 15 Seconds and a solution. After applying Wenlong Dong workaround the delay is gone if i host service as a consol...

Is it possible to host a WCF service in an Azure WebRole (MVC)

Is it possible to host a WCF service in an Azure WebRole (MVC)? Also; I assume that net.tcp is not supported. ...

WCF data service hosting in Windows Form

Hi, I want to host a WCF Data Service (formerly known as ADO.NET data Service) in windows form.Is it possible? If yes,then is there any blog, which talks about it? I know WCF can be hosted in Windows Form, but I am not sure about WCF data service, as all the examples I see, is asking to create ASP.NET web project. -Brajesh ...

WCF Web Services and native ASP.NET Health Monitoring

hi guys, I need a final answer to the following question! :-) I was wondering if you can enable Health Monitoring for WCF Web services. I'm hosting a number of services in IIS and configured it to send the team email notification when any exceptions are thrown. I feel that Health Monitoring does not work with WCF Services and that I ha...

Passing windows credentials through web application, to WCF

I've checked other questions, but I can't find a working answer I have a .Net web application which successfully takes on the callers windows credentials (Thread.CurrentPrincipal is my windows user). Within that app, I call to a WCF service, but my windows identity isn't passed up. Regardless of what I put in the binding: NetTcpBindi...

IIS hosting vs Built In Web server that ships with VS 2010

Hi there, I am looking to host a wcf service while i am developing. Is this best with IIS or can i just use the default BUILT IN web server that ships with Visual Studio? I can change the Assign automatic port to specific port so in my client i always ahave a fixed address. I was hoping somebody could advise the best way to go? ...

Servicehost throwing an error, even though added to configuration with netsh

Hey guys, Servicehost.Open() is throwing this error : HTTP could not register URL http://+:8001/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). So I used netsh to add the url. But event though it is added, i'm still getting the error. This is the command i us...

WCF custom channel messages

How can I create a custom channel in WCF that sends its own messages. These messages should be handled by the same channel on the service side and should not get to the EndpointDispatcher. I believe that Reliable sessions binding elements uses something similar for its keep-alive functionality. ...

WCF Constructor with parameter / Custom Behavior Created In Code

Hello I've a must to create wcf service with parameter. I'm following this http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/8f18aed8-8e34-48ea-b8be-6c29ac3b4f41 First this is that I don't know how can I set this custom behavior "MyServiceBehavior" in my Web.config in ASP.NET MVC app that will host it. As far as I know behavio...

How to make WCF respond in parts when new part is available?

Hi I want to create a vehicle insurance broker site which gets insurance prices from other insurances. Assuming all insurance companies will give their answer through some sort of web services I want to create another web service which will return unified answers with all data from insurers. But there is a problem. Some insurers might ...

Custom membership provider via WCF authorization question

I've made a global authentication via WCF to use with the most of our systems, but found that load data via WCF not very so fast. What I need to do now is verify every time that the page is loading if the user has access granted to that page.... Its a good pratice to go back in WCF request this info for every page that the user access?T...

WCF Server Side Events

Hi all, I am working on an application. The application goes like this. I am a recent grad and still learning the power of WCF. client1 should not directly interact with client2. The problem I have right now is I have a webservice. Client1 can interact with the webservice and insert some commands to DB. Client2 reads the command exec...

Simple WCF question.

So I am learning WCF and I have run across an issue that I believe has to do with Instance Control/State but I am not sure. Workflow is as follows, Basic client/server paradigm. The client calls a Method RetrieveBusinessObjects(criteria) and the server calls the datalayer and then puts them in an IList on the server side. It does not ...

WCF debugging on Windows 7 x64

I have created a very simple WCF sandbox project using Visual Studio 2008, consisting of: Console client application WCF Service Library, running in WcfSvcHost.exe I am unable to debug the WCF service on my Windows 7 x64 system. I get a popup saying: Unable to automatically debug 'ServiceLibrary'. The remote procedure could n...

Silverlight, WCF service, integrated security AND ssl/https not possible?

I have this setup that works perfectly when using http. A silverlight 3 client .net 4 WCF service hosted in IIS with basicHttpBinding and using integrated security on the site When setting https to required on the website the setup stops working. Using the wcftestclient on the uri I get the message: The HTTP request is unauthorized wi...

DataContractAttribute with Shared Assembly

Hi All, Is it necessary to decorate custom objects with [DataContract] and [DataMember] when using shared assemblies (as opposed to auto proxy generation)? The reason I ask is that I have encountered the following scenario: Suppose the following object is implemented in my service: public class baseClass { Guid _guid; public bas...

Is it possible to respond to request from another method that the one defined in [OperationContract]?

Hi, as in the title, i have: [ServiceContract] public interface IService { [OperationContract] [WebGet(UriTemplate="abc")] Stream GetResponse(Stream in); } public class Service : IService { public Stream GetResponse(Stream in) { some_function() } } ...

Silverlight 4 - authentiation / authorization against custom wcf service

I have a wcf service in front of an AzMan store that passes roles and operations to clients using the following interface: [OperationContract] bool AuthenticateUser(string password, string appName); [OperationContract] string[] GetRoles(string storelocation, string appName); [OperationContract] string[] GetOper...

Is AppFapric mature for production.

Hi, We have a lot of WCF services using as a host windows services. And as we are upgrading our servers to windows server 2008 R2 we are planning to migrate some of services under WAS. Also having already the release of AppFabric it is interesting does AppFabric is mature to be used, so may be we can use it instead of WAS. Is there alre...

How to serialize a protected property in wcf

I have two classes (Person and Address) that i need to send via wcf, the classes look like this: public class PersoanaFizica :IExtensibleDataObject { [DataMember] private Guid _id; [DataMember(Name = "Id")] protected virtual Guid Id { get { return _id; } set { _id = value; } } private Extensi...