New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silverlight has issues posting errors and getting project settings. #1

Closed
niemyjski opened this Issue Mar 10, 2015 · 2 comments

Comments

1 participant
@niemyjski
Member

niemyjski commented Mar 10, 2015

I noticed two issues with the latest client when targeting Silverlight. The first issue is a security exception is thrown when posting an error but doesn't happen when debugging (only in release mode). I was able to track down the following stack trace:

System.Security.SecurityException occurred
  Message=Security error.
  StackTrace:
          at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
          at System.Func`2.Invoke(T arg)
          at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise)
  InnerException: 

Next, noticed that there was an issue trying to GetSettings in the DefaultSubmissionClient. The server returns an OK result with the settings but the client errors out.

System.Net.WebException occurred
  Message=The remote server returned an error: NotFound.
  StackTrace:
       at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
  InnerException: 

@niemyjski niemyjski changed the title from Silverlight has issues getting project settings. to Silverlight has issues posting errors and getting project settings. Mar 10, 2015

@niemyjski

This comment has been minimized.

Member

niemyjski commented Mar 10, 2015

I've resolved the first issue by adding a clientaccesspolicy.xml file with the following settings

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from http-request-headers="*">
        <domain uri="http://*" />
        <domain uri="https://*" />
      </allow-from>
      <grant-to>
        <resource path="/" include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>
@niemyjski

This comment has been minimized.

Member

niemyjski commented Jan 12, 2016

I'm closing this as we support Silverlight and any issues you may be seeing are addressed in this issue.

@niemyjski niemyjski closed this Jan 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment