{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3430","repository_url":"https://api.github.com/repos/NuGet/NuGetGallery","labels_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3430/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3430/comments","events_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3430/events","html_url":"https://github.com/NuGet/NuGetGallery/issues/3430","id":196454992,"number":3430,"title":"HTTP Error 404.0 - Not Found","user":{"login":"filippobottega","id":2587684,"avatar_url":"https://avatars.githubusercontent.com/u/2587684?v=3","gravatar_id":"","url":"https://api.github.com/users/filippobottega","html_url":"https://github.com/filippobottega","followers_url":"https://api.github.com/users/filippobottega/followers","following_url":"https://api.github.com/users/filippobottega/following{/other_user}","gists_url":"https://api.github.com/users/filippobottega/gists{/gist_id}","starred_url":"https://api.github.com/users/filippobottega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filippobottega/subscriptions","organizations_url":"https://api.github.com/users/filippobottega/orgs","repos_url":"https://api.github.com/users/filippobottega/repos","events_url":"https://api.github.com/users/filippobottega/events{/privacy}","received_events_url":"https://api.github.com/users/filippobottega/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"joelverhagen","id":94054,"avatar_url":"https://avatars.githubusercontent.com/u/94054?v=3","gravatar_id":"","url":"https://api.github.com/users/joelverhagen","html_url":"https://github.com/joelverhagen","followers_url":"https://api.github.com/users/joelverhagen/followers","following_url":"https://api.github.com/users/joelverhagen/following{/other_user}","gists_url":"https://api.github.com/users/joelverhagen/gists{/gist_id}","starred_url":"https://api.github.com/users/joelverhagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelverhagen/subscriptions","organizations_url":"https://api.github.com/users/joelverhagen/orgs","repos_url":"https://api.github.com/users/joelverhagen/repos","events_url":"https://api.github.com/users/joelverhagen/events{/privacy}","received_events_url":"https://api.github.com/users/joelverhagen/received_events","type":"User","site_admin":false},"assignees":[{"login":"joelverhagen","id":94054,"avatar_url":"https://avatars.githubusercontent.com/u/94054?v=3","gravatar_id":"","url":"https://api.github.com/users/joelverhagen","html_url":"https://github.com/joelverhagen","followers_url":"https://api.github.com/users/joelverhagen/followers","following_url":"https://api.github.com/users/joelverhagen/following{/other_user}","gists_url":"https://api.github.com/users/joelverhagen/gists{/gist_id}","starred_url":"https://api.github.com/users/joelverhagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelverhagen/subscriptions","organizations_url":"https://api.github.com/users/joelverhagen/orgs","repos_url":"https://api.github.com/users/joelverhagen/repos","events_url":"https://api.github.com/users/joelverhagen/events{/privacy}","received_events_url":"https://api.github.com/users/joelverhagen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-12-19T16:19:29Z","updated_at":"2016-12-20T20:10:40Z","closed_at":"2016-12-20T17:47:01Z","body":"Hello,\r\n  I'm trying to use Nuget.Server using Visual Studio 2015. I get some errors.\r\n\r\nRepro:\r\n\r\n    Create an empty web application with the name \"MyNuget\"\r\n    Install the NuGet.Server package\r\n    Build and run website from Visual Studio F5 (Debug)\r\n    Navigate to the website, and click on the \"here\" link to navigate to the Packages folder\r\n\r\nActual result:\r\n\r\n    404 error\r\n\r\n```\r\nRequested URL\t   http://localhost:43672/nuget/Packages\r\nPhysical Path\t   <..>\\MyNuget\\nuget\\Packages\r\n```\r\n\r\nbut the real path is <..>\\MyNuget\\bin\\Packages\r\n\r\nRepro:\r\n\r\n```\r\nnuget.exe push MyPackage.nupkg VSTS -Source http://localhost:43672/api/v2/package\r\nPushing MyPackage.nupkg to 'http://localhost:43672/api/v2/package'...\r\n  PUT http://localhost:43672/api/v2/package/\r\n  Created http://localhost:43672/api/v2/package/ 530ms\r\nYour package was pushed.\r\n```\r\n\r\nThe package was created under folder <..>\\MyNuget\\Packages\r\n\r\nRepro:\r\n\r\n`nuget.exe list -Source http://localhost:43672/api/v2/package`\r\n\r\nError:\r\n\r\n`Errore del server remoto: (404) Non trovato.`\r\n\r\nHow can I create a local nuget server that works?\r\n\r\nBest regards,\r\n  Filippo.\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/comments/268345666","html_url":"https://github.com/NuGet/NuGetGallery/issues/3430#issuecomment-268345666","issue_url":"https://api.github.com/repos/NuGet/NuGetGallery/issues/3430","id":268345666,"user":{"login":"joelverhagen","id":94054,"avatar_url":"https://avatars.githubusercontent.com/u/94054?v=3","gravatar_id":"","url":"https://api.github.com/users/joelverhagen","html_url":"https://github.com/joelverhagen","followers_url":"https://api.github.com/users/joelverhagen/followers","following_url":"https://api.github.com/users/joelverhagen/following{/other_user}","gists_url":"https://api.github.com/users/joelverhagen/gists{/gist_id}","starred_url":"https://api.github.com/users/joelverhagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelverhagen/subscriptions","organizations_url":"https://api.github.com/users/joelverhagen/orgs","repos_url":"https://api.github.com/users/joelverhagen/repos","events_url":"https://api.github.com/users/joelverhagen/events{/privacy}","received_events_url":"https://api.github.com/users/joelverhagen/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T20:10:40Z","updated_at":"2016-12-20T20:10:40Z","body":"To satisfy my own curiosity, I took some time to figure out what the VB.NET implementation of `Routes.vb` would be. Give this a try, changing namespace names where necessary. Note that this **is not** an officially supported NuGet.Server scenario. To \"stay on the rails\" you should switch to a C# project.\r\n\r\n```vb\r\nImports System.Data.Services\r\nImports System.ServiceModel.Activation\r\nImports System.Web.Routing\r\nImports NuGet.Server\r\nImports NuGet.Server.DataServices\r\nImports NuGet.Server.Publishing\r\nImports RouteMagic\r\n\r\n<Assembly: WebActivatorEx.PreApplicationStartMethod(GetType(MyNuget.NuGetRoutes), \"Start\")>\r\n\r\nPublic Module NuGetRoutes\r\n    Public Sub Start()\r\n        ServiceResolver.SetServiceResolver(New DefaultServiceResolver)\r\n\r\n        MapRoutes(RouteTable.Routes)\r\n    End Sub\r\n\r\n    Private Sub MapRoutes(routes As RouteCollection)\r\n        ' Route to create a New package(http://{root}/nuget)\r\n        routes.MapDelegate(\"CreatePackageNuGet\",\r\n                           \"nuget\",\r\n                           New With {.httpMethod = New HttpMethodConstraint(\"PUT\")},\r\n                           Sub(context)\r\n                               CreatePackageService().CreatePackage(context.HttpContext)\r\n                           End Sub)\r\n\r\n        ' The default route is http://{root}/nuget/Packages\r\n        Dim factory = New DataServiceHostFactory()\r\n        Dim serviceRoute = New ServiceRoute(\"nuget\", factory, GetType(Packages))\r\n        serviceRoute.Defaults = New RouteValueDictionary From {{\"serviceType\", \"odata\"}}\r\n        serviceRoute.Constraints = New RouteValueDictionary From {{\"serviceType\", \"odata\"}}\r\n        routes.Add(\"nuget\", serviceRoute)\r\n    End Sub\r\n\r\n    Private Function CreatePackageService() As IPackageService\r\n        Return ServiceResolver.Resolve(Of IPackageService)()\r\n    End Function\r\nEnd Module\r\n```"}}
{"actor":{"display_login":"joelverhagen"}}