Steph,
The name of the config.xml is returned from the ASP.net webservice when a user logs in and that is then used by the index.mxml file to load the proper config.xml in the viewer. I have no time to walk anyone through the code or steps but the necessary code and changes to the viewer are available at this url:
http://gis.calhouncounty.org/devsummit2012
<identity impersonate="true" userName="yourusername" password="yourpassword"/>
Steph,
The first thing I would check is this url "http://servername/ArcGIS_Security2/Service.wsdl". I use a reverse proxy in my web server configuration so I create a Service.wsdl file manually and most asp.net web services do not create this file. See if changing to http://servername/ArcGIS_Security2/Service.asmx?wsdl helps with that error. Also in the web.config file of the web service make sure you changed this line to valid values:<identity impersonate="true" userName="yourusername" password="yourpassword"/>
Steph,
I can not spend a lot of time on IIS questions here or ASP.net web service configuration as that is not what this forum is for, but What user name you use for the web service is a internal IT question. In my case I use a specific user that was developed just for running web services. The web service should be set to use windows authentication and ASP.NET Impersonation.
Robert,
Wondering if this you know if the login code works with v3.0 Flexviewer? I Replaced localhost with server name and added folder to root making it an application, but get internal database error. I added a random user and password to the users.xml, but it does not work. Does it actually have to be a local user? We are on Windows Server 2012.
Derek
No, it doesn't need a Windows account at all. Are you sure the web server service account has read privileges for the users.xml file?