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。

  • 相关阅读:
    进程与线程的一个简单解释
    如何更优雅的写出你的SQL语句
    SQL 性能优化梳理
    如何写出让同事无法维护的代码?
    Linux配置IP常用命令
    Linux中防火墙命令笔记
    蓝牙技术的工作原理及用途
    别死写代码,这 25 条比涨工资都重要
    搞清这些陷阱,NULL和三值逻辑再也不会作妖
    计算机网络:TCP和UDP的对比
  • 原文地址:https://www.cnblogs.com/yoyohappy/p/3407722.html
Copyright © 2011-2022 走看看