Data dodania Pytanie
2017-04-22 23:04 Localization on _Layout.cshtml »
I'm trying to apply localization on _Layout.cshtml _Layout.cshtml @using Microsoft.AspNetCore.Http.Extensions @using Microsoft.AspNetCore.Localizati...
(1) odpowiedzi
2017-04-22 21:04 Calculating e number C# »
I am trying to calculating e number by that e = 1 + (1/1! + 1/2! + 1/3! + ..) User going to select number of trials on that form. form int trial...
(2) odpowiedzi
2017-04-22 10:04 Json data passed as argument [FromBody] is Map to Class gives NULL »
I have a following JSON String , which is passed as a input parameter of my Web-API. I face trouble in accessing the multilevel JSON data , only NULL ...
(1) odpowiedzi
2017-04-22 10:04 How to change claim values in refresh tokens and bearer authentication »
I want to change the value of a claim via refresh tokens. My refresh token provider is like this: public class MyRefreshTokenProvider : Authenticatio...
(1) odpowiedzi
2017-04-22 05:04 Cannot get file from web api »
I am trying to send a file via a get request but this code is not working. I am using .NET Core and testing the API with Postman. // POST api/values ...
(2) odpowiedzi
2017-04-22 02:04 How do you run unit tests for a specific target framework in Visual Studio 2017? »
I am really loving the new .csproj format. It is so much better than that dreaded (limited) project.json. However, there is one thing that I am tryin...
(2) odpowiedzi
2017-04-22 01:04 Get random double (floating point) value from random byte array between 0 and 1 in C#? »
Assume I have an array of bytes which are truly random (e.g. captured from an entropy source). byte[] myTrulyRandomBytes = MyEntropyHardwareEngine.G...
(6) odpowiedzi
2017-04-21 23:04 How to create a service based in a WSDL of another service »
I am really new in services and are having some problems with one issue. The fact is, i have a WSDL of a SAP system and i need to create a Web API in ...
(2) odpowiedzi
2017-04-21 21:04 pass data from one controller action to another controller action in ASP.Net MVC 5 »
I need to pass data from one controller action to another. I do not want to use a. Session b. TempData Logic Below code is about the forget pass...
(1) odpowiedzi
2017-04-21 21:04 Application Insights Duration stopped working after TraceListener added »
I have a WebAPI project which is deployed to azure. Based on this Azure Friday... I've added Microsoft.AspNet.WebApi.Tracing 5.2.2 to my webapi ...
(0) odpowiedzi
2017-04-21 19:04 DateTime Format "dd/MM/yyyy" on ASP.NET MVC5 »
How I can show DateTime like this dd/MM/yyyy? Here my code [DataType(DataType.Date)] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")] public Da...
(2) odpowiedzi
2017-04-21 13:04 Entity Framework Core ignoring .Include(..) without .ToList(..) indirectly »
As noted in "Loading Related Data" from EF Core Documentation we can use .Include(..) to Eagerly Load navigation properties from the DbSet (or generic...
(0) odpowiedzi
2017-04-21 12:04 Interesting interview exercise result: return, post increment and ref behavior »
Here's a simple console application code, which returns a result I do not understand completely. Try to think whether it outputs 0, 1 or 2 in console...
(3) odpowiedzi
2017-04-21 11:04 Unit Test Save Changes failing »
Frameworks .NETCoreApp 1.1 EF Core 1.1.1 Xunit 2.2.0 Moq 4.7.8 Controller Post Method _yourRepository is injected in the controllers constructor an...
(3) odpowiedzi
2017-04-21 09:04 Would a Task<T>.Convert<TResult> extension method be useful or does it have hidden dangers? »
I'm writing client libraries for Google Cloud APIs which have a fairly common pattern for async helper overloads: Do some brief synchronous work to ...
(1) odpowiedzi
2017-04-21 01:04 How to query metadata for all existing fields »
We want to enable the client to post to an endpoint such as: [Route("Account", Name = "CreateAccount", Order = 1)] [HttpPost] public Acco...
(3) odpowiedzi
2017-04-20 21:04 Accessing httpcontext in class library with ASP.NET Core 1.1 (MVC) »
I am working on migrating my ASP.NET 4.6 framework code over to .NET Core. I'm only in the learning phase at this point. I'm new to MVC as I've always...
(2) odpowiedzi
2017-04-20 17:04 Creating instance of Entity Framework Context slows down under load »
We noticed that some very small webservice calls were taking much longer than we expected. We did some investigation and put some timers in place and ...
(0) odpowiedzi
2017-04-20 12:04 Update List in ViewModel with Ajax ASP .NET MVC »
I have a List (List) of Model objects which is presented in a view. I would like to add to that list without refreshing the page - therefore i thought...
(3) odpowiedzi
2017-04-20 11:04 Getter and setter coming from different interfaces »
I really need to have something like this: interface IReadableVar { object Value { get; } } interface IWritableVar { object Value { set; } }...
(5) odpowiedzi
2017-04-20 11:04 Put specific values in specific table cells from database. (Razor - html) »
<table class="prTable"> <tr> <th>Exercise</th> <th>1</th> <th>2</th> ...
(1) odpowiedzi
2017-04-20 10:04 C# - Adding objects that implement interfaces to a dictionary »
I have a dictionary: private Dictionary<Type, IExample> examples; I have two classes that implement the interface: public class Example1 : I...
(5) odpowiedzi
2017-04-20 09:04 Dependency Injection to CustomFormatter »
I am working in webapi with ninject as dependency injector. All my constructor injection working fine for my controllers. I have custom mediatype fo...
(1) odpowiedzi
2017-04-20 07:04 Chrome opening for split second and throws exception using Selenium »
namespace Selenium_test { class Program { static void Main(string[] args) { string Path = @"C:...
(0) odpowiedzi
2017-04-20 03:04 Cors does not work on Asp.Net Web Api »
I tried solutions I found here in stackoverflow and other sites, but they did not solve my issue. So what I did first is to install the Owin.Cors pac...
(0) odpowiedzi
2017-04-19 18:04 Umbraco job feed rss »
Okay, so this problem has been driving me nuts for a while now. I'm working for a client who has a site on Umbraco, they're a recruitment company and ...
(0) odpowiedzi
2017-04-19 17:04 Select RadioButton based on database value »
Working on MVC 5 app. I have a table with a bunch of columns. One column contains a radio button list of items. Since this is an "edit" view I need ...
(1) odpowiedzi
2017-04-19 14:04 How are C# 6.0 default property values assigned and affected by scope when using function calls? »
I might get some downvotes here, but I've actually found conflicting information through normal searches and would like a definitive answer other peop...
(3) odpowiedzi
2017-04-19 13:04 WPF : How can i show my login window(project imported) before my application window? »
I have made a project for a login WPF application that basically perform a database connection. Now i am developing an application (always in WPF) tha...
(2) odpowiedzi
2017-04-19 13:04 Why Test Explorer doesn't see my NUnit tests for ASP.NET Core MVC? »
Visual Studio 2017, .Net CoreApp 1.1 (the target framework) I need to write NUnit tests for my ASP.NET Core MVC web-application. I often used NUnit f...
(1) odpowiedzi
2017-04-19 12:04 How to read configuration values from AppSettings and inject the configuration to instances of interface »
Just recently, I have been trying out the new asp.net features and came across this issue. I know that we can read the configuration as strongly type...
(1) odpowiedzi
2017-04-19 11:04 ASP.NET Web API - Getting 404 when posting a Base64 string with HttpClient »
Not sure what I'm doing wrong here. Trying to post a Base64 encoded byte array, and getting a 404. The thing is, when I try it with a normal value (...
(1) odpowiedzi
2017-04-19 09:04 .NET Core Microservice using RabbitMQ »
I am planing to use Microservice architecture for a project. The selected technology stack is .NET Core with Docker and RabbitMQ as a simple service b...
(1) odpowiedzi
2017-04-18 23:04 Need help calling Web Api controller methods to retrieve data »
I'm new to Web Api (I'm probably missing something very straightforward here) I have a Web Api project with ProductsController.cs that has a property ...
(1) odpowiedzi
2017-04-18 22:04 Create a Dynamic List using Entity Framework in MVC Razor »
I would like to make a list populate with vehicle makes using a stored procedure and Entity Framework but when it I get the following error: The mode...
(1) odpowiedzi