zoukankan      html  css  js  c++  java
  • ASP.NET web.config

    后续会不断摆出ASP.NET Web.config的各种姿势,欢迎留言补充

    <?xml version="1.0" encoding="utf-8"?>
    
    <!--
      有关如何配置 ASP.NET 应用程序的详细信息,请访问
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    
    <configuration>
        <system.web>
          <compilation debug="true" targetFramework="4.0" />
        </system.web>
    
      <!>
      <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding name="你引用的WebService" maxReceivedMessageSize="2147483647"/>
            --上面节点,添加maxReceivedMessageSize="2147483647"内容
            --可解决异常:已超过传入消息(65536)的最大消息大小配额。
                      --若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。
          </basicHttpBinding>
        </bindings>
        <client>
          <endpoint address="你引用的WebService的地址" ... />
        </client>
      <system.serviceModel>
    
      <!--指定默认文档 Start
        Author:JAnnn
        Time:2015-01-10
        福利:
        IIS会自动生成Web.config指定的默认文档,
        以后就不用手动在IIS里添加了.
        坑爹:
        指定默认文档错误的话,
        Web访问很慢很慢...
      -->
      <system.webServer>
        <defaultDocument>
          <files>
            <clear/> <!--添加默认文档前先clear下 避免跟IIS默认文档冲突-->
            <add value="amap.html"/> <!-- 位于根目录下-->
            <add value="2.aspx"/> <!-- 找不到1.html 会来找2.aspx-->
            <add value="x/3.aspx"/> <!-- 位于其他文件夹目录下-->
          </files>
        </defaultDocument>
      </system.webServer>
      <!--指定默认文档 End-->
      
    </configuration>
    
  • 相关阅读:
    Linux简介
    在VMware上安装Ubuntu软件步骤与遇到的相关问题及解决方案
    深度学习框架之TensorFlow的概念及安装(ubuntu下基于pip的安装,IDE为Pycharm)
    Windows下安装Python及Eclipse中配置PyDev插件
    结构体定义struct和typedef struct
    定义与声明
    error LNK2005:错误改正方法
    OPENCV 笔记
    RANSANC算法
    梯度下降法和牛顿法
  • 原文地址:https://www.cnblogs.com/taadis/p/12125935.html
Copyright © 2011-2022 走看看