Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Use of HtmlPage methods in LicenseManager crashes when running out of browser
Avatar
sbogartz #1
Member since Apr 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Problems with Out of Browser
I am trying to do a proof of concept of a Silverlight XMPP client that can run out of browser (I need to get the proof of concept up before I can make a case for purchasing the SDK).  When I try to open the XmppStream, I am getting a 'Dom/Scripting Bridge is disabled' exception which is thrown from the LicenseManager.  Specifically it is thrown when the LicenseManager tries to access the HtmlPage (  string originalString = HtmlPage.get_Document().get_DocumentUri().OriginalString) .  Is there a version of Matrix for Silverlight that supports out of browser application execution?  If not, is there some way to get past this in order to complete my proof of concept ?
Scott Bogartz
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please contact me directly by email. I can send you a 30 days demo license for your proof of concept.

Alex
Avatar
Alex #3
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Have you tried to run the example apps out of the browser?
They work fine for me without a license key. I get no exception.

Alex
Avatar
sbogartz #4
Member since Apr 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: I get the following exception when trying to run out of browser
{System.InvalidOperationException: The DOM/scripting bridge is disabled.
   at System.Windows.Browser.HtmlPage.VerifyThreadAndEnabled()
   at System.Windows.Browser.HtmlPage.get_Document()
   at Matrix.License.LicenseManager.�()
   at Matrix.License.LicenseManager.�()
   at Matrix.XmppStream.Open()
   at Matrix.Xmpp.Client.XmppClient.Open()
   at SilverLightClient.Roster.Connect()
   at SilverLightClient.Roster.Login_Click(Object sender, RoutedEventArgs e)
   at SilverLightClient.LoginControl.cmdLogin_Click(Object sender, RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)}
Scott Bogartz
Avatar
Alex #5
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I found the problem. I will upload a new dll in some minutes.

Alex
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
new dll is uploaded to: http://www.ag-software.net/downloads.html

Alex
Avatar
sbogartz #7
Member since Apr 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Works great.  Thanks.
Scott Bogartz
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: