Retrieve XML data from ASP.NET SOAP Service to ASP.NET aspx page

I have web service which return XML data when user input Id. If ID exist in database it will return XML data, and now I create Test Project which I as reference use this SOAP Services. [WebMethod] public DataTable GetAkontasById(int Id) { OracleConnection conn = new OracleConnection(“DATA SOURCE=test-1:1521/test;USER ID=test;PASSWORD=test”); OracleDataAdapter dr = new OracleDataAdapter(“Select *…

ASP.NET Core 2.2 -> 3.0 upgrade. env.IsDevelopment() not found

I upgraded an existing 2.2 project to 3.0. I copied the new codes for Program/Startup from a new 3.0 project to my existing 2.2 project. It worked, but the IsDevelopment() below public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } caused an error like this: ‘IWebHostEnvironment’ does not contain a definition for…

I need to use Asp-net Identity Role and user management with Azure AD Role and User Management together in Asp.net Core

Integrate Azure AD authentication with asp.net core identity individual accounts Users can authenticate against my local database using the standard method Users can authenticate against Azure Active Directory Works fine with either one of the above But i need to use both for Authentication and Authorization for my application where Azure AD and Asp.net will…

Using `ProblemDetails` with an action carrying `[Produces(“application/xml”)]` in ASP.NET Core 2.2

I am intending to use ProblemDetails and inherited classes to express 422 errors. I created a dummy controller class and a single action in ASP.NET Core 2.2: [Route(“api/v1”)] [ApiController] public class ValuesController : ControllerBase { [HttpGet(“values/json”)] [Produces(“application/json”)] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status422UnprocessableEntity)] public ActionResult JsonGet() { var problemDetails = new ProblemDetails(); return UnprocessableEntity(problemDetails); } [HttpGet(“values/xml”)] [Produces(“application/xml”)] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status422UnprocessableEntity)]…