ASP.NET WebService in a file folder release

  Description: The SQLite database file into the App_Data folder, the project is published, does not contain the App_Data folder; in the project right App_Data folder, select Publish App_Data, the folder that contains the room, but when debugging, App_Data folder always under the same name as the new database file, causing such as: no such table and other related issues.

  Solution: When you publish the project, the third step (settings) page, expand File Publish Options, check the 'Exclude files from the App_Data folder', and then released; then publish again, and in the third step (settings) page, expand the file publish Options, uncheck the 'Exclude files from the App_Data folder'; see Azure applications in service activities (VS open: view - other windows> -> Web publishing activities) detailed information showed 'is being published folder App_Data ... 'when the word, indicates that the publication is successful, the problem is solved.

Guess you like

Origin www.cnblogs.com/xuanhu/p/12130988.html