How to read values from this XML

I'm trying to read the xml from a soap response. It is given below `<OTA_AirLowFareSearchRS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.9.2" PricedItinCount="1" BrandedOneWayItinCo...
more »

2017-03-19 21:03 (1) Answers

asp.net webapi binding ef model with file

I have a webapi project and cannot figure out a nice way to bind the uploaded file content. I have an entity framework model as follows: public class Person { public int Id { get; set; } public string Name { get; set; } public UploadedF...
more »

2017-03-19 12:03 (1) Answers

Authorization Policy With Multiple Claims

I have created multiple authorization policies, each with 1 claim in it, doing a role check, like so: options.AddPolicy("SuperAdminPolicy", policy => policy.RequireClaim(ClaimTypes.Role, "SuperAdmin")); That all works fine. However, I'm now at...
more »

2017-03-18 14:03 (1) Answers

Asp.net Core Diagnostic Events in Visual Studio

Im am experimenting with Asp.net Core. I am using visual studio 2015 enterprise. I set up two MVC projects. The first is targeting the .net-framework and the other runs on .net core runtime (dotnet.exe). I noticed that when I run the app (targeting ...
more »

2017-03-17 22:03 (0) Answers

DELETE statement conflicted (ASP.NET MVC)

I have ASP.NET MVC app I have two relative tables Companies and Vacancies. When I delete Company, I want to delete relative to it Vacancies. Here is my controller public ActionResult Delete(int? id) { if (id == null) { ...
more »

2017-03-16 21:03 (1) Answers

ASP.NET Core - Download .exe returns 404 error

I have a ASP.NET core MVC application and in the wwwroot folder, I've added another folder called "Shaun" and in that folder I've dropped an exe to try and download: Now if I navigate to: http://localhost:PORT/Shaun/chromesetup.exe I get a 404 err...
more »

2017-03-16 11:03 (2) Answers

Control ascx does not exist

I have a Web Application project which has the below structure ProjectName -Controls --WebControls --MyControl.ascx -CustomerControls --CustDetails.ascx In the CustDetails.ascx control i am trying to load MyControl.ascx, so i have added a referen...
more »

2017-03-15 12:03 (1) Answers

How can I hook ASP .NET compilation process?

ASP .NET Dynamically generate classes & compiles an assembly to the Temporary ASP.NET files. I would like to be able to get information when this process happens. Ultimately, I would like to have an event that will fire the name of the source fi...
more »

2017-03-15 00:03 (0) Answers

Noob in ASP MVC Routing - 404 error

I'm new to API designing with VS2017 and I'm trying to make my simple API work with few SQL objects in a DB. I have a fairly simple project which looks like this : WebApiConfig.cs : public static void Register(HttpConfiguration config) ...
more »

2017-03-14 15:03 (3) Answers