Answered by:
<ApplicationContentUriRules> not persisted in package.appxmanifest and AppxManifest.xml

Question
-
Hello,
I am using Visual Studio 2013 Update 2 to create a Windows Store App using the Javascript template.
I used the Manifest Designer to update the package.appxmanifest file and add https://www.google.com to the list of ContentUris.
<ApplicationContentUriRules>
<Rule Match="https://www.google.com" Type="include" />
</ApplicationContentUriRules>On saving this file and Rebuilding the project (using VS2013), I noticed that the package.appxmanifest file gets modified and the above section is removed. Furthermore, the generated AppxManifest.xml does not include the above section.
Is this a known issue / bug? Any workarounds ?
Thanks in advance.
Ashwin
- Edited by ashwinde Thursday, July 31, 2014 9:01 PM
Thursday, July 31, 2014 9:00 PM
Answers
-
Hi,
We can’t get this issue on other simple Windows 8 javascript app with VS2013 and VS2013 Update 2. This issue is only on your specific application.
The reason of this issue is on the script in ApplyPlatformConfig.ps1 file, it removes existing rules from manifest, reference the following:
Deleting the code snippet will resolve this issue.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Amanda Zhu Friday, August 8, 2014 9:36 AM
- Marked as answer by ashwinde Monday, August 11, 2014 10:58 AM
Thursday, August 7, 2014 3:04 AM
All replies
-
Hi,
I reproduced your scenario but I did not get your issue, the section is still in the package.appxmanifest and AppxManifest.xml files.
Please add https://www.google.com to the list of ContentUris again, press Ctrl+S on the Manifest Designer, close the Manifest Designer and then build the application to check the result.
If the section still will be removed, please reset your VS settings through Tools->Import and Export settings->Reset all settings->…. And reset user data using devenv.exe /resetuserdata command line.
If the issue still exists, please run VS under safe mode using devenv.exe /safemode(http://msdn.microsoft.com/en-us/library/ms241278(v=vs.120).aspx ) to avoid the impact from some third-party VSPackages.
If the issue will disappear under safe mode, you need to disable those third-party VSPackages from Visual Studio Tools->Extensions and Updates.
If no help, please repair VS as a try.
Thanks,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Edited by Amanda Zhu Friday, August 1, 2014 7:49 AM edit
Friday, August 1, 2014 7:49 AM -
Crystal,
Thanks for your reply.
I found out that this problem occurs only with Windows 8 javascript apps that have been "retargetted to Windows8.1" within VS.
A newly created Windows8.1 javascript app does not exhibit this problem.
Thanks,
Ashwin
Friday, August 1, 2014 7:51 PM -
Hi ashwinde,
As I know there has something change with ApplicationContentUriRules, take a look at the documentation: Windows 8.1 allows only https URIs, not http URIs.
However I cannot reproduce the issue, I create a win8 project with ApplicationContentUriRules as you wrote in the first post:
<ApplicationContentUriRules> <Rule Match="https://www.google.com" Type="include" /> </ApplicationContentUriRules>
And I migrate to win8.1 by Visual Studio 2013, I can still see the thing exist on the appxmanifest. May I know if the Rule you create with Win8 app contains some none HTTPS links?
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.Monday, August 4, 2014 2:32 AM -
Hi Ashawin,
As Jamles said, we did not get your issue with a Windows 8 javascript app on my side. Windows 8.1 only allows https URIs in Rule, so whether the rule you created contains none https links?
After you retargeted the windows 8 app to windows 8.1, please check the rule first to make sure the rule in the application still is like <Rule Match="https://www.google.com" Type="include" /> and then build the application to check the result.
Also you can try those suggestions in my previous reply, maybe they can help.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Wednesday, August 6, 2014 1:56 AM -
Hi Crystal & James,
James -
1) Make sure that you have updated the ContentURI in the manifest.
2) *Rebuild* the app after you retarget it. You will notice that the rule gets removed from the package.appxmanifest file.
@Crystal - I am using https urls only.
I have uploaded a project here - http://1drv.ms/1kIbjux
== My environment information ===
Microsoft Visual Studio Professional 2013
Version 12.0.30626.00 Update 3 RC
Microsoft .NET Framework
Version 4.5.51641
Installed Version: Professional
LightSwitch for Visual Studio 2013 06177-004-0444002-02699
Microsoft LightSwitch for Visual Studio 2013
Team Explorer for Visual Studio 2013 06177-004-0444002-02699
Microsoft Team Explorer for Visual Studio 2013
Visual Basic 2013 06177-004-0444002-02699
Microsoft Visual Basic 2013
Visual C# 2013 06177-004-0444002-02699
Microsoft Visual C# 2013
Visual C++ 2013 06177-004-0444002-02699
Microsoft Visual C++ 2013
Visual F# 2013 06177-004-0444002-02699
Microsoft Visual F# 2013
Visual Studio 2013 Code Analysis Spell Checker 06177-004-0444002-02699
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Windows Phone SDK 8.0 - ENU 06177-004-0444002-02699
Windows Phone SDK 8.0 - ENU
Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 12.3.50624.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure
ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.20609.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.1
Provides common services for use by Azure Mobile Services and Windows Azure Tools.
Microsoft Advertising SDK for Windows Phone
Microsoft Advertising SDK for Windows Phone
Build
Microsoft Team Foundation Server 2013 Power Tools 12.0
Power Tools that extend the Team Foundation Server integration with Visual Studio.
Microsoft Visual Studio Process Editor 1.0
Process Editor for Microsoft Visual Studio Team Foundation Server
NuGet Package Manager 2.8.50313.46
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Office Developer Tools for Visual Studio 2013 ENU 12.0.30619
Microsoft Office Developer Tools for Visual Studio 2013 ENU
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 12.0.30919.1
Microsoft SQL Server Data Tools
Windows Azure Mobile Services Tools 1.1
Windows Azure Mobile Services Tools
Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.
Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
- Edited by ashwinde Wednesday, August 6, 2014 6:34 PM
Wednesday, August 6, 2014 6:11 PM -
Hi,
We can’t get this issue on other simple Windows 8 javascript app with VS2013 and VS2013 Update 2. This issue is only on your specific application.
The reason of this issue is on the script in ApplyPlatformConfig.ps1 file, it removes existing rules from manifest, reference the following:
Deleting the code snippet will resolve this issue.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Amanda Zhu Friday, August 8, 2014 9:36 AM
- Marked as answer by ashwinde Monday, August 11, 2014 10:58 AM
Thursday, August 7, 2014 3:04 AM