-
When adding the service reference to some WCF based service, it can happen that generated reference does not contain any or some of operations. To illustrate this take a look on following contract definition. [System.CodeDom.Compiler. GeneratedCodeAttribute ( "System.ServiceModel" , "4...
-
Today I have reached my personal limit of number of applications hosted in one IIS pool. If you think it is good to share a bit better applications across pools, you have a right. But the picture above shows just a snapshot of more than 25 pools, 60 services etc. And next picture shows how does this...
-
First of all VS will internally build the file of type afpkg . The file is created in the “Publish” folder which is subfolder of output assemblies folder: \bin\Debug\Publish\MySqlServiceSample.afpkg. Just after you will have to provide the application namespace and the key. You can follow deployment...
-
On of Services provided by AppFabric Application foundation is so called StateFul Service . This is is in fact WCF service with the ability persists and to replicate its state. For years we have been developing WCF based service. Did you ever ask yourself how to build the WCF service able to scale (in...
-
Long time ago I have described how to inject the message header in WCF message by using of Operation Context. After some time I also have posted how to do the same thing in Silverlight. Now in the time of AppFabric and Access Control Service there is a new requirement caused by REST design of some ACS...
-
Windows Azure AppFabric Access Control Service v2 provides a number of endpoints which wrap up many authentication, authorization and federation scenarios into a single platform. Stepping through all samples and reading of all specifications is pretty wired task. For this reason I tried to recap most...
-
Sometimes you might host typical WCF service side by side with WCF DataService in one application. As long you use single endpoint based on some security mechanism all will for fine. For example, assume there is a service MyService which is accessed by MyService.svc and configured like: < service...
-
When working with WCF you might get following exception: The HttpGetEnabled property of ServiceMetadataBehavior is set to true and the HttpGetUrl property is a relative address, but there is no http base address. Either supply an http base address or set HttpGetUrl to an absolute address. Note that there...
-
Imaging you have a WCF Web Service which works fine. Unfortunately it can happen that following error occurs when somebody else try to start the service: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken...
-
When working with AJAX web service you may notice that one service operation of some service (in this case Service1.svc ) works well, but at some machines following exception can be thrown: Server Error in '/MvcApplication1' Application. The resource cannot be found. Description: HTTP...
-
When working with XmlSerializer you might notice that you generated contract contains double definitions for some or all types. This is shown at two following pictures. As you can see at marked places it is obvious that double definition comes form DataContract serializer, although you just want to use...
-
The Workflow Foundation programming model introduces a Workflow Service as a way to build a reach and robust long running composite applications. This model does not allow one to access the host. Unfortunately, sometimes it is required to access the host. For example, if you need to know the file name...
-
When trying to create the service host instance of the WCF service like: ServiceHost svcHost = new ServiceHost (typeof(MyService)); svcHost.Open(); you might get following exception: Service 'UnitTests.SbbNetCoreTest+TestServiceCallback' has zero application (non-infrastructure) endpoints...
-
Some of you may know that windows provides by default Event Trace Session called “ EventLog-Microsoft-Windows-Application Server-Applications-Analytic ”. session. This session can be enabled by enabling of Analytic-Event log: Assuming that your service has following diagnostic configuration and...
-
When working with WCF in a bit more complex environment, you might run in following issue. Usually when you want to get metadata of the service you will navigate to service page and following appears: The link shown in the picture above brings you to the WSDL description of the service. Unfortunately...