Deleting a directory results in application restart

后端 未结 5 2292
深忆病人
深忆病人 2020-12-06 14:29

I have an application with 2 directories (books and export). If we create a book or a page of a book in the application a directory is added with the id of the page (this is

5条回答
  •  春和景丽
    2020-12-06 15:13

    For storing data files that are frequently updated, created and deleted you need to use App_Data folder in the root of the web site. MSDN for App_Data folder states:

    Contains application data files including MDF files, XML files, as well as other data store files. The App_Data folder is used by ASP.NET 2.0 to store an application's local database, which can be used for maintaining membership and role information.

    Also check Q&A section for App_Data folder usage: App_Data folder question

提交回复
热议问题