It seems that almost every time after beating my head against a problem for hours or days and I give in and post about the problem I'm having I appear to immediately find a solution to it myself soon after the posting. Now I'm not sure why but when I comment out the connectionstring entry in the app.config file and delete and recreate the sql connection in the WinApplication.vb (Design) view it now works. I have yet to get the web bit going but that is the painful process of making sure all the libraries are copied to the webservers bin directory (it's a shame this can't be more straight forward).
One of my original questions still remains and if DevExpress don't know the answer then I am surprised (though I do appreciate that this is not an XAF specific thing)....
When my XAF application connects to a sql database that is set to use Windows NT Authentification what permissions/user am I connecting to the database with - i.e. what do I need to give permissions to within my SQL database or should I just trust XAF to build the appropriate permissions on the database?
XAF Security model
Auth Standard Auth Active Directory
Do these just work internally for XAF and determine whether the user is prompted for a user ID & password - with the Active directory version taking the users windows login as the value to lookup in XAFs user table?
Does this work in the same way for both Windows and Web XAF applications?
XAF Windows - when using Windows NT Authentification (on the database) does SQL server only allow (windows) users that have permissions set on the database to use the application since XAF will get read permission exceptions on the database otherwise?
XAF Web - with Windows NT Authentification (on the database) because the user is comming in remotely vai a website will XAF be accessing the database effectively as the default anonymous user setup on teh webserver and hence THIS user needs permissions to be assigned to the SQL database? If not how is the user authentification happening and what user needs access to the database objects.