XBAP - System.Net.WebPermission Issues RRS feed

  • Question

  • I have created an XBAP application that acceses a web service to retrieve data. I have published the app and service to the same server. When I view the app (in a browser) from my development machine everything works fine. But when I view the app from any other machine I get a request for System.Net.WebPermission failed exception.

    Any ideas?
    Wednesday, October 22, 2008 7:28 AM


  • OK, I've discovered what to do to make it work. But I don't understand why.

    It seems that if I increase the "maxBufferSize" and "maxReceivedMessageSize" in the app.config file of the xbap (which is needed as I am transfering alot of data), then the System.Net.WebPermission request fails.

    Why does it not fail if I run it on my development machine?

    Why is there not a more informative error message, espacially as increasing these numbers is mentioned as a solution to being able to transfer more data?
    Wednesday, October 22, 2008 8:58 AM