Skip to main content

Posts

Dotnet Core Application Hosting And Debugging Using Local IIS Server

Introduction: Dotnet core application can run by using hosting servers like 1. IIS EXPRESS(built-in  server in visual studio) 2. KESTREL 3. IIS SERVER and so on many other servers. The most commonly used server at development time is IIS EXPRESS. But we can do debugging the application by hosting it on Local IIS Server also. Using Local IIS helps to test any server-level configuration locally before going to the production server. About Platform: The platform using for this sample below 1. IIS Server 7 or above, 2. Dotnet Core Framework 2.2v+ 3. Dotnet Core MVC 4. Visual Studio 2017 or above (editor) Getting Started:  Now we are going host a sample ASP.NET Core MVC application in our local IIS Server and then we are going debug our application in visual studio using Local IIS Server. Download And Install DOTNET Core SDK And Runtime: Go to the  Microsft Dotnet Core downloads  and download and install dotnet core SDK and Runtime. SDK is the Software Developm

Asp.Net Route Constraint: Single Url To Load Desktop Page Or Mobile Page By Device Request

Introduction: In modern web development every application targeting all devices, like desktop, mobile, and tablet, etc. For that, everyone follows the most common approaches like: 1. Design a Single page with responsiveness for all devices. 2. Maintaining multiple domains for devices like for desktop ( https://example.com ) and for mobile devices ( https://m.example.com ) Existing Approach Problems: In the first approach, a single page with responsiveness for all devices needs to write a lot of CSS and HTML code. This may result in affecting page load time with heavy CSS leads problems like  CSS Render Blocking . In the second approach, with multiple domains targets different pages for each domain like for desktop requests one page and mobile request another page gets loaded. With this approach, there is no unnecessary loading of CSS and Html gets loaded. But the problem in this approach needs to maintain different domains. Solution (Asp.net Route Constraint): Asp.net