-
August 18th, 2009, 05:00 PM
#1
System.Security.SecurityException
Hi when i try to run this example/demo
I get a System.Security.SecurityException, The LightStreamer server and the client is running on the same local computer
Please advise
Session initiation failed: Connection to Server failed Lightstreamer.DotNet.Client.PushConnException: Security exception ---> System.Net.WebException: Security exception ---> System.Security.SecurityException ---> System.Security.SecurityException: Security error. at System.Net.Browser.BrowserHttpWebRequest.InternalE ndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__Disp layClass5.<EndGetResponse>b__4(Object sendState) at System.Net.Browser.AsyncHelper.<>c__DisplayClass2. <BeginOnUI>b__0(Object sendState) --- End of inner exception stack trace --- at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPos tCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetRes ponse(IAsyncResult asyncResult) at Lightstreamer.DotNet.Client.HttpProvider.ReadCallb ack(IAsyncResult asynchronousResult) --- End of inner exception stack trace --- at Lightstreamer.DotNet.Client.HttpProvider.DoHTTP(Bo olean isPost) at Lightstreamer.DotNet.Client.HttpProvider.DoHTTP(ID ictionary parameters, Boolean isPost) at Lightstreamer.DotNet.Client.PushServerTranslator.C allSession() at Lightstreamer.DotNet.Client.PushServerProxy.Connec tForSession() --- End of inner exception stack trace --- at Lightstreamer.DotNet.Client.PushServerProxy.Connec tForSession() at Lightstreamer.DotNet.Client.ServerManager..ctor(Co nnectionInfo info, IConnectionListener listener, IServerListener asyncListener) at Lightstreamer.DotNet.Client.LSClient.OpenConnectio n(ConnectionInfo info, IConnectionListener listener) at Lightstreamer.DotNet.Client.LSClient.OpenConnectio n(ConnectionInfo info, IConnectionListener listener) at TestApplication.MainPage.Connect()
-
August 19th, 2009, 09:43 AM
#2
Is your xap file requested by the browser to an external Web Server?
In that case, the configuration of a "clientaccesspolicy.xml" file on Lightstreamer Server may still be needed.
See <silverlight_accesspolicy_enabled> in the example configuration file for the 3.5.1 Server package.
-
August 19th, 2009, 07:49 PM
#3
i have the ClientAccessPolicy.xml and CrossDomain.xml in my C:\Lightstreamer\bin\windows and C:\Lightstreamer\conf dir , both these file have have been configured to access all
The silverlight_accesspolicy_enabled is set to Y
and what should be the silverlight_accesspolicy_path set to ?
Are my xml in the right path ?
As stated my Lightstreamer and my client run on the same computer
Please advise
--- ClientAccessPolicy.xml---
<?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>
-----CrossDomain.xml-----
<?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>
-
August 20th, 2009, 10:14 AM
#4
To make sure that it is a configuration issue,
try asking for /clientaccesspolicy.xml to your Lightstreamer Server and see if you get your file
(for instance, http://push.lightstreamer.com/clientaccesspolicy.xml yields the one on our demo site).
Similar Threads
-
By churrusco in forum General
Replies: 15
Last Post: April 20th, 2010, 08:46 AM
-
By ivailo in forum Client SDKs
Replies: 2
Last Post: December 1st, 2009, 12:07 PM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: July 30th, 2009, 09:09 AM
-
By paul.syson@internova.co.u in forum Adapter SDKs
Replies: 6
Last Post: March 24th, 2009, 09:13 AM
-
By yen_praveen in forum General
Replies: 1
Last Post: February 1st, 2008, 01:52 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:57 PM.
Bookmarks