When the following line is called when starting the website from the VS2008 web server, I get "Invalid trust relationship between this workstation and the primary domain." an exception.
if (User.IsInRole("SomeRole"))
...
I disabled UAC and installed VS 2008, as well as a built-in web server to run as an administrator, and I also joined my box for the domain. This code works great when called from one of my Server 2003 servers in IIS, and it always worked fine in Vista.
Any ideas on what could be causing this?
EDIT:
I just tried running it in IIS 7.5 on my local computer and I get the same error. Running it on Windows XP in IIS 5.1 and running on the VS 2008 web server.
source
share