zoukankan      html  css  js  c++  java
  • 【工作记录】部署网站SSO的心得体会

    1. 编辑网站下面的网页,同事建议先编辑一下Web.Config文件,加几个空格 -> 这样才可以使整个Web 应用重新编译。

    参考《Programming Microsoft ASP.NET 4.0 》,找到了下面的说明:

    Editing files such as web.config and global.asax causes the whole application to restart. In
    this case, all the pages will be recompiled as soon as each page is requested. The same happens
    if a new assembly is copied or replaced in the application’s Bin folder.

    The application pool can be recycled at regular intervals (which is the default choice, as
    shown in Figure 2-18), after serving a fixed number of requests, at specific times, or when
    enough memory is consumed. Beyond this, the pool is recycled when you apply changes to
    the deployed site and modify configuration files or the Bin folder.

    所以,可以修改Web.Config, global.asax, 复制文件到bin或者replace bin内原有文件,以recompile所有的pages。

    那么,如果只修改单一page呢?

    The compiled page remains in use as long as no changes occur to the linked .aspx source
    file or the whole application is restarted. Any changes to the linked .aspx file invalidate the
    current page-specific assembly and force the HTTP runtime to create a new assembly on the
    next request for the page.

    2. 一般部署的时候,不会接触到源代码。如果出现数据库访问失败的错误,可以看看是不是AppSettings.Config里面提及的数据库,设置连接OK。

  • 相关阅读:
    git的搭建与简单实用
    zabbix项目实践
    zabbix的搭建与入门
    zabbix的深入了解
    harbor私有镜像仓库的搭建与使用与主从复制
    tensorflow 在windows下的安装
    word2vec:基本的安装及使用简介
    cs231n(三) 误差反向传播
    cs231n笔记(二) 最优化方法
    cs231n笔记 (一) 线性分类器
  • 原文地址:https://www.cnblogs.com/yoyohappy/p/3407722.html
Copyright © 2011-2022 走看看