我创建了一个默认的Web api,当我运行时出现此错误。
答案 0 :(得分:1)
尝试删除用户文件夹中IIS Express配置文件中具有相同端口的站点
C:\ Users {USER_NAME} \ Documents \ IISExpress \ config \ applicationhost.config
<listenerAdapters>
<add name="http" />
</listenerAdapters>
<sites>
<site name="orchard" id="10">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\{USER_NAME}\Documents\My Web Sites\orchard" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:3473:localhost" />
</bindings>
</site>
<site name="Pacotes" id="29">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="D:\svn\comuns\develop-v1.7.2-Scripts\Nuget.Server" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:55004:localhost" />
</bindings>
</site>
</sites>
<webLimits />