原因,没有配置webconfig
<system.webServer> <modules> <remove name="FormsAuthentication" /> </modules> <handlers> <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> </handlers> <staticContent> <remove fileExtension=".woff" /> <remove fileExtension=".woff2" /> <mimeMap fileExtension=".woff" mimeType="application/x-woff" /> <mimeMap fileExtension=".woff2" mimeType="application/x-woff2" /> </staticContent> </system.webServer>
参考:https://www.cnblogs.com/smallidea/p/5274803.html