[ 
https://issues.apache.org/jira/browse/CB-8148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266076#comment-14266076
 ] 

Eser Esen edited comment on CB-8148 at 1/6/15 1:19 PM:
-------------------------------------------------------

i guess this isolated exception happens only on emulators, but im not sure.

im getting SystemException as follows:

A first chance exception of type 'System.SystemException' occurred in 
Microsoft.Phone.Interop.ni.dll
Additional information: An unknown error has occurred. Error: 80020101

I get no deviceReady event because of this. When i break on this exception, it 
highlights the following code from CordovaView.xaml.cs:

string nativeReady = 
"(function(){cordova.require('cordova/channel').onNativeReady.fire()})();";
try {
  CordovaBrowser.InvokeScript("eval", new string[] { nativeReady });
} catch (Exception) {
  Debug.WriteLine("Error calling js to fire nativeReady event. Did you include 
cordova.js in your html script tag?");
}


was (Author: eesen):
i guess this isolated exception happens only on emulators, but im not sure.

im getting SystemException as follows:

A first chance exception of type 'System.SystemException' occurred in 
Microsoft.Phone.Interop.ni.dll
Additional information: An unknown error has occurred. Error: 80020101

I get no deviceReady event because of this. When i break on this exception, it 
highlights the following code from CordovaView.xaml.cs:

string nativeReady = 
"(function(){cordova.require('cordova/channel').onNativeReady.fire()})();";
try {
  CordovaBrowser.InvokeScript("eval", new string[] { nativeReady });
} catch (Exception) {
  Debug.WriteLine("Error calling js to fire nativeReady event. Did you include 
cordova.js in your html script tag?");
}

> No deviceReady on WP8 in Emulator because of SystemException
> ------------------------------------------------------------
>
>                 Key: CB-8148
>                 URL: https://issues.apache.org/jira/browse/CB-8148
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 4.0.0
>         Environment: VisualStudioExpress2013, Windows 8.1 Enterprise
>            Reporter: Eser Esen
>            Assignee: Jesse MacFadyen
>            Priority: Critical
>              Labels: wp8
>
> I successfully created and added wp8 project using cordova CLI.
> Running the app also works, it shows the HTML from my index.html file but 
> then ends up with following below in console.
> On my index.html im trying to setup filesystem opening the 
> cordova.file.dataDirectory using resolveLocalFileSystemURL. But this happens 
> only within deviceReady function, which is never called, because i put a 
> console.log there and i dont see any of my logs in the output window in 
> Visual Studio Express 2013. Whats wrong here?
> ---------------------------------------------------
> Adding feature.value=Device
> Adding feature.value=DebugConsole
> Adding feature.value=File
> Adding feature.value=FileTransfer
> Adding feature.value=Globalization
> Adding feature.value=InAppBrowser
> 'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 
> 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built 
> without symbols.
> A first chance exception of type 
> 'System.IO.IsolatedStorage.IsolatedStorageException' occurred in 
> mscorlib.ni.dll
> Updating IsolatedStorage for APP:DeviceID :: 
> 6eb37ee1-d188-40ff-afb0-78504f5158b4
> CordovaBrowser_LoadCompleted
> Apache Cordova native platform version 3.7.0 is starting
> A first chance exception of type 'System.SystemException' occurred in 
> Microsoft.Phone.Interop.ni.dll
> Error calling js to fire nativeReady event. Did you include cordova.js in 
> your html script tag?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to