Data dodania Pytanie
2017-10-03 19:10 How to filter entities using queries in C#? »
I need to create functionality that would allow users to filter entities using literal queries (i.e. age gt 20 and name eq 'john'). Is there a provide...
(1) odpowiedzi
2017-10-03 18:10 Downloading byte[] of generated pdf using nodeservices in Asp.net Core 1.1 »
i'm trying to download a nodeServices generated pdf file that is in the form of byte array. here is my original code: [HttpGet] [Route("[action]/{app...
(1) odpowiedzi
2017-10-03 15:10 foreach loop where order needs to be specific »
I am trying to go through an array of shipping methods, and then set them in a table as an option. The problem is that my shipping methods are scrambl...
(2) odpowiedzi
2017-10-03 12:10 Asp .NET Web Api + MVC + Angular 2 - action with two parameters »
I have an ASP .NET MVC application with Angular 2. I added a WebApi Controller and try to communicate from angular service with it, but it does not ac...
(1) odpowiedzi
2017-10-03 11:10 Explicitly marking derived class as implementing interface of base class »
interface IBase { string Name { get; } } class Base : IBase { public Base() => this.Name = "Base"; public string Name { get; } } clas...
(2) odpowiedzi
2017-10-03 11:10 Where are DB calls being processed? »
I've created a dynamic paging model to present data in pages for my projects. In my controller I have two calls for the DB : public async Task&l...
(0) odpowiedzi
2017-10-03 10:10 Render a Razor Page to string »
Problem: I need to render a Razor Page partial to a string. Why I want this: I want to create a controller action that responds with JSON containin...
(1) odpowiedzi
2017-10-03 07:10 WebApi - Sent Guid taken as a new Guid »
I have an ApiController class with a method accepting a complex object. public class SampleController : ApiController { [Route("api/Sample/")]...
(1) odpowiedzi
2017-10-02 17:10 Using multiple enum lists to populate a 2nd dropdown based on the values of the first dropdown »
I'm struggling with what seems like it should be really easy thing to do. Assume I have two drop downs Country and City. For a user of the system I ...
(1) odpowiedzi
2017-10-02 16:10 Why does compiler infer var to be dynamic instead of concrete type? »
Given this short example program: static void Main(string[] args) { Console.WriteLine(Test("hello world")); } private static...
(4) odpowiedzi
2017-10-02 14:10 ASP.NET exceptions not going through Application_Error »
I'm trying to implement global error handling in an ASP.NET Web API 2 app. To kick things off, I have a controller and I simply throw new Exception("o...
(0) odpowiedzi
2017-10-02 12:10 Linq to objects: inner query performance »
During answering on one of questions I saw 2 examples of LINQ code which should work exactly same. But I was wonder about performance, and found that...
(1) odpowiedzi
2017-10-02 12:10 Validate multiple Partial view without BeginForm in a View »
I have a View (Index.cshtml) which has two modals (Bootstrap modal). I have loaded a Partial View in each ‍‍‍modal. So in this View I have two ...
(1) odpowiedzi
2017-10-02 10:10 C# if not working in release build »
Trying to debug a problem on a C# application, I stumbled upond this problem which is the cause of the app malfunctioning. Basically I have this code...
(0) odpowiedzi
2017-10-02 10:10 C# Core 1.1 Web API Receive zip file »
I created Web API endpoint to receive a zip file which looks like this [HttpPut()] [Consumes("application/zip")] public async Task<IAc...
(2) odpowiedzi
2017-10-01 22:10 ASP.NET Core 2.0 Value cannot be null. Parameter name: Name »
I'm trying to host a ASP.NET Core 2.0 WebApplication in local IIS, but evertime i get the following error: Value cannot be null. Parameter name: name ...
(0) odpowiedzi
2017-10-01 21:10 Facebook login is now working with screen set to Portrait in Unity »
I am developing a game with Unity. In this game I have a facebook login and I am using facebook SDK version 7.9.4, and unity version 5.6.3f1. I need t...
(0) odpowiedzi
2017-10-01 19:10 Discord.NET Guild.DefaultChannel does not work »
I am coding a discord bot, and I want it to send a message to a server default channel whenever the bot joins a new server. Here is my code client.J...
(1) odpowiedzi
2017-10-01 19:10 Paging in webgrid not working in asp.net mvc 5 »
I have following view and controller. Problem is that when enabling paging and I click on next page, previous view is gone @using System @using Syste...
(1) odpowiedzi
2017-10-01 16:10 Why does Visual Studio attempt to deploy to emulator when device is selected »
Problem I am running Visual Studio 2017 and attempting to deploy a Xamarin app to my Android hardware (Motorola Moto G 4) which is plugged in to my c...
(2) odpowiedzi
2017-10-01 15:10 How to persist a cart through a single page »
I'm currently facing an issue trying to create a page with a cart system which would look like this: Items part of the page: Item1 | Some info | Ad...
(0) odpowiedzi
2017-10-01 12:10 how to use json ajax for google map markers »
I try to use the Json Ajax for google map markers.So after clicking on the button run Ajax, I get a problem with it. it's not display markers Should ...
(1) odpowiedzi
2017-10-01 04:10 C# Web Api, log4net rolling by date overwrite file »
I'm using Log4net in my web API, that's roll daily, the problem is that all the logs of previous days, have only couple of entries in the day after th...
(0) odpowiedzi
2017-09-30 22:09 EFCore Linq ThenInclude Two Foreign Keys To Same Table »
Does anyone see what I am doing wrong? ProjectActivityTasks has the UnitOfMeasureId and the ProjectActivityTaskTypeId. With the way it is written, it ...
(1) odpowiedzi
2017-09-30 16:09 Restore Previous State of app on database migration failure (ClickOnce) »
I want to restore previous version of C# application published using ClickOnce, if database migration fails because database wont be latest and it wil...
(0) odpowiedzi
2017-09-30 13:09 C# - Break Loop from another button »
In my program i'm starting for loop using button, I want to break this for loop using another button. For example: private void button1_Click(object ...
(3) odpowiedzi
2017-09-30 08:09 Error on sign-in: "Format of the initialization string does not conform to specification starting at index 0" »
I'm moving my site and database from from Azure to GoDaddy. Everything worked on Azure. On GoDaddy, the site pulls inventory from the database usi...
(0) odpowiedzi
2017-09-29 21:09 Razor forms are generating a different Html Id than expected »
I am using MVC Core 1.1 with Razor and binding it to a ViewModel which has a property: [Required(ErrorMessage = "Required")] [Display(Name = "Surname...
(0) odpowiedzi
2017-09-29 17:09 In Xamarin.Forms Device.BeginInvokeOnMainThread() doesn’t show message box from notification callback *only* in Release config on physical device »
I'm rewriting my existing (swift) iOS physical therapy app "On My Nerves" to Xamarin.Forms. It's a timer app to help people with nerve damage (like me...
(1) odpowiedzi
2017-09-29 17:09 Augment parameter list after partial application in Language-Ext »
I'm using language-ext in a C# .NET Core project and I'm able to do partial application on an existing function: Func<T1, T2, T3, T4, R> origin...
(0) odpowiedzi
2017-09-29 17:09 How to convert a .wav file to .mp3 format in botframework »
I'm creating a speech-to-text bot, I would like to make this bot available on Facebook channel. Could you please help me to convert the bot from .wav ...
(0) odpowiedzi
2017-09-29 16:09 Apply MediatR requests dynamically to objects »
I am trying to use MediatR in my web api application. My requirements states that, when a request arrive, it should be executed against a variable num...
(0) odpowiedzi
2017-09-29 15:09 Chart with multi-level labels on x-axis »
I'm creating a VSTO add-in that among other things is supposed to create a line chart for some annual data. This data contains datapoints on a weekly ...
(2) odpowiedzi
2017-09-29 14:09 Integral type promotion inconsistency »
using System; public class Tester { public static void Main() { const uint x=1u; const int y=-1; Console.WriteLine((x...
(2) odpowiedzi
2017-09-29 10:09 Accidentally splitting unicode chars when truncating strings »
I'm saving some strings from a third party into my database (postgres). Sometimes these strings are too long and need to be truncated to fit into the ...
(2) odpowiedzi