Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to add a push notification in Visual Studio 2013 RC


Symptoms

When you try to add an Azure push notification to a JavaScript Windows Store project in Microsoft Visual Studio 2013 Release Candidate (RC), you receive the following error message:
Visual Studio was unable to add the references to the start page because no reference to WinJS was found. Please add the following script references manually:

<script src="/js/MobileServices.js"></script>

<script src="/services/mobile services/MyServiceInstance/service.js"></script>

<script src="/services/mobile services/MyServiceInstance/push.register.js"></script>
Note In this message, "MyServiceInstance" represents the name of your Azure Mobile Services instance.

↑ Back to the top


Resolution

To resolve the problem, manually add the following script references to Default.html:
<script src="/js/MobileServices.js"></script>
<script src="/services/mobile services/MyServiceInstance/service.js"></script>
<script src="/services/mobile services/MyServiceInstance/push.register.js"></script>
Note In this script, "MyServiceInstance" represents the name of your Azure Mobile Services instance.

↑ Back to the top


Keywords: kbsurveynew, kbtshoot, kbexpertiseadvanced, kb

↑ Back to the top

Article Info
Article ID : 2887892
Revision : 1
Created on : 1/7/2017
Published on : 9/9/2013
Exists online : False
Views : 151