Brian - Friday, May 27, 2011 1:31 AM:
Hi All,
I trying to learn a bit about using Silverlight as a client for Innovator.
I have downloaded the sample application from the Projects page but get a Security Error when I run it.
<SOAP-ENV:Fault xmlns:af="http://www.aras.com/InnovatorFault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring></faultstring>
<detail>
<af:legacy_detail><![CDATA[System.Security.SecurityException: Security error.
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)]]></af:legacy_detail>
<af:exception message="" type="Aras.Server.Core.InnovatorServerException" />
</detail>
</SOAP-ENV:Fault>
I'm running on Windows 7 and have confirmed that the Server URI, database and password are correct.
Has someone else got this working and can provide some tips to help me keep my hair?
Thanks,
Brian.
essjay - Friday, January 27, 2012 12:32 PM:
Also having this problem. Did you solve it?
essjay - Friday, January 27, 2012 12:33 PM:
Did you solve it?
essjay - Friday, January 27, 2012 12:43 PM:
Hi. Did you solve this issue?
Brian - Sunday, January 29, 2012 6:09 AM:
Hi,
This is to do with the Website setup not the code in the example.
You need to add the files:
Clientaccesspolicy.xml with content like:
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
and
crossdomain.xml with content:
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
to the root of your website (probably c:inetpubwwwroot)
Then restart you web server.
cheers,
Brian.
essjay - Monday, January 30, 2012 5:21 AM:
Brilliant, thank you very much. What I did for anyone in the same boat.
- Created both files as mentioned above and save them into "c:inetpubwwwroot"
- Copied the "Debug" folder from the sample code, dropped it into "c:inetpubwwwroot" and renamed it "Aras"
- Ran the file localhost/.../Sample_Silverlight_ApplicationTestPage.html