Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Error publishing Web API to live server

$
0
0

I have a Web API written in ASP .Net Core 2.0, in Visual Studio 2017 (15.4.2).

I haven't worked on it in about 2 months, but today i made a small change, and when I tried to publish it to our server, I'm suddenly getting this error message:

Error  The command ""dotnet" exec --runtimeconfig "C:\Users\fabsr\Source\Repos\Inspections.API\Inspections.API\bin\Release\netcoreapp2.0\Inspections.API.runtimeconfig.json" --depsfile "C:\Users\fabsr\Source\Repos\Inspections.API\Inspections.API\bin\Release\netcoreapp2.0\Inspections.API.deps.json""C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.0.0\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.dll" @"obj\Release\netcoreapp2.0\microsoft.aspnetcore.mvc.razor.viewcompilation.rsp"" exited with code 1. Inspections.API  0

Error  The name 'JavaScriptSnippet' does not exist in the current context Inspections.API C:\Users\fabsr\Source\Repos\Inspections.API\Inspections.API\Views\Shared\_Layout.cshtml 18

I have tried cleaning the solution, deleting the "bin" and "obj" folders and rebuilding. I have also tried clearing the nuget packages. But every time I try to publish I get that error. Any ideas?


Viewing all articles
Browse latest Browse all 9386

Trending Articles