I’m working on a deployment solution for my project. I want to upload files to a WCF service. This can be achieved with a streaming binding. On the internet there are many examples and I used some to get to this result:
<system.serviceModel> <services> <service name = "Runtime.Setup.ServiceContract.SetupService"> <endpoint binding = "basicHttpBinding" bindingConfiguration = "streamingHttpBinding" contract = "Runtime.Deploy.IServiceContract.IDeployService" /> </service> </services> <bindings> <basicHttpBinding> <binding name = "streamingHttpBinding" transferMode = "Streamed" maxBufferSize = "65536" maxReceivedMessageSize = "67108864" > <security mode = "None"> <transport clientCredentialType = "None"/> </security> </binding> </basicHttpBinding> </bindings> </system.serviceModel> <system.web> <httpRuntime maxRequestLength = "67108864"/> </system.web>
The problem is I’m using the Development Fabric in Azure SDK v1.2 and that doesn’t support streaming over HTTP. The development IIS of Visual Studio is used out-of-the-box. I’m trying to make it use my IIS 7.
update: there was an error in my configuration which prevented the creation of a streaming endpoint. After correcting this the uploading of files to my WCF service works in the Development Fabric.