Note that there are some explanatory texts on larger screens.

plurals
  1. PO'System.UriFormatException' while using InAppBrowser Plugin in Windows Phone 7
    primarykey
    data
    text
    <p>I am trying to open an URL which will initiate a download of file from server in Windows Phone 7 PhoneGap app.</p> <p>I have enabled InAppBrowser plugin in config.xml as follows and also added the relevant code in the server side like (I want the URL to be opened in system browser)</p> <p>var ref = window.open('<a href="http://www.xyz.com/download.aspx" rel="nofollow">http://www.xyz.com/download.aspx</a>', '_system');</p> <p>But when I tried to open this it throws the following exception (from output window)</p> <p>A first chance exception of type 'System.UriFormatException' occurred in System.dll</p> <p>Error:"Syntax error, unrecognized expression: [data-role='footer']#sfdmfdOptionsNavbar li a# file:<a href="http://www.xyz.com/js/jquery/SmartphoneJquery/jquery-2.0.0.js" rel="nofollow">http://www.xyz.com/js/jquery/SmartphoneJquery/jquery-2.0.0.js</a> Line:1612"</p> <p>The thread '' (0xfc108e2) has exited with code 0 (0x0).</p> <p>A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll</p> <p>ERROR: Exception in ProcessCommand :: TargetInvocationException</p> <p>ERROR: failed to InvokeMethodNamed :: open on Object :: InAppBrowser</p> <p>The thread '' (0xaa5031a) has exited with code 0 (0x0). AppClosing</p> <p>Note: I have changed the original ip to xyz.com for illustration purpose. The original ip is valid and working fine locally in my environment. </p> <p>Following is the log from the call stack</p> <blockquote> <p>System.dll!System.Uri.CreateThis(string uri, bool dontEscape, System.UriKind uriKind) + 0xc4 bytes<br> System.dll!System.Uri.Uri(string uriString, System.UriKind uriKind) + 0x1d bytes<br> WPCordovaClassLib.dll!WPCordovaClassLib.Cordova.Commands.InAppBrowser.ShowSystemBrowser(string url) + 0xe bytes WPCordovaClassLib.dll!WPCordovaClassLib.Cordova.Commands.InAppBrowser.open(string options) + 0x53 bytes mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo rtmi, object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object parameters, System.Globalization.CultureInfo culture, bool isBinderDefault, System.Reflection.Assembly caller, bool verifyAccess, ref System.Threading.StackCrawlMark stackMark)<br> mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture, ref System.Threading.StackCrawlMark stackMark) + 0x168 bytes mscorlib.dll!System.Reflection.MethodBase.Invoke(object obj, object[] parameters) + 0xa bytes<br> WPCordovaClassLib.dll!WPCordovaClassLib.Cordova.Commands.BaseCommand.InvokeMethodNamed(string methodName, object[] args) + 0x13 bytes<br> WPCordovaClassLib.dll!WPCordovaClassLib.Cordova.NativeExecution.ProcessCommand.AnonymousMethod__2(object func) + 0x31 bytes mscorlib.dll!System.Threading.ThreadHelper.ThreadStartHelper(System.Threading.ThreadHelper t) + 0x34 bytes<br> mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0xb bytes<br> mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x63 bytes<br> mscorlib.dll!System.Threading.ThreadHelper.ThreadStartHelper() + 0x2a bytes </p> </blockquote> <p>Please let me know what is going wrong.</p> <p>Note: The same URL works fine in a Windows Phone 7 IE browser.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload