What is the difference between Microsoft.AspNet.WebApi.OData and Microsoft.Data.OData and Microsoft.AspNet.OData?
I am creating a RESTful service using Web API and Entity Framework with OData endpoints. The Microsoft.AspNet.WebApi.OData and Microsoft.Data.OData and Microsoft.AspNet.OData packages seem to overlap,...
- Modified
- 4 Aug at 18:57
ServiceStack: how to change member attributes in the API model at service startup?
We use ServiceStack for our Web APIs developed in C#. I would like to change the required attribute of our data members at the moment the web service starts. Currently the required attribute is defin...
- Modified
- 23 May at 12:22
Css transition from display none to display block, navigation with subnav
This is what I have [jsFiddle link](https://jsfiddle.net/vour8ad9/) ``` nav.main ul ul { position: absolute; list-style: none; display: none; opacity: 0; visibility: hidden; p...
How can I get Url Referrer in ASP.NET Core MVC?
I am trying to migrate an ASP.NET MVC webform to ASP.NET Core MVC. Currently, I am having trouble with the `Request.UrlReferrer` class. The original line is: ``` [HttpPost] public async Task<Act...
- Modified
- 23 Jan at 08:26
Is it possible to Git merge / push using Jenkins pipeline
I am trying to create a Jenkins workflow using a Jenkinsfile. All I want it to do is monitor the 'develop' branch for changes. When a change occurs, I want it to git tag and merge to master. I am usin...
Key Advantages of ASP.net CORE over Asp.net
What are the of `ASP.net` `CORE` over `ASP.net`, and When we can start using this new Framework? I have just read some article about `ASP.net` `CORE` but could not found sufficient Answer. Can anyb...
- Modified
- 25 Jun at 10:9
Interaction between forms — How to change a control of a form from another form?
I would like to set comboBox.SelectedValue when I select the row in my dataGridView on first form to populate comboBox with that value on another form, On second form in my load event I have `comboBox...
Repository size limits for GitHub.com
Lately I have been using GitHub and I am wondering what is the repository size limit for files hosted on github.com?
- Modified
- 3 Aug at 18:28
Difference between chr(13) and chr(10)
What is the difference between `chr(13)` and `chr(10)` in Crystal Reports? I know `chr(13)` is used as a line break. But one of our reports uses this line: ``` {Address1} + chr(13) + chr(10) + {Addr...
- Modified
- 7 Jun at 21:20
How to solve "Both use the XML type name X, use XML attributes to specify a unique XML name and/or namespace for the type"?
I have the following enum definitions... ``` namespace ItemTable { public enum DisplayMode { Tiles, Default } } namespace EffectiveItemPermissionTable { public enum DisplayMode { ...
- Modified
- 26 Jan at 12:11
Embedded resource in .Net Core libraries
I just have started looking into .Net Core, and I don't see classical resources and anything what looks like resources. In classical .Net class libraries I was able to add, for example, text filtes wi...
- Modified
- 1 Sep at 08:47
Multiple filters for one logger with Serilog
I am trying to setup Serilog with my ASP.NET Core application. I'd like to have one log file for all controllers, one for all services, one for the rest and ideally one which contains everything. Ever...
Xampp-mysql - "Table doesn't exist in engine" #1932
Xampp error after moving xampp folder: [](https://i.stack.imgur.com/Fwc8O.png) Apache is running fine: [](https://i.stack.imgur.com/DEy9P.png) as given below image i'm sucess to run apache but una...
Resolve error 'there is no argument given that corresponds to required formal parameter'?
I have following code where I'm getting error while compiling in C# visual Studio 2015. ``` class Oval:Shape { private double major_axis, minor_axis; public Oval(double Major_Axis, double Min...
How to change the port number for Asp.Net core app?
I added the following section in `project.json`. ``` "commands": { "run": "run server.urls=http://localhost:8082", "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --...
- Modified
- 23 Oct at 02:42
How to create .NET Platform Standard project
I read up on the new .NET Platform Standard concept replacing the old Portable Class Libraries, which seems nice. However, I can't seem to figure out how to create such a library, yet. Is there a Pr...
- Modified
- 10 Jan at 13:58
WPF Web Browser Control and DPI Scaling
I'm working with a WPF application that uses the Web Browser control and I'm having issues with High DPI scaling. It looks like the Web Browser control is not properly respecting the DPI settings of...
- Modified
- 3 Aug at 22:35
How to flatten a struct in a Spark dataframe?
I have a dataframe with the following structure: ``` |-- data: struct (nullable = true) | |-- id: long (nullable = true) | |-- keyNote: struct (nullable = true) | | |-- key: string (nu...
- Modified
- 5 Feb at 05:17
Paging the huge data that is returned by the Web API
We created the WebAPI for querying an Oracle database. The query returns results that are huge, so it sometimes throws `OutOfMemoryException`. The recommendation was to use the concept. I don't unde...
- Modified
- 3 Aug at 20:23
App redirects to Account/AccessDenied on adding Oauth
I've stumbled upon an issue where inconsistently the application redirects the user to `Account/AccessDenied/` upon adding a social media authentication to the current logged in user. It seems to work...
- Modified
- 3 Aug at 19:35
ASP.NET Core Identity - get current user
To get the currently logged in user in MVC5, all we had to do was: ``` using Microsoft.AspNet.Identity; [Authorize] public IHttpActionResult DoSomething() { string currentUserId = User.Identity.G...
- Modified
- 30 Apr at 20:9
WEB API - Authorize at controller or action level (no authentication)
I have an existing API that has No Authentication. It`s a public Web API which several clients use by making simple requests. Now, there is the need to authorize access to a certain method. Is there...
- Modified
- 3 Aug at 18:27
How to update REST API Client from a Swagger file in Visual Studio
How do I update a REST API Client from a Swagger file in Visual Studio? I created my REST API Client via the "Add -> REST API Client" menu option when right-clicking on the project. See screenshot b...
- Modified
- 6 Sep at 17:41
Get all records from azure table storage
Using this code block ``` try { StorageCredentials creds = new StorageCredentials(accountName, accountKey); CloudStorageAccount account = new CloudStorageAccount(creds, useHttps: true); ...
- Modified
- 1 Sep at 05:4
How to ignore null values globally by calling obj.ToBsonDocument() using MongoDB C# driver?
I have a class hierarchy (a big one) which was generated from an XML schema (XSD). I need to parse a string value, which is actually an XML to an object using the generated class hierarchy and then I ...