Questions tagged as 'asp.net-core'

1
answer

Publishing in Azure - FileNotFoundException: Could not find file 'D: \ home \ site \ wwwroot \ myapp.xml'

I'm trying to publish an ASP.NET Core Web Api application to an Azure Api App feature. This error started appearing after I checked the "Remove additional files at destination" option: Andafterthat,Istartedgettingtheerrorandcouldnotgetitt...
asked by 31.07.2017 / 19:24
1
answer

How to register a user with identity, with the data already inserted?

I have a method that inserts several data from an excel spreadsheet into the database, but there is some data, such as email, password, or concurrencyStamp (set to NULL), so I can not change user data by means of the code. [HttpPost] [...
asked by 22.05.2017 / 19:01
1
answer

LINQ to SQL - Exception when giving sum () in a query that contains another subquery using LINQ

private decimal GetBankAccountCashierTotal() { var company = _context.Company.FirstOrDefault(); return _context.PersonBankAgencyAccount .Where(p => p.PersonID.Equals(company.PersonID)) .Wh...
asked by 01.12.2016 / 16:30
1
answer

Section frameworks of project.json

In ASP.NET 5 projects, the project.json file contains some important project data as dependencies in other packages. It turns out that this file has a "frameworks" section that in projects created in VS looks like this: { "framework...
asked by 27.02.2015 / 18:17
0
answers

Error while running Asp Net Core Application

I'm getting the following error:    An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.       One or more comp...
asked by 29.11.2018 / 17:34
1
answer

Create DropDownList with ViewBag

I'm getting the following error:    InvalidOperationException: There is no ViewData item of type 'IEnumerable' that has the 'Office' key. Here I look for the database: public IEnumerable<SelectListItem> GetAllOfficeAsync(Guid user...
asked by 01.11.2018 / 14:43
0
answers

Use 2 models in a View, but separate them in the form submission

I'm getting the following error:    'AddEmployeeViewModel' does not contain a definition for 'OfficeEmployee' and in the extension method 'OfficeEmployee' accepting the first argument of type 'AddEmployeeViewModel' could be found > Inside...
asked by 01.11.2018 / 18:18
0
answers

Migration does not recognize the Context

I'm developing an application using DDD architecture. In my Infra layer, I have my data models, all based on Code First . I am using SQL as the database. I already installed everything that was needed. It turns out that when I try to apply...
asked by 03.10.2018 / 16:56
0
answers

mvc HTTP 404 error

Good, I created an ASP: NET WEB Core 2.0 Appl. I created views and controllers. When I make a submit via: <form asp-controller="Audit" asp-action="Search" method="post"> Instead of opening via (controller Audit, IAction, search,...
asked by 12.09.2018 / 12:48
0
answers

"Could not parse expression '...: The given arguments did not match the expected arguments" [closed]

I am using the CompiledQueries feature of the framewok core 2.0 entity but even though it does not syntax error, when the program is running, I get this exception:    Could not parse expression 'value   (Microsoft.EntityFrameworkCore.Query.In...
asked by 08.09.2018 / 09:26