为什么80%的码农都做不了架构师?>>>
后续会不断摆出Web.config的各种姿势,欢迎留言补充
<?xmlversion="1.0"encoding="utf-8"?><!--有关如何配置应用程序的详细信息,请访问/fwlink/?LinkId=169433--><configuration><system.web><compilationdebug="true"targetFramework="4.0"/></system.web><!><system.serviceModel><bindings><basicHttpBinding><bindingname="你引用的WebService"maxReceivedMessageSize="2147483647"/>--上面节点,添加maxReceivedMessageSize="2147483647"内容--可解决异常:已超过传入消息(65536)的最大消息大小配额。--若要增加配额,请使用相应绑定元素上的MaxReceivedMessageSize属性。</basicHttpBinding></bindings><client><endpointaddress="你引用的WebService的地址".../></client><system.serviceModel><!--指定默认文档StartAuthor:JAnnnTime:-01-10福利:IIS会自动生成Web.config指定的默认文档,以后就不用手动在IIS里添加了.坑爹:指定默认文档错误的话,Web访问很慢很慢...--><system.webServer><defaultDocument><files><clear/><!--添加默认文档前先clear下避免跟IIS默认文档冲突--><addvalue="amap.html"/><!--位于根目录下--><addvalue="2.aspx"/><!--找不到1.html会来找2.aspx--><addvalue="x/3.aspx"/><!--位于其他文件夹目录下--></files></defaultDocument></system.webServer><!--指定默认文档End--></configuration>