Test your knowledge
1. You are developing a Silverlight 4 application. The application is hosted on www.myCompany.com. On the same domain, there is a WCF service running on www.myCompany.com/service. Your Silverlight application accesses the service just fine. A vendor has developed a Silverlight application that uses the service as well. Even though you have deployed a
clientaccesspolicy.xml
file, the vendor receives aSecurityException
while calling the service from his Silverlight application. Which of the following lines from the XML can cause this error?a.
<domain uri="8"/>
b.
<resource path="/" include-subpaths="true"/>
c.
<resource path="/" include-subpaths="false"/>
d.
<resource path="/service" include-subpaths="false"/>
2. You are developing a Silverlight application. You are passing an initialization parameter called
initKey
using the Silverlight'sobject
taginitparam
parameter. How would you retrieve it back in your Silverlight application?a. Inside the...