简体   繁体   中英

Problem with WCF-Service between Silverlight and Azure Cloud WebRole

I want to use a Silverlight application in a cloud on Azure. The communication between the Silverlight application and the WebRole is a WCF-Service with Basic-HTTP-Binding. My problem is, that the communication doesn't work. I think the endpoint-address is not correct, but I'm not sure.

Can someone help me?

Have you tried using Fiddler that will at least tell you if the end point is correct. It should also help if there are any permissions issues.

I found these samples cited by the Silverlight Web Services team blog . The Known Issues Wiki is also very helpful. These examples use a binary HTTP binding instead of BasicHttpBinding but they get the job done.

If you are running Vista, like I am, You may need to register the WCF MIME types for IIS 7. You can do this be running a command prompt in elevated mode and executing this command:

C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe -i

There is an issue with linking to Webservices in Azure. I would check the endpoint in the Silverlight application and make sure it is the same as the port used in your Azure application.

I came across the same issue when working through the Azure Labs and rewrote Excercise 3 (using WCF) so that it would work - that is now available on CodeProject ( http://www.codeproject.com/articles/34612/Getting-WCF-to-work-with-Azure.aspx ).

I based that on a posting from David Burela's House-o-blog and his description of the problem can be found on his blog.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM