Installing DotNetNuke : Database Connection Failing

北战南征 提交于 2019-12-01 14:43:32

There are a few things to consider, depending on the nature of the setup that you have.

  1. Ensure that the Web Server can connect to the DB server. You may be able to connect to the server, but the web server itself cannot
  2. Ensure that the user account being used has DBO rights, if DNN needs to upgrade etc it needs that level of permissions

This is more of a comment to @Mitchel Sellers answer, point 1. But it's a bit too much for a comment field.

  1. Run the SQL Server Configuration Manager.
  2. Go to "SQL Server Network Configuration".
  3. Click "Protocols for <INSTANCE>".
  4. In the right pane double click on "TCP/IP".
  5. Make sure that "Enabled" is set to "Yes".
  6. Go to the tab "IP Adresses".
  7. For each IP, set the "TCP Port" to "1433", the "TCP Dynamic Port" to "0" and "Active" and "Enabled" to "Yes".
  8. With "IPALL" just set the port to "1433", leave the Dynamic as is.
  9. Reboot or restart the SQL Server service.

With these steps I get a connection to the database from IIS using localhost

If you cannot find the Configuration Manager in the Start Menu, you can run it manually with C:\Windows\SysWOW64\mmc.exe /32 c:\Windows\SysWOW64\SQLServerManager12.msc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!