Can't copy Umbrao.sdf from webserver

大兔子大兔子 提交于 2019-12-07 12:23:59

问题


I have an Umbraco application running on a webserver and I need to move the application to another webserver. The Umbraco application uses an embedded database (SQL CE 4). I can copy all the files in the application except the "Umbraco.sdf" file.


回答1:


Add file named (if you like you can insert HTML that will be your maintenance page)

app_offline.html

After that IIS will release Umbraco.sdf and web.config copy and delete/rename mentioned file.




回答2:


As the Umbraco installation will be using the Umbraco.sdf database, you need to turn the application into maintenance mode, by adding a app_offline.htm to the root of the webserver. You need to make sure it is a .htm-file, i.e. not .html, cause otherwise it won't work.

Also - make a change in your web.config file, to restart the application pool, so that it may notice the change in your site.

Doing so, will release the Umbraco.sdf file, and make it possible for you to download it via simple FTP.




回答3:


I just had the same issue and didn't want to stop the site to release the lock on the file, so I did the following:

  • RDP onto the server, make a copy of the file in the /app_data directory (call it something like "Umbraco-copy.sdf")

  • Download "Umbraco-copy.sdf"

  • Rename "Umbraco-copy.sdf" back to "Umbraco.sdf"




回答4:


Perhaps, this error related to permission. You must login as a root (administrator)!



来源:https://stackoverflow.com/questions/13121280/cant-copy-umbrao-sdf-from-webserver

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