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。

  • 相关阅读:
    校验器
    Mybatis分页中遇到的坑3

    Lock1
    Validation(4)-临时
    在Java中如何判断对象已死?
    垃圾回收算法的种类
    Java内存区域
    Java 中的 volatile关键字含义
    分别写出堆内存溢出与栈内存溢出的程序?
  • 原文地址:https://www.cnblogs.com/yoyohappy/p/3407722.html
Copyright © 2011-2022 走看看