发布问题记录1

1.IIS上部署网站,打开后ExtensionlessUrlHandler-Integrated-4.0解决办法
以管理员运行下面的命令注册:
32位机器:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
64位机器:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i


2.在一个站点下部署的网址,需要加上根站点的目录


3.System.Web.HttpException: Maximum request length exceeded
.net程序在上传一个8M多的文件的时候报错
错误原因:由于web.config中设置的asp.net最大支持的请求小于您所上传的文件大小,默认支持4M的。
修改方法:
web.Config中 <httpRuntime requestLengthDiskThreshold = "20480" maxRequestLength = "20480"/> (单位kb)

IIS7 and above, you also need to add the lines below:(字节单位)
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="20971520" />
</requestFiltering>
</security>
</system.webServer>


4.Directory does not exist.
Parameter name: directoryVirtualPath
BundleConfig.cs中js文件部分已经不存在了。在初始化时导致失败,删除BundleConfig.cs文件中所有文件不存在的绑定即可解决问题

寻寻觅觅转流年,磕磕碰碰道缘浅。 揽几缕、轻挽起,暮暮朝朝与君语。
原文地址:https://www.cnblogs.com/bingshao/p/15587682.html