Are you using Web Application Projects? The Profile was compiled on the fly
for the Web Site Projects, but because the web application projects don't do
dynamic compilation, something different needs to be done. You'll need to
generate a strongly typed class to represent the profile. Luckily, there's
an add-in to VS to handle this for web application projects. You can get the
add-in at: http://www.codeplex.com/WebProfile

Signature
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
> Am i missing somthing simple?
> I can't access any of the profile names in my code behind i.e;
[quoted text clipped - 47 lines]
>
> Any ideas - its been a long day!!
James Page - 09 Sep 2007 12:54 GMT
Thanks Mark that works a treat.
Yet another Microsoft "one of those things". I wonder if they will overcome
this in VS 2008??
Regards
James
James Page - 09 Sep 2007 12:56 GMT
PS Do you know of any other useful add-ins for VS2005?
Mark Fitzpatrick - 09 Sep 2007 18:52 GMT
There's the visual studio power toys at:
http://msdn2.microsoft.com/en-us/vstudio/aa718340.aspx
There's a book called "Windows Developer Power Tools" by O'Reilly that has a
lot of awesome utilities for doing windows development as well as tools for
use with VS.

Signature
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
> PS Do you know of any other useful add-ins for VS2005?