while pushing nuget package to local feed, it asks username, password for htp://localhost/site?

Topics: General
Aug 29, 2013 at 3:49 PM
Edited Aug 29, 2013 at 3:50 PM
while pushing nuget package to local feed, it asks username, password for htp://localhost/site?

i am able to browse the packages available in the package directly, that are i manually placed them.

any possibility to disable this? or any other solutions?

regards,
anand
Sep 9, 2013 at 10:28 AM
Edited Sep 9, 2013 at 10:31 AM
Hi

From my experience it is an IIS configuration.
Try to disable the webdav in the web.config file:
<system.webServer>
  <handlers>
        <remove name="WebDAV" />
    <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="1073741824" />
        </requestFiltering>
    </security>
  </handlers>
</system.webServer>
</location><appSettings>

and
<system.webServer>
<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="1073741824" />
    </requestFiltering>
</security>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule" />
  <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
  <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
  <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
</modules>
<staticContent>
  <mimeMap fileExtension=".nupkg" mimeType="application/zip" />
</staticContent></system.webServer>