Question

I'm just started working with BLOB Storage on Azure and I'm trying to implement Image Uploads to BLOB Storage using this tutorial for Windows Phone 8: http://www.windowsazure.com/en-us/documentation/articles/mobile-services-windows-phone-upload-data-blob-storage/?fb=de-de

In step 6 of this tutorial there is a insert script for a table, which needs to be set, instead of the generic one. It starts with:

var azure = require('azure');
var qs = require('querystring');
var appSettings = require('mobileservice-config').appSettings;

However, when I simply copy this script into my table's insert script i always get the error "Could not find symbol 'require'", which is weird, because it should be an azure function. Searching the web hasn't brought me any result.

Ansy suggestions?

Thank you.

Was it helpful?

Solution

The "Could not find symbol 'require'" in the Azure portal script editor is just a bug in how that environment validates the script - it shouldn't affect the actual operation of the service itself. See Phillip Van Nortwick's reply in the Azure forums.

It's likely that your InvalidOperationException is coming from other error. Have you tried calling an api with thise require()s defined and otherwise empty code?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top