Ошибка веб-развертывания Visual Studio при запуске предварительного просмотра

Я работаю над проектом веб-API Visual Studio 2015.

Я создал пустой веб-проект с опцией API. Я выбираю вариант веб-развертывания в процессе публикации веб-приложения API на сервере. Я создал настраиваемый профиль, предоставил необходимую информацию и успешно прошел «Проверку соединения», но получаю сообщение об ошибке на странице предварительного просмотра веб-мастера публикации.

ошибка

Web deployment task failed. (The specified credentials cannot be used with the authentication scheme 'Basic'.)

The specified credentials cannot be used with the authentication scheme 'Basic'.
Default credentials cannot be supplied for the Basic authentication scheme.
Parameter name: authType

Мой файл Web.Config

<?xml version="1.0" encoding="utf-8"?> 
<configuration>
<appSettings></appSettings>
<system.web>
 <compilation debug="true" targetFramework="4.5.2"/>
 <httpRuntime targetFramework="4.5.2"/>
 <httpModules>
  <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
</httpModules>
</system.web>
<system.webServer>
<handlers>
  <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
  <remove name="OPTIONSVerbHandler"/>
  <remove name="TRACEVerbHandler"/>
  <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler"
    preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
  <remove name="ApplicationInsightsWebTracking"/>
  <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"
    preCondition="managedHandler"/>
  </modules>
  </system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  </dependentAssembly>
</assemblyBinding>


person Toxic    schedule 07.10.2016    source источник


Ответы (1)


Попробуйте установить AuthType на NTLM в своем профиле публикации (.pubxml):

<PropertyGroup>
  <AuthType>NTLM</AuthType>
person chief7    schedule 11.10.2016