Windows App Certification Kit Error (Test Failed)
Hello, loving ZipApp but getting an error with the Windows App Certification Kit. Details are below. Any help would be great
Thank you,
Carl
Performance test
FAILED
Bytecode generation
Error Found: The bytecode generation test detected the following errors:
- File \\?\C:\Program Files\WindowsApps\59490CSK.MicrosoftinEducationBuzz_1.0.0.2_neutral__w3wxd3qb9p6ym\js\
appData.js has JavaScript syntax or other problems.
Impact if not fixed: As a performance optimization to accelerate JavaScript execution time, JavaScript files ending in the ".js" extension generate bytecode when the app is deployed. This optimization significantly improves start-up and ongoing execution times for JavaScript.
How to fix: You may need consider one or more of these steps to fix the issue:
- Ensure that event logging is enabled
- All JavaScript files are syntactically valid; otherwise exclude the respective files from the package
- Please note that you should uninstall all previous versions of the app before deploying
Otherwise exclude the respective files from the package.
Customer support service by UserEcho
Adding some more detail. Please help!
within the appData.js file, variables "AppID", "ApiKey", "Groups" are separated by their values with a ":". Although the app runs it fails the certification test. If I change the ":" to a ";" or another character, the app does not run.
In the appData.JS you only have to change the first three ":" to ";" and the last one. the ones that are wrong are underlined in red. This should probably be list as a bug as it happens for every app I create with zipapp
When I changed as 'Diarmuid Murphy' said an error occurs "An exception of type 'Newtonsoft.Json.JsonReaderException' occurred in Newtonsoft.Json.DLL but was not handled in user code"
I am getting the same error is there a work around or fix yet?
Thanks,
John
Can you post link to your appData.js or can you confirm whether the file's json structure is valid/invalid?
I have a fix for this. I'm putting it live tomorrow.
I encountered same windows certification error. I changed the colons to semicolons. It still had problems.
The solution is to rename the file 'appData.js' to 'appData.json' and update the file reference in 'provider.js' (line 167) from "/js/appData.js" to "/js/appData.json"
The solution is to rename the file 'appData.js' to 'appData.json' and update the file reference in 'provider.js' (line 167) from "/js/appData.js" to "/js/appData.json"