Copy a LIVE Kentico instance and its database to my local machine

試著忘記壹切 提交于 2019-12-06 15:41:53
Tim Fenton

Please try a connection string like this to see if it works:

<add name="CMSConnectionString" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=Kentico82;Integrated Security=False;User ID=MyUser;Password=MyPassword;Connect Timeout=240" />

Thanks.

It also might be that you recreated your db schema locally without adding the data. Run the following query to make sure that you have local data.

SELECT *
FROM [dbo].[CMS_UIElement]

If there's no data in there, then you don't have an admin user interface. You'll need to run import the data from your LIVE database into your local one.

If you had a working copy prior and set it up in a different/new environment and the first page you see on initially accessing the site is the install page, it's because the connection string is:

  • missing
  • incorrect

If your connection string is correct and your user does not have permissions you will receive a page stating the use does not have permissions. So you are not even connected quite yet.

When entering your connection string in the web.config, enter it all on one line (yes I know you can do it as you show, but humor me) and ensure your string is:

  • formatted correctly for SQL Express
  • named "CMSConnectionString"

After you have confirmed those items, recycle the websites AppPool and try again.

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