Data dodania Pytanie
2017-07-15 21:07 Get root namespace (assembly namespace) of loaded assembly »
I'm using the GetTypeInfo() method to get the TypeInfo of a class from an assembly. Through that I'm trying to get the root namespace of that assembl...
(2) odpowiedzi
2017-07-15 18:07 Guid property on Mysql Entity Framework »
I'm using Entity Framework with MySql extension on ASP.NET Core application. One of my domain model Message have Guid property and when I want to exec...
(1) odpowiedzi
2017-07-15 14:07 Unloading unused textures in Unity »
I have swapped some of my Sprite objects in favour of Meshes without textures as they should take up less memory. However, when checking my Profiler,...
(0) odpowiedzi
2017-07-15 11:07 Null parameter alternative C# 6.0 »
I have seen new feature in C# 6 which allows code to skip if statements for null checks. For example: return p?.ToString(); How can this be done f...
(4) odpowiedzi
2017-07-15 10:07 How to get only first letters from string in C# »
I am new to C# and I am using windows forms. I am dealing with Postcodes string and I am trying to get the first letters from the Post code and store ...
(6) odpowiedzi
2017-07-15 09:07 C# equivalent of { }.Contains() in VB »
I'm working on a VB => C# translator, and I've run across some VB code that I'm not sure has a direct translation to C#. In VB you can do something l...
(2) odpowiedzi
2017-07-15 08:07 type Parameter name: Type is not derived from a java type. - Xamarin android »
My app was working fine. All of a sudden I realized I am getting this error when I try to sign in and sign out using Facebook. In my app, when i sign ...
(1) odpowiedzi
2017-07-15 06:07 StreamWriter throws IOException Logon failure: unknown user name or bad password »
I'm trying to have my web service write to a shared drive on our intranet. I'm getting an IOException on my StreamWriter string fullpath = path + "\...
(1) odpowiedzi
2017-07-15 05:07 Cannnot get JSONP response from WebAPI using jquery »
I am developing a C# MVC web application that will send cross domain requests to a Web API REST Service. However I keep on getting errors. My jquery c...
(2) odpowiedzi
2017-07-14 20:07 ASP.NET Core HttpClient can't make HTTPS calls in container »
I am in the process of migrating an API from Windows .NET Full Framework (4.6.1) to ASP.NET Core. I was able to spin up a container in our Rancher en...
(1) odpowiedzi
2017-07-14 19:07 Conditional binding in WebApi2 controller method »
I am using Ninject with the following packages: Ninject Ninject.MVC5 Ninject.Web.Common (and Common.WebHost) Ninject.Web.WebApi (and WebApi.WebHost)...
(2) odpowiedzi
2017-07-14 18:07 Displaying file inline throws 'Could not find a part of the path' »
I'm building an ASP.NET MVC 4 app that needs to allow the user to display a PDF inline in the browser (not offered for download) in Chrome. I've used ...
(1) odpowiedzi
2017-07-14 16:07 Best way to manage key-value pair in c# »
There is a requirement. I have one excel import feature to add data to database from excel file. I need to add there a filter to check data before imp...
(1) odpowiedzi
2017-07-14 15:07 Change Color of Xamarin Forms Label in C# only, no XAML »
I have this XAML code: <StackLayout Grid.Row="0" Grid.Column="0" Padding="15,10,20,10" HorizontalOptions="StartAndExpand" VerticalOptions="CenterA...
(2) odpowiedzi
2017-07-14 14:07 C# string.split variances »
I have probably missed something very basic but this has me stumped. When using String.Split() I get different results between .Split(' ') and ...
(1) odpowiedzi
2017-07-14 14:07 How to pass model instance from table to modal popup? »
I have this piece of code, which generates a table of records (name and info) and each row should have a edit button which opens a modal popup that al...
(1) odpowiedzi
2017-07-14 12:07 Is there a way to reconstruct a tuple to a compatible class? »
Given a tuple (int, string) v and a class C { int, string }, in C#7, implementing C's Deconstruct(out int k, out string v) would allow the ff.: C c =...
(3) odpowiedzi
2017-07-14 09:07 Custom Data Type returning as an Json Object in umbraco »
i am trying to create a carousel as a Data Type, for that i am trying to create a custom Data Type like this from Developers Tab in content section...
(2) odpowiedzi
2017-07-13 21:07 C#: Check If User Has Access To Server Without Attempting Connection »
Good afternoon, I am currently facing an issue where I have a list of server names, and I need to verify that a windows authenticated user has permis...
(2) odpowiedzi
2017-07-13 19:07 MVC 5 HTML Form Submit Not Firing »
I've been following along with a book titled Pro ASP.net and have come across a rather odd issue. I've got a Razor view linked to a controller, and on...
(3) odpowiedzi
2017-07-13 18:07 MySql.Data.MySqlClient.MySqlException: “The host localhost does not support SSL connections.” »
I use msyql.data 8.08 and dapper and .net core to connection mysql5.7.18 but following exception is appeared: MySql.Data.MySqlClient.MySqlException:...
(1) odpowiedzi
2017-07-13 16:07 Prevent Windows 10 from automatically restarting after an update programmatically »
QUESTION: Is there a programmatic way to prevent Windows 10 from automatically restarting after an update? We work on "mission-critical" software th...
(2) odpowiedzi
2017-07-13 14:07 order objects by given values »
Given: class C { public string Field1; public string Field2; } template = new [] { "str1", "str2", ... }.ToList() // presents allowed values ...
(5) odpowiedzi
2017-07-13 09:07 False after casting interned strings to objects »
I was trying to better understand string's interning in c# and got into the following situation: string a ="Hello"; string b ="Hello"; string c = new...
(2) odpowiedzi
2017-07-13 08:07 ILoggerFactory in extension method - lifetime and dispose »
To create a ILogger in extension methods I store a ILoggerFactory in a static class public static class ApplicationLogging { public static ILogge...
(2) odpowiedzi
2017-07-13 08:07 System Web HttpException (Renderbody) in MVC »
i am building an online shop in MVC and now working on its design, i downloaded like 2 bootstraps , and tried each one, i copied the index to my _layo...
(2) odpowiedzi
2017-07-13 08:07 'multipart/form-data' is not supported for this resource »
I have WEbAPI2 back end. I try to send form data from postman But get this error "No MediaTypeFormatter is available to read an object of type...
(2) odpowiedzi
2017-07-13 01:07 EF Core: I end up with duplicates in database when importing records with json.net »
I will start with the code that causes trouble just in case there is something super obvious that I am missing: foreach(JToken OrgToken in json["Orgs...
(1) odpowiedzi
2017-07-13 01:07 How to keep track of multiple versions of assemblies? »
We're deploying microservices to azure service fabric. How do we keep track of multiple versions of our services? How we will allow multiple versio...
(1) odpowiedzi
2017-07-12 22:07 How to set returned Image Data as ng-src of image in AngularJS »
I've got two ASP.Net Core methods at the moment - one tied to an API call, and one tied to a client-side Razor helper. They're both located in my Hom...
(1) odpowiedzi
2017-07-12 19:07 CQRS Dispatcher Without Service Locator »
I am creating a new Asp.Net Core solution based on an existing Asp.Net 4.5 solution. The current solution uses Microsoft Unity Container and the Infr...
(2) odpowiedzi
2017-07-12 16:07 Disable ModelBinder in .NetCore »
HeyGuys I'm working on a WebApi project that receives requests from clients and redirects these requests to other services that are not open for dire...
(1) odpowiedzi
2017-07-12 16:07 Add versioning to existing WebAPI »
I have an existing ASP.NET WebAPI project with a controller that looks like this: namespace WebSite.WebApi.Controllers { [RoutePrefix("api/accoun...
(1) odpowiedzi
2017-07-12 15:07 TextBoxFor decimal »
In my database I stored fields with the data type decimal. I am using exactly the same (decimal) data type in my ASP.NET application. This is inside ...
(3) odpowiedzi
2017-07-12 13:07 c# REST API polymorphic return type »
I have created data contracts as below having inheritance:- [DataContract(Name = "Animal")] public class Animal { ... } [DataContract(Name = "Dog ")...
(1) odpowiedzi