Questions tagged [asp.net-core-1.0]
Use this tag for questions specifically related to ASP.NET Core 1.0, in addition to using the 'ASP.NET Core' tag. ASP.NET Core 1.0 was the first release of ASP.NET Core and was originally intended to be ASP.NET 5.
878
questions
0
votes
1
answer
169
views
Publish fails in Visual Studio 2019
We are just moving to using Visual Studio 2019 at our workplace.
One of the projects we have already started using VS 2019 with is an ASP.NET Core 1 project.
We have done the necessary adjustments and ...
0
votes
0
answers
67
views
Background Task in ASP.NET Core 1.0
I have some tasks that require a lot of time to be executed and that I would like to run in background, so that the server can send the response to the client before the task is completed.
One working ...
0
votes
1
answer
37
views
create background task using .netcore 1
I need to create a service to do a daily task . and I need to do it with .net core 1 .
is there anybody here to tell me how can I do it ?the issue is that I have to use .net core 1.
0
votes
1
answer
67
views
.NET Library that can be used in ASP.NET Core 1.0, Mono
.NET Framework DLL or another library that works across .NET Framework >=4.5, ASP .NET Core 1.1 and Latest version of MONO Framework(on RHEL)
I inherited 3 different projects that I want to merge and ...
0
votes
0
answers
177
views
Unable insert data into Postgresql database using Entity Framework
I was unable to add user on PostgreSql database on Windows Server 2016.
This is my code to add a user:
user = new ApplicationUser { UserName = customer.LookupKey, Guid = customer.Guid };
var password ...
4
votes
1
answer
3k
views
Serilog : How to use logging in 'Class Library' of asp.net core
I am using Serilog for logging in asp.net core website and there is 'class library' used in the project.
How can we implement logging in asp.net core class library?
Is there any way to implement ...
0
votes
1
answer
460
views
Docker fails to pull specified .NET SDK within Jenkins (SDK not found error)
My solution is hosted on AWS and apparently they are cutting off support to .NET core 1.0 by July 1.
Therefore I am looking to upgrade my version of .NET core from 1.0 to 2.1. I am able to deploy ...
1
vote
0
answers
646
views
Could not load file or assembly System.Linq.Dynamic.Core Version=1.0.15.0
Added System.Linq.Dynamic.Core Version=1.0.15.0 from nuget in current Asp.net core 1.1 project. Added required moethods in library but when method is called error is thrown as "Could not load file or ...
0
votes
1
answer
396
views
Error messages are not sending to Rollbar dashboard using asp.net core 1.0.1 web api application
I'm using an asp.net core 1.0.1 web api project where Rollbar exception handling has implemented by using "RollbarDotNet": "0.5.1" version. It was working fine as I expected before but now there is ...
0
votes
2
answers
2k
views
Disable client side validation in asp.net core at field level
In ASP.NET MVC i can disable client side validation at field level like
@{ Html.EnableClientValidation(false); }
@Html.TextBoxFor(m => m.BatchId, new { @class = "k-textbox" })
@{ Html....
35
votes
2
answers
22k
views
Is .NET Core Runtime backwards compatible with previous releases?
If I've installed the latest version of the .NET Core Runtime (as of now, that's version 2.2.3):
https://dotnet.microsoft.com/download/dotnet-core/2.2
Is that one installation backwards-compatible ...
0
votes
1
answer
1k
views
jsreport html-to-excel options
I'm using the excellent jsreport solution to convert html to excel using the 'html-to-excel' recipe.
Does this recipe have any options to control the worksheet options?
Like display the sheet right to ...
0
votes
0
answers
275
views
ASP.NET core session keeps expiring regardless of the IdealTimout setting
I have asp.net core 1.1 application and i am setting the session timeout for 3 hours. So i am expecting the data in the session will remain for 3 hours.
public void ConfigureServices(...
6
votes
4
answers
10k
views
How to deal with concurrency failure on IdentityUser update?
I have a method to update user claims within our app.
I am logged as an admin user who can edit other users.
I am trying to remove existing claims of one user and assign new ones.
When removing ...
0
votes
0
answers
698
views
How to extend correctly SignInManager? [duplicate]
I am trying to extend my SignInManager to override PasswordSignInAsync.
When trying to user it I'm getting the error:
InvalidOperationException: Unable to resolve service for type 'A.Extensions....
0
votes
0
answers
688
views
Duplicate type name within an assembly in Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
I have .NET Core 1.1 API and i am handling the error in startup.cs as below. I am using Serilog
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory ...
5
votes
1
answer
5k
views
How to render action of specific controller in master Layout view in .NET Core?
I am calling "TopNav" partial from within Layout master view.
I want TopNav view to be strongly typed and the model to be created within TopNavController.
Is there any way to render the action of a ...
4
votes
1
answer
4k
views
.NET Core Runtime backward compatibility
I need to install on a Windows Server 2012 the .NET Core Runtime for a webapp written with version 1.1. Can I install the .NET Core Runtime 2.0?
I didn't find a clear answer at my question.
Here ...
0
votes
1
answer
421
views
OpenXml.Packaging MainDocumentPart does not exist in the current context
I am breaking my head for a long time now and couldn't find any relevant info here or google. I am developing in ASP.NET Core 1.0 so I use the OpenXml lib. I have the following code based on samples ...
0
votes
1
answer
4k
views
Multiple websites under a folder in IIS
I have a problem with websites in IIS.
The first thing that I did was that I set basic .html website in IIS under Default website (port 80). I moved the code in C:\inetpub\wwwroot\Test and it works.
...
2
votes
0
answers
101
views
Derive/Override the DataMemberAttribute
I'd like to override some of the functionality of the DataMemberAttribute but cannot create a derived class because it is marked as 'sealed'.
What I would like to do is have EmitDefaultValue be ...
1
vote
1
answer
537
views
.Net Core 1.1 HttpClient with DI
Following is the code I am using:
namespace MySite.Api
{
using System.Collections.Specialized;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
...
1
vote
0
answers
50
views
Integrate Angular 5 in Asp.net core 1.0
I am trying to integrate asp.net core web applicaion with the angular 5. But not able to find the correct procedure or way to do.
I have followed various links, but no use like getting the errors.
...
0
votes
2
answers
4k
views
Implementation of Message Bus C# microservices
We have few micro services created in .net core 1.0, we are following CQRS pattern and we are also using swagger which list all api's, we have a requirement were in we need to implement Message Bus(...
-1
votes
1
answer
6k
views
How to create and download a zip file in ASP.NET Core?
We need to bundle a multiple files in a Zip format and download it. Could you please suggest a way to do this in ASP.NET core without using any third party libraries.
In ASP.NET MVC we can achieve ...
0
votes
1
answer
668
views
FastMember: Specified argument was out of the range of valid values. Parameter name: name
I am attempting to use CsvHelper to import a CSV file and write it to my SQL database. The data imported does not belong to any predefined class and has to be determined at run time. A lot of forums ...
0
votes
1
answer
895
views
Make a sub directory public on .Net core webAPI
I have a Restful API project with .Net Core 1 that has a directory that contains some public files (ex: images). I created a controller that retrieved files by file name, but I think it uses CPU and ...
1
vote
1
answer
835
views
stackexchange.redis with .net core 1.1 timeout
I have .net core 1.1 based web application and using Amazon ElastiCache of Redis for cache management. I am using "StackExchange.Redis": "1.1.608" version for cache related work. Following is the code ...
1
vote
2
answers
1k
views
app.UseMvc Route Exception when updating from .NET Core 1 to .NET Core 2
I am upgrading my project from .NET Core 1 to .NET Core 2.
Following the Official Docs - Link - I edited my csproj to contain the following packages.
<PackageReference Include="...
0
votes
1
answer
1k
views
How to create a background task in startup service in asp.net core 1.0 Web API?
I am trying to create a background task to send mails in my Web API. I had created an asynchronous task in a class, and I tried to call it in the constructor, but it doesn't call the method. I want to ...
14
votes
2
answers
5k
views
Can you dynamically load cross platform Native/Unmanaged dlls/libs in .Net Core?
In .Net Core, you can PInvoke with [DllImport],
But if you want to dynamically load and map native api calls, DllImport doesn't solve the problem.
On windows we handled this with a DllImport to ...
0
votes
1
answer
2k
views
How to validate XML in .NET Core 1.1.2
How can i validate XML against XSD schema in .NET Core 1.1.2? i found this ms docs but i cannot use it with .NET core 1.1.2
using System;
using System.Collections.Generic;
using System.Text;
using ...
0
votes
1
answer
69
views
ERROR: Failed to make the following project runnable: This process cannot access the file ~/MyProject.exe' because it is being used by another process
When I am trying to compile and run my ASP.Net Core 1.0 project on Visual Studio 2015, I am getting the following error:
Failed to make the following project runnable: MyProject (.NETFramework,...
0
votes
1
answer
993
views
How to return Continue Http status code in .NET Core WEB API?
I'm having troubles setting 100 status code on response.
I have tried the following way:
HttpContext.Response.StatusCode = 100;
but it does not work, server refused to answer. Does anybody faced ...
1
vote
0
answers
496
views
.NET Core 1.1: Nuget unable to restore local package
I have a .NET core 1.1.2 app that package references to two other .NET core 1.1.2 apps. Here's my csproj:
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="....
0
votes
1
answer
391
views
asp net core 2.* IpRestrictionModule
asp net core 1.* used to work with IpRestrictionModule, now it doesn't... here are my settings
<system.webServer>
<!--http://www.henrihietala.fi/limit-access-to-your-azure-web-app-by-ip-...
3
votes
0
answers
2k
views
.MapWhen executing for all calls
I have a large already running application built on .net core 1.0.4. I have a need to add a micro api to this application, and am attempting to integrate a fairly simple http basic auth middleware ...
1
vote
1
answer
1k
views
Convert JSON object to Object without using Serialization in .NET Core
Is there any way to convert a JSON object into a Custom object without using serialization in .NET core 1.0 . As I'm using .net framework 4.5 built dll and the models which are defined in it are with [...
1
vote
1
answer
356
views
HTTP Error 502.5 - Process Failure in .Net core 1.1
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.1.2' was not found.
Check application dependencies and target a framework ...
1
vote
0
answers
68
views
Azure AD: Exception acquiring token for some first time users
I have an application using the converged application registration. As is normal with this types of applications, when a user goes to the site, they are redirected to Azure AD (AAD) to log in. If they ...
1
vote
2
answers
440
views
Does SignalR or websockets works with ASP.NET CORE 1.0?
I need to implement realtime data sharing push based to my asp.net core 1.0 web application. i.e. If any new data is available I want to push it to all the connected clients/logged in users. I was ...
0
votes
3
answers
341
views
Setup VSTS Continuous Integration (CI) for ASP.NET Core Devextreme project
I have tried to setup the Continuous Integration (CI) in VSTS for the ASP.NET core project developed using Devextreme.
I have checked the NuGet.config file in the project, seems the devextreme-...
0
votes
1
answer
88
views
I am getting error while only using "Data" class library reference in my ASPNet core 1.0 Project Visual studio 2017
Severity Code Description Project File Line Suppression State
Error CS1705 Assembly 'Data' with identity 'Data, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' uses 'System....
1
vote
0
answers
113
views
.Net Core 1.1 why Async Task gettting slower and slower then multiple requests happen
I run some test using .Net Core 1.1 using below code.
public async Task<IActionResult> Get()
{
return await Task.Run(() => Ok());
}
When i use AB (apache benchmark) tool to run test, ...
0
votes
0
answers
2k
views
Updating to .NET Core 2.0: The type 'Color' exists in both 'Shaman.System.Drawing' and 'System.Drawing.Primitives'
I am updating a .net core 1.0 project to .net core 2.0, it works fine in .net core 1.0, I have complied other codes such as Starup.cs, .csproj and authentication, but after that, errors comes out like ...
0
votes
0
answers
84
views
Facing issue on clicking Tenant rather all working fine for user and roles in AspBoilerPlate aspnet core with angular
Facing issue "an internal error has occured " on clicking Tenant.
How can I fix this issue. Please help me.
2
votes
1
answer
7k
views
The project file could not be loaded for csproj
I migrated my .netcore 1.1 proj to 2.0 using this link https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/
but when i perform "dotnet restore -v d" i get the following error:
Build ...
0
votes
0
answers
953
views
Is it support .NET Core Windows Server Hosting bundle 2.0 for .NET Core 1.0 app
Steps taken:
Environment: IIS 7.5 , Visual studio 2015 update 3, Install .NET Core Windows Server Hosting bundle,configured in machine ,and gave permission for publish folder,and changed to .net ...
0
votes
0
answers
481
views
How to do IIS HOSTING WITH ASP.NET CORE 1.0.3 with angular2 application
I have created an asp.net core 1.0 project with angular in visual studio 2015 update 3 and I am new to .net core hosting , the project is running in local machine and when i published the .net core ...
-1
votes
2
answers
702
views
netcore.app - no compatible framework
I have a web application set with Target framework .NETCoreApp1.1
It works when I run locally, but when I publish to the server (I'm working remotely and can't web publish - instead I publish to file ...