After consulting with my brains trust (thanks Damo), I tried one last thing. I manually copied the folders IISExpress had created in the c:\temp\IISExpress folder back into my MyDocuments\IISExpress folder, and VS seems happy. I’m calling this one closed for now.
This is only half solved. It looks like VS still insists on launching IISExpress with a specific command line switch pointing at the old config location.
I installed a new machine the other day and on loading a VS project that uses IISExpress, I got the following error:
Filename: \\?\UNC\[our My Docs Server]\MyDocs1\acoat\My Documents\IISExpress\config\applicationHost.config Line number: 1 Error: Configuration file is not well-formed XML
Turns out that IISExpress is writing config information to my My Documents folder, but because I’ve got folder redirection turned on, this is a UNC path, not a local path. It looks like an applicationHost.config file is created, but it’s 0 bytes and the IISExpress process doesn’t have permission to write to it.
Fortunately, from IISExpress 8 onwards, there’s a registry key you can setr to point IISExpress at another home folder.
Thanks to this post on StackOverflow, I was pointed to the IIS 8.0 Express Readme FIle, which, in the New Features section says:
Changing the User Home Directory
IIS 8.0 Express supports changing the user's home directory, which is mapped to the %IIS_USER_HOME% variable in configuration. By default this path is located at %UserProfile%\Documents\IISExpress, but users can change this by setting a CustomUserHome registry property in HKCU\Software\Microsoft\IISExpress, or by specifying the "/userhome" parameter when launching iisexpress.exe.
Changing the User Home Directory
So, I fired up RegEdit, added a new IISExpress key under HKCU\Software\Microsoft and then added a string key CustomUserHome set to "c:\Temp\IISExpress" (a folder I’d created manually) and IISExpress starts in the expected manner and creates all of its config, logs and tracelogfiles folders (and their accompanying files) there and starts successfully.
Michael Kordahi and I started the FranklySpeaking podcast back in November 2009. We recorded about 75 episodes up to the middle of 2011 and then went quiet with the exception of 2 or 3 false starts (there was other shiny stuff to play with). A couple of months ago we restarted and we’re having a great time.
The new (hosted on Windows Azure Web Sites) site is at http://franklyspeakingpodcast.com, and there are links from there to subscribe with your favourite podcast client.
By the way, we’ve also shared the audio files from the entire back catalogue on our SkyDrive.
The updated Windows Phone 8 Training Kit is live!
This kit contains 20 Hands-On Labs and a set of 6 presentations that can be used to drive code camps or for general training purposes.
These are great for getting yourself up to speed with some comprehensive training, and they’re also excellent if you’re looking to give a presentation on Windows Phone.
Don’t forget that there are nearly 100 Training Kits on all kinds of technologies available for free from the Microsoft Download Centre
Grab some today!
Thinking about writing a game for Windows Phone? Come along and learn from some of the best in the business. Featuring three strands from casual games you can write and publish in a couple of hours up to hard-core 3D games with the unity framework, this DevCamp has something for everyone. Get your game face on.
Register at http://wp.msdeveloper.com.au/pages/EventDetail.aspx?eid=c0433d8b-4cea-483a-a44f-719a6863358a
The three strands will be:
The sessions will probably be held at Microsoft HQ in North Ryde, and will run from 9am to 5pm each day.
Places are limited for this free event so Register Now!
I had a great time doing a talk at Ignite Sydney this year. My title was “Statistics - Learn it or Lose”
Some other great talks from the night (not all safe for work):
“You’re probably not an outlier”
Which I liked so much that I had a T-shirt made of it.
Dave’s just blogged about some excellent Windows Phone 8 training in Adelaide at the beginning of May. If you’re in the area, you should go.