DeploymentCatalog security error

Jan 31, 2011 at 7:33 PM

Hi all ,

I'm trying to use the DeploymentCatalog to load my service implementations by MEF. I have the implementation in a single xap. when I use the following code to download it , every thing is ok :

var catalog = new DeploymentCatalog("MyXap.xap");


I put my xap on a remote server , say on http://ip:90/Myxap.xap, when I write the same code but with the uri , it throws a deployment exception:

var catalog = new DeploymentCatalog(new Uri("http://ip:90/MyXap.xap",UriKind.Absolute));



Any help .

Thanks in advance ...


Feb 1, 2011 at 2:40 AM

You forgot to include the exception message.

Feb 1, 2011 at 6:27 AM

Hi ,

Here is it :

The exception is , security exception .

Exception message : Security error.

Stack trace :

at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.OpenReadAsyncCallback(IAsyncResult result)