Hello,
I'm totally new to DNN. I've downloaded DNN 9.4 on the local machine. InstallWizard cannot seem to connect to SQL Server 14 Developer edition on local machine. Wondering if someone can tell me what should be my connection string in web.config file. I have already created dnntest database in the SQL server and add IIS Apppool\dnn user as a db owner.
Joe
Assuming you've installed SQL Server with the default settings, it should work like this: Data Source=(local);Initial Catalog=dnntest;Integrated Security=true;
Data Source=(local);Initial Catalog=dnntest;Integrated Security=true;
Joe,
In addition to Brian's reply: the account that runs the application pool needs db_owner permission for the database (at least for installing DNN and extensions). Assuming your web server is called DNN-WEB and the application pool is called DnnAppPool, you have the following (Windows/integrated) logins to be created on SQL Server and assigned this role:
If they run on different machines which are not in a domain or not in the same domain, you have to create an SQL Server login and assign the db_owner role to the database. In this case, the connection string would look like
Data Source=[DNNDatabaseSQLServerName];Initial Catalog=[DNNDatabaseName];User ID=[SQLServerLoginName];Password=[SQLServerLoginPassword]
It is not recommended to use the db_owner role in normal operation. Let me write a blog about this in the next days...
If you just want a test installation on a local machine, I recommend nvQuickSite for installing DNN. This saves a lot of headache.
Happy DNNing! Michael
Michael TobischDNN★MVP
IIS and DB are on the same local machine. Here is my connection string in web.config.
add name="SiteSqlServer" connectionString="Data Source=(local);Initial Catalog=dnntest;Integrated Security=true;" providerName="System.Data.SqlClient"
and I get this - IIS Apppool\dnn is db owner for dnntest.
Connection To The Database Failed
I ended up creating a SQL Server user and added it to web,config. Made this SQL server user owner of dnntest database and then I was able to install. Adding IIS APPPOOL\DNN application pool to SQL Server didn't resolve the issue. IIS APPPOOL\DNN couldn't access the database.
This connection string worked for me
add name="SiteSqlServer" connectionString="Data Source=(local);Initial Catalog=dnntest;User ID=sqluser;Password=sqluserpassword" providerName="System.Data.SqlClient"
Thanks eveyone for your time and help.
Here is the promised blog article...
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.