Using Azure Mobile Services from a Portable Class Library for both Windows Phone 8 and Windows 8 App from a single code source.


i've attempted create pcl (portable class library) handle data retrieval, saving, , processing.  in essence, have put viewmodel in separate project and have referenced in both phone 8 app , windows 8 app. 

phone 8 app working getting error in windows 8 app "ioexception - specified registry key not exist.

i able create new project azure mobile services site , works must have need.

this code in viewmodel (pcl) and not error out if triggered phone 8 app.


ed

interestingly, update 3 did not fix somehow got working.  seems have order in things added solution or being built. 

my "problem" solution had 4 projects, pcl, unittests, win8, , winphone8 projects.  keep in mind started phone project, created pcl , moved viewmodel components in , disabled in phone.  added existing win8 project (a basic helloworld app) , wired draw data pcl.  move between projects, setting each startup project.

first clue, found if built , ran win8 app (without debugger) worked. if ran using debugger if failed.  (articles point registry entry). http://browse.feedreader.com/c/alex_on_asp_net/409237229

i found if i unloaded other projects in solution and ran win8 debugging still didn't work.

i closed solution , opened win8 project alone (it has references pointing @ pcl) did not include either phone or pcl in solution, worked debugger.

i added phone project in new solution , both projects work in same solution.  don't recall think added pcl.

one thing noticed in "problem solution", if set startup project win8, when debugged , ran, emulator popup , show activity.

in working solutions, i'm seeing nuget activity unloading / loading each time switch phone project win8 project.

in case, i'm reporting did , plan contact microsoft support people on next few days , share my code if want deeper...  if helps others great.   i'm still not sure issue move on when works :}


ed



Microsoft Azure  >  Azure Mobile Apps



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to send non-standard Content-Type header ?