Answered by:
Microsoft Visual Studio Express 2012 RC for Windows 8 - bing access error

Question
-
When I tried using the sample application for Windows 8 using Java Script
I am getting the following error
Unhandled exception at line 20, column 592 in http://www.bing.com/
0x800a0046 - JavaScript runtime error: Permission denied
Tuesday, July 3, 2012 3:13 PM
Answers
-
You can direct questions about the book in that blog page. Sample code is available there too.
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, July 3, 2012 6:45 PM
- Marked as answer by rajaramcomputers Wednesday, July 4, 2012 11:15 AM
Tuesday, July 3, 2012 6:45 PMModerator -
Hi,
I am not familiar with that book. But if you want to know how to make simple web requests in a JavaScript application, you can use WinJS.xhr. I would like to suggest you to check http://msdn.microsoft.com/en-us/library/windows/apps/br229787.aspx for a sample. Also please make sure the Http Client permission is requested in the manifest file (by default it is requested, but please check if you’ve unchecked the checkbox).
In addition, for the book specific issue, as pointed out by jpsanders, you can also contact the book author for help.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework- Marked as answer by rajaramcomputers Wednesday, July 4, 2012 11:15 AM
Wednesday, July 4, 2012 10:35 AMModerator
All replies
-
Which sample application are you referring to?
Dave Paquette @Dave_Paquette www.davepaquette.com
Tuesday, July 3, 2012 3:17 PM -
Code from the
In chapter 3 - ContentUri
Error at the following line of code.
if
(n.parent.location.hostname==_w.location.hostname)return;n=n.parent,t++
Tuesday, July 3, 2012 3:39 PM -
You can direct questions about the book in that blog page. Sample code is available there too.
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, July 3, 2012 6:45 PM
- Marked as answer by rajaramcomputers Wednesday, July 4, 2012 11:15 AM
Tuesday, July 3, 2012 6:45 PMModerator -
Hi,
I am not familiar with that book. But if you want to know how to make simple web requests in a JavaScript application, you can use WinJS.xhr. I would like to suggest you to check http://msdn.microsoft.com/en-us/library/windows/apps/br229787.aspx for a sample. Also please make sure the Http Client permission is requested in the manifest file (by default it is requested, but please check if you’ve unchecked the checkbox).
In addition, for the book specific issue, as pointed out by jpsanders, you can also contact the book author for help.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework- Marked as answer by rajaramcomputers Wednesday, July 4, 2012 11:15 AM
Wednesday, July 4, 2012 10:35 AMModerator