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

Referencing Classes in Core Project from WCF Service Project

I have a WCF service that acts on domain classes in my Core site. Since Core doesn't produce a dll I can't include a reference to them in my service project. I've resorted to declaring them in both...

View Article


Core CLI confusion?

This will probably  be the 1st of many questions. I'm asking about the .net cli as it relates to asp.net core 1.0.  I was keeping up until version (RC2) where i think the .net CLI was introduced and...

View Article


How to automate the task in Task Scheduler if it is in remote machine?

I am looking for a way through which 1. I can check the status of the task in Task Scheduler which is in Remote machine.2. Also if the task is not running then instead of running it manually I want to...

View Article

Nuget for ClientAssertionCertificate class in asp.net core to connect to AAD...

Hi ,We are trying to connect to AAD to get access token/jwt token using Certificate instead of using Client Secret in Asp.Net Core application . But Microsoft.IdentityModel.Clients.ActiveDirectory...

View Article

How to isolate dynamic code / assemblies without appdomain

With .NET 4.5 I created an extensible web application. With executes at run-time certified code from third parties.For this, I use app domains and inter-process communication.Now I saw that a lot of...

View Article


How to Pack / Reference "old" assemblies in 1.0 Tooling

I've heard that the tooling with ASP Core will change one more time (deprecating the project.json and so on)Are there any informations about the planned way to reference "old" 4.* assemblies in core...

View Article

User.Identity.Name Outside a Controller

I am trying to get the thisUser.Identity.Name,I can get it in the controllers, but I would like to know if it can be done outside a controller on a simple class, Somethikng like thisPublic string...

View Article

How to test code in Asp.net core project, in controller class in a controller...

I have an ASP.net core project, using controllers and models, I have a ValidatePromoCodeApi class ,  [HttpGet] [Route("/ValidatePromoCode")] // [SwaggerOperation("ValidatePromoCodeGet")] //...

View Article


Error in case of up-dating of packets Nuget.

Hi!PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git C:\Program...

View Article


What is [FromServices]

I saw something somewhere like[FromServices] public Data Data { get; set; }I can't find the definition of it.

View Article

There were no solutions found.

So i just created a .net core app on my mac and pushed it to a git repository on Visual studio.com. Great worked just fine the code is there.Then i opened Visual Studio on my PC and connected to the...

View Article

Version of Dot Net Framework

I do have framework 4.5 installed on my machine but I see only 4.0 and 2.0 showing up in the dropdown when I go to "Edit Application Pool"What do I need to do to fix it so I can select 4.5?  I am...

View Article

Code first approach for SQLite data source

Hi,I have some problem while mapping foreign key in Code first approach for SQLite.Table:CREATE TABLE Employees ( [EmployeeId] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, [FirstName] NVARCHAR(20) NOT...

View Article


Connecting to databse? [EF Core] [npgsql/PostgreSQL] [Identity]

Hello all,I've created a project through the wizard with the template ASP.NET Core Web Application, authentication: Individual user account. I then installed Npgsql.EntityFrameworkCore.PostgreSQL.Now...

View Article

Azure Storage Nuget Package

Does anyone know what Nuget package to download for access Azure Storage from Asp.Net Core?"Connected services" is not going to work for me: 1.)  It installs a bunch of packages that are incompatible...

View Article


How to call a REST Service from Asp.net Core?

HttpWebRequest seems to be missing. How do we call a rest web service in Asp.Net Core?

View Article

How should I do to make my DI register code more clean?

I am using the default service container in asp.net core 1.0 rc2.  In my project, I need to register many services, like code below.          //for all type not inherit...

View Article


Redirecting one project to another project in same solution Asp.net-How to...

I Have Three projects in a same solution Project 1,Project 2 and Project 3. Project 3 contains single login page for both the Application (Single Database) once i click login button in project 3 it has...

View Article

how to change /Seach?name={string} to /Search/{string} during get method?

<form asp-controller="Product" asp-action="Search" method="get" class="navbar-form navbar-left" role="search"><div class="input-group"><input type="text" name="name" class="form-control"...

View Article

The project doesn't know how to run the profile IIS Express

Hi,after switching to RC2 (following these guidelines:  Core RC1-to-RC2) I can not start the project, but the message:      "The project doesn't know how to run the profile IIS Express"Any hints?Thanks Bo

View Article
Browsing all 9386 articles
Browse latest View live


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