Saturday, December 12, 2009
Thursday, December 10, 2009
Today I faced an issue in a Silverlight web app.
While accessing a Web-service from Silverlight that was within the same Solution in the VS.
The error i got says like :
‘http://localhost:4522/MyService’. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.
By placing a Cross-Domain policy file at the root of the web app solved my problem.
I found a suitable solution that describes about the problem in details and a complete solution.
found the solution here:http://wallism.wordpress.com/tag/cross-domain/
The crossdomain.xml looks like this:
During last couple of days I have started to work on Silverlight. From last year onwards many times I tried to start on Silverlight but could not due to time constraint. But I am enjoying it now.
Silverlight is interesting. Though Visual Studio has not up till now full support for designing Silverlight apps and you have to go back and forth to Expression Studio and VS but I liked it.
Today almost all of the work that Silverliht can do can also be done using Java Script and Ajax but there are few advantages of Silverlight, like its platform independent, cross-browser full support, consumes less resources on the browser side. That means it loads fast.
I have seen few web application completely built on Silverlight. No other things no AJAX . only html and Silverlight.
For developing Silverlight apps you only need to know WPF, its basic Class libraries and any of the dot net Compatible language - like C# or VB.net.
In the coming days I will share my learning curve and exploration in Silvetlight.
Enjoy programing !!!