This is a fantasic blog by Christian Glessner which
may help many you. Christian was a speaker at the European SharePoint Conference in Berlin, so check out
what he learned :
Few weeks ago I and Hilton Giesenow prepared togheter a
SharePoint & Azure session for the TechEd Africa and the
European SharePoint conference. During the preparation we
discovered an issue running the Azure Compute Emulator on a
SharePoint box (Azure SDK 1.5 and 1.6). First it seemed that the
user profile service screwed up after you had started the emulator
for the first time, but further investigations had shown that many
service applications didn’t work properly anymore. The problem was,
that the emulator sets the IIS anonymous user account to the
application pool’s identity. Many thanks to Wictor Wilen for
telling us which IIS setting has been affected ( we owe you a
pint=>summit 2011 🙂
The SharePoint error after you have started the Azure Compute
Emulator for the first time: “Object reference not set to an
instance of an object”
Unexpected System.NullReferenceException: Object reference not
set to an instance of an object.
To fix this you have just to set the IIS anonymous user back to
IUSR. But unfortunately you have to do this every time after you
have run the emulator.
Open IIS Manager (inetmgr) and do the following steps.
Fix it with PowerShell
If you don’t like clicking like a monkey, you can fix it with
PS> import-module webadministration
-name userName -value “IUSR”
Hope this will save you time.