0

在测试我的 Razor/asp.net 网站时,我不断在回收站中找到一个名为“app_offline.htm”的文件。这是否会困扰我网站的可怜的毫无戒心的访问者?

4

1 回答 1

1

当您发布您的网站时,情况并非如此。原因是:
SQL Server 2005 express edition does not support multiple processes. Only single process can access database at a time. So when a database is accessed through visual studio, ASP.net runtime cannot access the database. This will result into the internal server error. To prevent this, VS 2005 places app_offline.htm file in the application's root directory. The file contain above message. This causes ASP.net to put the application in offline mode.

来源: http: //www.codeproject.com/Articles/21319/Putting-ASP-net-Application-In-Offline-Mode-Using

于 2013-05-05T20:38:19.213 回答