下面各个方法尝试采用:
重装Framework
32位的Windows:
---------------------------------------------------------------------------
1. 运行->cmd
2. cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
3. aspnet_regiis.exe -i
64位的Windows:
---------------------------------------------------------------------------
1. 运行->cmd
2. cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
3. aspnet_regiis.exe -i
改配置1
<system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true" /> </system.webServer>
改配置2
<system.webServer> <modules runAllManagedModulesForAllRequests="true" > <remove name="UrlRoutingModule"/> </modules> </system.webServer>
改配置3
<add name="12345" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
启用目录浏览
另外在用阿里云服务器的时候,会出现在服务器可以访问,但是本机访问不了的情况,这个是防火墙对端口进行封闭了,要在防火墙中添加例外: