Data dodania Pytanie
2017-09-13 23:09 instead of downloading Open pdf in browser(using itext) mvc »
I am able to download and store the pdf document that is being generated but instead of downloading I want to open it in browser. I have something lik...
(1) odpowiedzi
2017-09-13 23:09 c# Drawing with gdi32.dll vs System.Drawing.Graphics »
So I have some code that creates a highlight effect on top of a picture box with gdi32.dll and I am wondering if there is a simpler way to do it with ...
(1) odpowiedzi
2017-09-13 18:09 aspnet core integration test returning 404 »
I'm trying to implement the integration test for my app following the tutorial from: https://docs.microsoft.com/en-us/aspnet/core/testing/integration-...
(0) odpowiedzi
2017-09-13 18:09 Getting error foreach statement cannot operate on variables of type '' because '' does not contain a public definition for 'GetEnumerator' »
I am getting an error here in my razor view: foreach statement cannot operate on variables of type 'Project.Model.ResultsClass' because 'Project...
(3) odpowiedzi
2017-09-13 18:09 RESTful service and JSON array »
I have a .NET Core 1.x Web API project and I am trying to accept an array on HTTP post, but I have been unable to get this working. I have validated t...
(3) odpowiedzi
2017-09-13 16:09 Integrating .net Library into Objective C iOS App »
This is the Github library : https://github.com/mono/Embeddinator-4000 which i am currently using for implementing few C# developed API in Objective...
(0) odpowiedzi
2017-09-13 15:09 Compiling views on build in asp mvc using custom ViewEngine »
In project we have implemented custom view engine inheriting from RazorViewEngine to solve custom views locations and logic behind choosing them. The...
(1) odpowiedzi
2017-09-13 14:09 Why does C# support abstract overrides of abstract members? »
Whilst browsing through some legacy code, I was surprised to encounter an abstract override of a member that was abstract by itself. Basically, someth...
(1) odpowiedzi
2017-09-13 12:09 How to determine if the property belongs to Base class or sub class dynamically in generic type using reflection? »
I have following two classes (models), one is base class and other is sub class: public class BaseClass { public string BaseProperty{get;set...
(3) odpowiedzi
2017-09-13 07:09 Cannot install EntityFramework 6.1.3 on my Web API .Net Core Project »
I want to ask for help on how to install EntityFramework on my web api project (.net core). I tried installing it but it keeps showing the error "Pac...
(1) odpowiedzi
2017-09-13 06:09 .Net Core ValidateAntiForgeryToken throwing web api 400 error »
Visual Studio 2017 with Web Api using .net Core 1.1 I'm using, but I am getting a 400 Bad Request Error. Error Occurs in every way: Angular http ...
(1) odpowiedzi
2017-09-12 21:09 Kendo Pie Chart won't render (remote data) »
This is just one example of the many iterations I tried. Essentially, I want to show a pie chart with job types by cost amount. I am able to connect t...
(1) odpowiedzi
2017-09-12 09:09 angularjs Pass data has list data »
I want to pass data what has list of child like here { id : 1, title : 'test', childs : [ { id : 1, name: 'name1' }, { id : 2, name: 'name...
(2) odpowiedzi
2017-09-12 08:09 .net core 2.0 ConfigureLogging xunit test »
In my xUnit integration test in my .NET Core 2.0 project I cannot see log messages in the terminal that also prints the test results. When the code is...
(1) odpowiedzi
2017-09-12 00:09 ASP.Net MVC Api Controller - Custom Route »
I know this is a clone of the post ASP.net web api 2 Route-Attribute not working, but I am having another issue like this. I can use the standard api...
(1) odpowiedzi
2017-09-11 22:09 Is there any benefit on declaring a local constant of string over a local variable C# »
Is there any noticeable benefit regarding performance on using a constant over a string. Suppose the following case public void MethodUsingConstant()...
(1) odpowiedzi
2017-09-11 19:09 SignalR - Works when deployed to Server, but stops after a few hours (MVC) »
EDIT: Look at the bottom of this post for updates. My SignalR implementation works perfectly on my local system. But when I deployed it out to my ser...
(1) odpowiedzi
2017-09-11 17:09 error returned when no error thrown..WEB API C# »
I have a Web API 2.0 action that does the following: [System.Web.Http.Route("api/wdretrievedata")] [System.Web.Http.HttpGet] public IHttpAc...
(2) odpowiedzi
2017-09-11 14:09 Current culture - display euro symbol (€) instead of EUR string »
With current culture set to "sk-SK" (Slovakia with currency - euro) I want to show euro symbol (€) instead of "EUR" string when displaying price as ...
(1) odpowiedzi
2017-09-11 12:09 What is the right way to monitor application memory usage? »
For debugging purposes, I have written this little static method: public static long CheckMemory(long maxMemorySizeBytes) { GC.Collect(); GC....
(1) odpowiedzi
2017-09-11 12:09 Set razor view variable according to checkbox checked »
I am working on an online library using ASP.NET MVC. This is my view model for the library management page: public class ManageViewModel { public...
(1) odpowiedzi
2017-09-11 09:09 No service for type 'Microsoft.AspNetCore.Hosting.IHostingEnvironment' has been registered »
I have a problem when I want to fire add-migration command for a ASP MVC Core 2 project. No service for type 'Microsoft.AspNetCore.Hosting.IHostin...
(1) odpowiedzi
2017-09-11 09:09 EntityFramework tries to CAST enum to number »
I am using EntityFramework 6.1.3 with Oracle and I have enum like below: public enum Terms { NotSpecified, I, II, III, IV } I have entity which...
(0) odpowiedzi
2017-09-10 23:09 Null Entry for NonNullable Type in ASP.Net MVC 5 project »
I have a property in Model which needs to be Non Nullable. When submitting a Form if model state isinvalid, I want the user to get redirected to the s...
(1) odpowiedzi
2017-09-10 22:09 PrintQueue.AddJob hangs when printing to non-xps based printers »
I am trying to print an xps document to printers (network printer, some virtual local printers, xps and non xps based) with the following code. C# So...
(1) odpowiedzi
2017-09-10 19:09 C# Compiler - Unassigned DateTime Field and Local Variable »
Out of curiosity: This code is valid and executes: public class Program { private static DateTime date; public static void Main() { ...
(3) odpowiedzi
2017-09-10 19:09 IIS Express refuse connection from public IP »
I've developed a WebApi server. If I use localhost:9615/api/method it works fine. Even if I use an IP address 192.168.0.1:9615/api/method. I am very...
(1) odpowiedzi
2017-09-10 19:09 Web API Basic authentication always unauthorized »
I have a Web API with only one user, I'm trying to use the basic authentication to protect it but it always returns code 401 unauthorized. This is my...
(1) odpowiedzi
2017-09-10 18:09 Why is HashSet<Point> so much slower than HashSet<string>? »
I wanted to store some pixels locations without allowing duplicates, so the first thing comes to mind is HashSet<Point> or similar classes. Howe...
(2) odpowiedzi
2017-09-10 05:09 What is reason of getting "There is already an open DataReader associated with this Command which must be closed first" in ASP.Net MVC 5 project »
I am a beginner and learning Asp.Net MVC 5 web development. In one of my views I am getting exception as {"There is already an open DataReader ass...
(1) odpowiedzi
2017-09-10 02:09 How to get custom stored HTML5 data -* attributes values from DataTables »
Note:I accept Stephen Muecke as the answer to this question. I am using DataTables (datatables.net) to create a table of a list of items. The table ...
(1) odpowiedzi
2017-09-09 16:09 Exception CallbackOnCollectedDelegate when creating tensorflow graph »
I try to built a little tensorflow application with TensorFlowSharp and sometimes I recieve this exception: Managed Debugging Assistant 'CallbackO...
(1) odpowiedzi
2017-09-09 14:09 Alternate color for listview item UWP »
I have a class to color alternate the background of item, but if I delete a item, the background color does not update. Is there a way to refresh the ...
(1) odpowiedzi
2017-09-09 13:09 Same image resize and image crop functionality works in a Winforms app, and doesn't work in a Webapi app of the same solution »
Short intro: I have this solution which consists of a Webapi app, Winforms (UI) app, then Xamarin Forms (Android, UWP, iOS). Now, resize and crop fun...
(1) odpowiedzi
2017-09-09 12:09 Data Not getting Updated - Ninject Scope in WebAPI »
I am working in web api with ninject as dependency resolver Scenario: I need to generate a report as pdf which includes report data and the organisa...
(1) odpowiedzi