• 【工作记录】部署网站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。

  • 相关阅读:
    高效算法——D 贪心,区间覆盖问题
    高效算法——C 分饼
    高效算法——A 归并排序
    高效算法——Most financial institutions 贪心 H
    高效算法——E
    高效算法——Bin Packing F
    POJ2192
    UVa11584
    POJ2429
    POJ1811- Prime Test(Miller–Rabin+Pollard's rho)
  • 原文地址:https://www.cnblogs.com/yoyohappy/p/3407722.html
Copyright © 2020-2023  润新知