I have setup dnn 4.9 locally on my pc running win xp pro sp3. It works fine and I am using the dnn 4.9 starter kit which installs the local app_data\database.mdf file. This setup is what I am using to develop dnn modules.
When I use codesmith to generate my dataprovider, sqldataprovider, controller, and info classes, it removes the aspnet local account completely from having access to the database.mdf file. It instead adds the sqlexpress local user account in its place.
I understand that this is necessary so codesmith can attach the database.mdf file and get at the tables, however, this then makes my dnn local portal not work since the aspnet local user account must have full privileges on the database.mdf file and it has been removed.
So, I run my codesmith templates, then manually go back and add the aspnet local user account to the database.mdf file and grant it full rights to the file so my dnn local portal will work.
This is cumbersome since I must repeat this process every time I need to generate codesmith classes or stored procedures. Does anyone know how to have this process of using codesmith and a local dnn 4.9 install work together so that the codesmith, or actually the sql server 2005 express local user, not remove the aspnet local account from the database file? In other words, is there a way to let them both have access to the database.mdf file without removing the aspnet local account?