用 VS 2010或其他版本发布网站时候,网站会提示
This application is currently offline. To enable the application, remove the
app_offline.htm file from the application root directory.
为什么会提示这个呢?因为VS在发布时,会在目录下生成一个文件 app_offline.htm ,这个文件作用不用说吧,网上很多资料
但是提示是英文,对于用户来说有点不友好。
下面我们来修改一下,找到路径:C:/Documents and Settings/Administrator/Application Data/Microsoft/VisualStudio
其中的 Administrator 是机器名
这个目录下有 几个文件夹 8.0 9.0 10.0对应我们的VS版本,进入 10.0 发现有个 app_offline.htm
修改这个文件的样式,再试试发布吧