How to convert FileStreamResult to IFormFile?
I change the size of the image with this code. But this method returns `FileStreamResult`. I want to convert `FileStreamResult` to `IFromFile`. How can I do that? Note: I am using [CoreCompat][1] to c...
- Modified
- 4 Jun at 03:42
What is the purpose of the StringSegment class?
In the package lib there is a class `StringSegment` for which the comments indicate that it is: > An optimized representation of a substring. I was unaware of this particular class, until I discove...
- Modified
- 15 Nov at 21:22
How do I use Dapper to get the return value of stored proc?
I'm using Dapper in asp.net mvc 4 project .net f/w 4.6.1 using sql server 2016 express ``` <packages> <package id="Dapper" version="1.50.2" targetFramework="net461" /> </packages> ``` I have a st...
- Modified
- 24 May at 14:27
Asynchronously commit or rollback a transaction scope
As many knows, `TransactionScope` were forgotten when the `async` `await` pattern was introduced in .Net. They were broken if we were trying to use some `await` call inside a transaction scope. Now t...
- Modified
- 17 Mar at 18:51
ASP.NET Core web api action selection based on Accept header
I want to return two different formatted responses for the same feature (a list of entities) based on the accept header of the request, it is for a "json" and a "html" request. Does the asp.net core ...
- Modified
- 24 May at 11:8
Load local images in React.js
I have installed React using `create-react-app`. It installed fine, but I am trying to load an image in one of my components (`Header.js`, file path: `src/components/common/Header.js`) but it's not lo...
How can I get the height of an element using css only
We have a lot of options to get the height of an element using jQuery and JavaScript. But how can we get the height using CSS only? Suppose, I have a div with dynamic content - so it does not have a...
- Modified
- 24 May at 14:56
AssemblyInitialize method doesnt run before tests
I am using MsTest V2 framewrok for my tests. I have Test automation framework (TAF) project and project with tests. Tests project inherited from TAF and contains only tests. In TAF i have a class whic...
- Modified
- 4 Jan at 10:13
How to create a new component in Angular 4 using CLI
In angular 2 I use ``` ng g c componentname ``` But It is not supported in Angular 4, so I created it manually, but it shows error that it is not a module.
- Modified
- 24 May at 07:17
'Property does not exist on type 'never'
This is similar to [#40796374](https://stackoverflow.com/questions/40796374/property-x-does-not-exist-on-type-never) but that is around types, while I am using interfaces. Given the code below: ``` in...
- Modified
- 17 Nov at 22:46
ArrayBuffer to blob conversion
I have a project where I need to display djvu schemas in browser. I found this old [library on Github](https://github.com/lebedkin/minidjvu.js) which, as far as I understood, converts djvu files to b...
- Modified
- 24 May at 02:23
Using authentication token in azure sdk fluent
To authenticate with Azure in azure sdk fluent nuget, there is a method that uses client id and secret as below ``` var azureCredentials = new AzureCredentials(new ServicePrincipalLoginInformation ...
- Modified
- 24 May at 01:17
Servicestack FallbackRoute not recognizing trailing slash
So, the ServiceStack FallbackRoute in my code is [FallbackRoute("/{Path*}/")], which is the setup that the ServiceStack documentation says will handle every unmatched route. If given a route like exa...
- Modified
- 23 May at 22:27
IdentityServer4 - ApiResource and Client, how are they tied together
I am trying to determine how ApiResource and Client are tied together. How do I go about ensuring that someone requesting a token from a Client is requesting it for a particular ApiResource has acces...
- Modified
- 23 May at 22:1
TypeError: can't pickle _thread.lock objects
Trying to run two different functions at the same time with shared queue and get an error...how can I run two functions at the same time with a shared queue? This is Python version 3.6 on Windows 7. ...
- Modified
- 23 May at 20:39
What is the equivalent package of ORMLite used in case of Xamarin.Android application
In case of Android project ORMLite has been used. I would like to know what is the equivalent package that should be used in case of Xamarin.Android application. From some blogs there is a mention of ...
- Modified
- 23 May at 20:53
Kestrel with IIS - libuv.dll missing on run
We're setting up an existing Web API server to serve site(s) alongside an existing API. I have been loosely following [this article](http://miniml.ist/dotnet/how-to-serve-a-static-site-plus-a-web-api-...
- Modified
- 23 May at 19:31
WPF App Using new csproj format
I am experimenting with migrating a WPF project, defined using the old csproj format, to the new format under VS 2017. I was able to get most of the way to a successful build using information I foun...
- Modified
- 23 May at 17:9
Dictionary is not supported for serialization/deserialization of a dictionary, keys must be strings or objects
I have this method that is returning Dictionary as a JsonResult when I try to deserialize this Dictionary in Ajax I am getting this error: This is my method in MVC: ``` [HttpPost] public JsonResult ...
- Modified
- 23 May at 16:33
Set Item Permissions
I now know how to set the permissions of a folder in a library: ``` public void ChangeItemPermissions() { _SharePoint.ClientContext _ClientContext = new _SharePoint.ClientContext("https://share...
- Modified
- 26 May at 07:55
.NET Core vs ASP.NET Core
What exactly is the difference between .NET Core and ASP.NET Core? Are they mutually exclusive? I heard ASP.NET Core is built on .NET Core, but it can also be built on the full .NET framework. So wh...
- Modified
- 26 Feb at 21:24
TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader
I'm trying to iterate through a group of files in a folder on my local machine and upload only ones where the file names contain "Service_Areas" to my FTP site using using this code (Python 3.6.1 32 b...
ASP.NET MVC checkbox always false
I made an asp.net website, but the checkbox is always false. Why is this so? Model: CSHTML: The `Remember` property is always false, if the checkbox is checked then `Remember`is still false.
- Modified
- 5 May at 13:38
How to retry Ansible task that may fail?
In my Ansible play I am restarting database then trying to do some operations on it. Restart command returns as soon as restart is started, not when db is up. Next command tries to connect to the data...
- Modified
- 6 Feb at 17:15
What is server garbage collection in ASP.NET Core?
I've upgraded a ASP.NET Core project to VS2017 and the new csproj, and there is this option: ``` <PropertyGroup> <ServerGarbageCollection>true</ServerGarbageCollection> </PropertyGroup> ``` Wha...
- Modified
- 24 May at 07:6