Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

asp.net core 2 vs code multiple projects debug

Hello all!How I could debug many projects at once without hacks? I have them all placed in a single workspace - each csproj in its folder. I'm using VS Code with powershell and .net core sdk.Thank you.

View Article


Mysql EntityFramework issue - Specified key was too long; max key length is...

Hello,when i type:$ dotnet ef database updatei get this error:Specified key was too long; max key length is 3072 bytesThe table which cause this error is a built-in Microsoft table for user...

View Article


asp.net core 2.0 mvc use Mysql in developpement and sql-server in production

Hello,I want to work with mysql on my local computer and ms sql-server on production server.Here is what i've tried to do in Startup.cs:I Have two methods:public void...

View Article

MVC Core Web App hosted on linux

Current App is a MVC Core Web app. I am using VS 2017 15.4 on windows 10. I have Docker for windows installed and host is set to Linux.The web app gets its razor views from the database. I have all of...

View Article

Asp.net core app crash when ConnectionResetException is thrown

Hi, Recently i upgraded my asp.core app from v. 1.0 to v. 2.0, but after the migration i keep seeing ConnectionResetException in the logs, and once this exception is thrown the whole asp.net core app...

View Article


how can I update column value before SaveChanges()

Hi, how can I update column value before SaveChanges(); when ActionResult httpost runfor this column:Database.Tablolar.Kullanicilar.CreatedDate = DateTime.Now(Sorry for my easy question, I am new here...

View Article

I have a problem about Compare- core 2.0

Hi,I have a problem about "Compare" (password and ConfirmPassword). if I use it, Page can be post but record is not possible. if remove just it that compare, page is ok. I am new about mvc and core 2.0...

View Article

I have a problem about "Compare"

Hi,I have a problem about "Compare" (password and ConfirmPassword). if I use it, Page can be post but record is not possible. if remove just it that compare, page is ok. I am new about mvc and core 2.0...

View Article


which asp.net core packages do I need to install ?

When I click on add new Item under projects , in the tab AspNetCore everything is empty. I would like to add a ASP.ent configuration file called appsettings.json.Do I need to install some packages , if...

View Article


Create Database correctly

Hello,i used in my App (Core 2.0) for local testing mslocaldb and on server i used a MS SQL Database.In my Core 1.1 Solution i create and migrate the Database by code.  public void...

View Article

check only password

I'm building a backend for an API. I just want to check the password for violations of duty like length or digits with api call. I don't want to change the password. second challenge is that I can't...

View Article

Why do i need DesignTimeDbContextFactory

HelloI have created an angular/asp.net core mvc application last weeks. Everything was working fine.I have added this line in startup.cs:public void ConfigureServices(IServiceCollection services){...

View Article

ASP.NET Core Azure Active Directory Authentication

Hi,I am developing an ASP.NET Core 2.0 application and trying to enable OpenID Authentication against multiple Azure active directories. That means my application is registered in at least to AAD as an...

View Article


IIS Error massage what is this problem ?

HiI have a problem IIS service. my project runs on visual studio. if it publishes in IIS folder, it doesnt work. why ? what is this error? An error occurred while starting the application.<div...

View Article

Entityframework cache ?

Hello,Look at this very basic example. Here are 2 Entity Framework models:public class Voitures{public int id { get; set; }public string nom_voiture { get; set; }public int MarqueId { get; set; }public...

View Article


convert excel to pdf in asp.net

Please let me know if you know free open source code which converts excel to pdf file. This should work in the server as well since there wont be any office installed.Appreciate hellp.

View Article

How can I use validation from HomeController

HiHow can I use validation from HomeController with post method. throw new Exception("This ip is not valid !!!",);<div class="form-group"><label asp-for="Ip" class="col-md-2...

View Article


connection string and startup page

Hi,I have a sql connection in startup.cs services.AddDbContextPool(c => c.UseSqlServer(Configuration.GetConnectionString("PosSistemDatabase"))); if I use this structure, I have a error message...

View Article

How do you get the connection string from the Startup.cs

How do you get the connection string from the startup.cspublic class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } // code ----------------------------- //...

View Article

Entity Framework Core 2.0 Foreign Keys

Hello all, I am working on a project using EF Core 2.0. I have a rather complex entity that has several foreign key relationships. I am using the fluent object configuration method for setup and I...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>