http status code 404 - Windows Azure The remote server returned an error: (404) Not Found -


i'm following this tutorial table storage service. i'm using emulator version of tutorial can find @ point 5 of paragraph "configuring connection string when using cloud services".

this code pasted in 'about' actionresult:

public actionresult about() {     // retrieve storage account connection string.    cloudstorageaccount storageaccount = cloudstorageaccount.parse(    cloudconfigurationmanager.getsetting("storageconnectionstring"));     // create table client.    cloudtableclient tableclient = storageaccount.createcloudtableclient();     // create cloudtable object represents "people" table.        cloudtable table = tableclient.gettablereference("people");     // create new customer entity.    customerentity customer1 = new customerentity("harp", "walter");    customer1.email = "walter@contoso.com";    customer1.phonenumber = "425-555-0101";     // create tableoperation inserts customer entity.    tableoperation insertoperation = tableoperation.insert(customer1);     // execute insert operation.    table.execute(insertoperation);     return view();       } 

at line table.execute(insertoperation); following error message:

storageexception unhandled user code remote server returned error: (404) not found.

the project template used "windows azure cloud service". next window popped up, added "asp.net mvc 4 web role".

anyone idea causing error?

does people table exists in storage area? (you can check azure management portal)


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -