The release of .NET Standard has been officially announced here. I looked for a way to update .NET Standard to version 2.0 as I could see it was not installed on my workstation. As shown in Figure 1, I only had version 1.0 – 1.6 installed. Figure 1, how to upgrade, install new version of […]
Read More →Tags: ASP.NET
A route named ‘*’ is already in the route collection, Azure Web App
I was deploying an ASP.NET Web API to an Azure App Service Web App and I got this error: Server Error in ‘/’ Application. A route named ‘HelpPage_Default’ is already in the route collection. Route names must be unique. Parameter name: name Description: An unhandled exception occurred during the execution of the current web request. […]
Read More →Always get "Authorization has been denied for this request." ASP.NET Web API
I was creating an ASP.NET Web API today and when I called one of the Web APIs (/api/values) I got the following response: {“Message”:”Authorization has been denied for this request.”} It turns out by default ‘Individual User Accounts” authentication is enabled by default. See Figure 1. Figure 1, {“Message”:”Authorization has been denied for this request.”} […]
Read More →ASP.NET Core (-4077,–4047,–4089, -4095)
If you get any of these errors, take a memory dump of your process, like I discuss below and look at the stacks. Create a memory dump for your slow performing Web App How to take a memory dump from a specific App Service instance Create and deploy an ASP.NET Core Web API to Azure […]
Read More →Create and deploy an ASP.NET Core Web API to Azure Windows
There are a number of things I want to accomplish with this and a few future articles: How to deploy an ASP.NET Core Web API to an Azure App Services Web App How to deploy an ASP.NET Core Web API to an Azure VM Check out some of my other articles I wrote in regards […]
Read More →How to create a Feedback Web User Control form in C# (Part 2)
If you have not read Part 1, read it here. [sourcecode language=”csharp” gutter=”false” toolbar=”false” autolinks=”false”] <%@ Control Language="C#" CodeFile="LeaveFeedBack.ascx.cs" Inherits="include_LeaveFeedBack" %> <asp:Table HorizontalAlign="Center" ID="BlogFeedbackTable" runat="server"> <asp:TableRow><asp:TableCell> </asp:TableCell></asp:TableRow> <asp:TableRow><asp:TableCell BackColor="#2BA94F" HorizontalAlign="Center" ForeColor="White" ColumnSpan="2">Feedback / Question></asp:TableCell></asp:TableRow> <asp:TableRow><asp:TableCell> </asp:TableCell></asp:TableRow> <asp:TableHeaderRow> <asp:TableHeaderCell HorizontalAlign="Left">Your Name:</asp:TableHeaderCell> <asp:TableHeaderCell HorizontalAlign="Left">Your Email:</asp:TableHeaderCell> </asp:TableHeaderRow> <asp:TableRow> <asp:TableCell HorizontalAlign="Left"><asp:TextBox ID="TextBoxName" Width="245" MaxLength="20" runat="server" /></asp:TableCell> <asp:TableCell HorizontalAlign="Left"><asp:TextBox ID="TextBoxEmail" Width="245" MaxLength="50" […]
Read More →How to create a Feedback Web User Control form in C# (Part 1)
While creating this technical blog website, I decided to implement the functionality that allows readers to give feedback. This is a common function. What is not common is finding examples of how to create a feedback form. As well, a feedback form that can be resued inside of each blog using a web control. So […]
Read More →LINQ to NHibernate, JQuery/jqGrid SubGrid, HQL and ICriteria
My video on this topic can be found here. We will do 4 things in the article. Add a subGrid to a JQuery/jqGrid Grid. Populate the Grid using ICriteria Populate the subGrid using IQuery (HQL) Change the ICriteria and HQL to use LINQ to NHibernate First, let’s open the Views/Home/Index.aspx file and add the /jqGrid […]
Read More →Hacked
This happened to me way back in 2011. I am migrating all my blogs and articles to this site and am adding it here. This shouldn’t happen anymore if you use an ORM like Entity Frame Work or NHibernate. A few weeks ago I had to fend off a hacker. Some of the database statements […]
Read More →How (I) configured Azure Active Directory into my ASP.NET MVC OWIN web application
Before I get started, keep in mind, that I am not a security expert, if you want to enable security for your Azure App Service Web App I recommend using EasyAuth as described here, so much easier, IMO. You likely get some benefits from the ‘Change Authentication’ features of: No Authentication Individual User Accounts Work […]
Read More →