Posts

IIS Express - 500.19 Cannot read configuration file - (web.config file path issue)

Image
Whenever you face this issue, You have to delete a hidden folder ".vs" at your solution's root folder (i.e. where your solution file exists). and close and reopen your solution and run. Your issue would be removed.

Publishing and Running ASP.NET Core Applications with IIS

I have searched about publishing and running asp.net core application in IIS and during searched I found Rick strahl’s web log “ Publishing and Running ASP.NET Core Applicationsin IIS ” which help me a lot to understand how could we use IIS with ASP.NET Core applications. Below are the points taken from that blog. The most important thing to understand about hosting ASP.NET Core is that it runs as a standalone,  out of process Console application . It's not hosted inside of IIS and it doesn't need IIS to run. ASP.NET Core applications have their own self-hosted Web server and process requests internally using this self-hosted server instance. You can however run IIS as a front end proxy (reverse proxy) for ASP.NET Core applications, because Kestrel is a raw Web server that doesn't support all features a full server like IIS supports. This is actually a recommended practice on Windows in order to provide port 80/443 forwarding which kestrel doesn't support dire...

ASP.Net Core: LAUNCHER_PATH and LAUNCHER_ARGS in web.config

In github, IISSample cleared my confusion about processPath = "%LAUNCHER_PATH%" arguments = "%LAUNCHER_ARGS%". In web.config, following lines exist: <system.webServer> <handlers> <add name = "aspNetCore" path = "*" verb = "*" module = "AspNetCoreModule" resourceType = "unspecified" /> </handlers> <!-- This set of attributes are used for launching the sample using IISExpress via Visual Studio tooling --> <aspNetCore processPath = "%LAUNCHER_PATH%" arguments = "%LAUNCHER_ARGS%" stdoutLogEnabled = "false" stdoutLogFile = ".\logs\stdout" forwardWindowsAuthToken = "false" /> </system.webServer> Now read the comments and understand it what would be used when. <!-- This set of attributes are used for launching the sample using IISExpress via Visual Studio tooling --> <aspNetCore...

General Q&A - ASP.NET and C#

Introduction These questions and answers are taken from different sources and locations. Most of the questions and answers you likely have already read. The basic purpose of this article is to consolidate most of the study material related to Dot Net in one place. ASP.NET What is view state and the use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested for the first time versus when the form is posted (sent to the server), that allows you to program accordingly. What are user controls and custom controls? Custom controls A control authored by a user or a third-party software vendor that does not belong to the .NET Framework class library. This is a generic term that includes user controls. A custom server control is used in Web Forms (ASP.NET pages). A custom client control is used in Windows Forms applications. User Controls In ASP.NET:  A user-authore...