Nuget returned an unexpected status code '404 Not Found' - Package on local drive

Joseph Cenk

Trying to generate a Nuget Package from dll. One of our project is generating ConfigurationCore.dll and References of project assemblies given below

  • Microsoft.CSharp
  • Newtonsoft.Json
  • Mak.Enums (Custom Nuget Package available on local Nuget Server)
  • Mak.Operations (Custom Nuget Package available on local Nuget Server)
  • PresentationCore, PresentationFramework, PresentationFramework.Aero
  • System, System.Core, System.Data, System.Data.DataSetExtensions
  • System.Drawing, System.IO.Compression, System.IO.Compression.FileSystem
  • System.Net.Http, System.Runtime.Serialization, System.Web
  • System.Xaml, System.Xml, System.Xml.Linq, WindowsBase

Using below ConfigurationCore.nuspec to generate Nuget Package

<?xml version="1.0"?>
<package >
<metadata>
<id>ConfigurationCore</id>
<version>1.2.0</version>
<title>Configuration Core</title>
<authors>MAKK</authors>
<owners>IT Department</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>ConfigurationCore contains core funcationality of Software</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2018</copyright>

<dependencies>
  <dependency id="Newtonsoft.Json" version="10.0.3" />
</dependencies>
</metadata>
<files>
<file src="C:\Users\makk\source\repos\ConfigurationCore\bin\x86\Test\ConfigurationCore.dll" target="lib\net461" />
</files>
</package>

Attempting to gather dependency information for package 'ConfigurationCore.1.2.0' with respect to project 'NugetTest', targeting '.NETFramework,Version=v4.6.1' Gathering dependency information took 1.09 sec Attempting to resolve dependencies for package 'ConfigurationCore.1.2.0' with DependencyBehavior 'Lowest' Resolving dependency information took 0 ms Resolving actions to install package 'ConfigurationCore.1.2.0' Resolved actions to install package 'ConfigurationCore.1.2.0' The V2 feed at 'http://builtsrv1:8080/nuget/FindPackagesById()?id='ConfigurationCore'&semVerLevel=2.0.0' returned an unexpected status code '404 Not Found'. Time Elapsed: 00:00:02.1513344 ========== Finished ==========

Note: The Nuget package source is on local harddrive... Please advise to fix the issue.

Barr J

This is because you are referencing a non existing link: http://builtsrv1:8080/nuget/FindPackagesById()?id='ConfigurationCore'&semVerLevel=2.0.0'

You are using a method inside url, which is invalid and is the cause for the mistake:

             //this is an error
../nuget/FindPackagesById()?

fix the url, test it and try again,

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

nuget package recovery program is getting 404:not found

HTTP 404 status code (Not Found) shown as 302

API request returning status code 404 not found

NOT FOUND (status code: 404): Unknown Message

Issue With Spring: There was an unexpected error (type=Not Found, status=404)

Cannot DELETE data: There was an unexpected error (type=Not Found, status=404)

Status: 404-Not found

ERROR: Unexpected HTTP Status code: 404 Not Found (url = http://localhost:54321/3/Frames/RTMP_sid_afb5_1?row_count=10)

Microsoft Graph API status code 404 not found error

Response status code does not indicate success: 404 (Not Found) with owin library

Whitelabel Error Page There was an unexpected error (type=Not Found, status=404). /WEB-INF/views/home.jsp

Error Whitelabel Error Page: There was an unexpected error (type = Not Found, status = 404) when querying with mapping over level 1

The V2 feed at ‘…’ returned an unexpected status code '503 Service Unavailable'

Azure DevOps NuGet Package not found

Debug Step into local Nuget Package

HTTP Status 404 - Servlet not found

Servlet: HTTP Status 404 - Not Found

InMemoryWebApiModule - status: 404 - collection not found

Cannot install nuget package - package not found error

Install Nuget Package from Network Drive with Cake

Symfony Error The server returned a 404 Not Found

Nuget Push always returning 404 (Not Found)

Nuget.Server 404 on package Push

AngularJs code organizing nuget package

Azure ssh to web app failed: AppServiceTunnel/Tunnel.ashx?GetStatus' with status code '404' and reason 'Not Found'

LUIS and botframework not working: Response status code does not indicate success: 404 (Not Found)

Status code: 404, 'Not Found' on ASP.NET Core 6.0 Web API

There was an unexpected error (404 Not Found) JSP and Spring Boot

Apache: forcing a 404 status code

TOP Ranking

HotTag

Archive