@manhng

Welcome to my blog!

Tracing in IIS 7

December 10, 2019 14:01

Tracing in IIS 7 (edit)

https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis

Errors & Warnings

%windir%\system32\inetsrv\asp.dll

To make a backup of the configuration

  1. Click Start > All Programs > Accessories.
  2. Right-click Command Prompt, and then click Run as administrator.

Backup Your Configuration

%windir%\system32\inetsrv\appcmd add backup cleanInstall

Restore Your Backup

%windir%\system32\inetsrv\appcmd restore backup cleanInstall

Test and View the Failure Request Log File

%systemdrive%\inetpub\wwwroot

View the Failure Request Log File

%systemdrive%\inetpub\logs\FailedReqLogFiles\W3SVC1

%windir%\system32\inetsrv\config\applicationHost.config

Session Cookie

https://benjii.me/2015/07/using-sessions-and-httpcontext-in-aspnet5-and-mvc6/

https://www.c-sharpcorner.com/uploadfile/61b832/Asp-Net-session-and-web-config-explained/

https://www.c-sharpcorner.com/UploadFile/8a67c0/web-config-vs-app-config-vs-machine-config/

https://www.techcartnow.com/increase-timeout-asp-net-application/

https://www.techcartnow.com/sql-query-multiple-table-select-insert-update-delete-join-clause/

https://www.techcartnow.com/conditionally-render-sections-asp-net-mvc/

sessionState Element

https://msdn.microsoft.com/en-us/vstudio/h6bb9cz9%28v=vs.108%29?f=255&MSPPError=-2147217396

How to set session timeout in web.config

https://stackoverflow.com/questions/1205828/how-to-set-session-timeout-in-web-config

Managing Session State for ASP.NET

http://www.informit.com/articles/article.aspx?p=30026&seqNum=2

ASP.NET Application Is Timeout Less Than 20 Minutes

http://www.dedicatedsqlserver.com/HowTo/IIS_Timeout.aspx

ASP.NET session management through web.config file in C#

https://forgetcode.com/csharp/1648-asp-net-session-management-through-web-config-file

Design Pattern

https://www.techcartnow.com/real-world-sample-code-for-factory-method-design-pattern-with-dependency-injection-using-autofac-in-asp-net-mvc/

jQuery Plugins

https://www.techcartnow.com/how-to-use-jquery-plugins-with-conflicting-names-on-the-same-page-in-asp-net-mvc-web-application/

Client Side Template with jQuery

https://www.techcartnow.com/configuring-multiple-google-analytics-tracking-codes-creating-custom-dimensions-and-tracking-events-in-a-web-application/

https://www.techcartnow.com/integrating-google-recaptcha-to-form-pages-of-asp-net-mvc-web-application/

Session Management

October 31, 2019 11:03

Session Management (edit)

Session

April 10, 2018 16:39

Working with the ASP.NET Global ASAX file

https://www.techrepublic.com/article/working-with-the-aspnet-globalasax-file/

https://msdn.microsoft.com/en-us/library/ms178473.aspx

https://stackoverflow.com/questions/345343/simplest-way-to-count-visits-asp-net-web-app

How do I use Session_Start in ASP.NET MVC?

void Session_Start(object sender, EventArgs e) {
            if (HttpContext.Current.Session == null)
            {
                Debug.WriteLine("null session");
            }
            else
            {
                Debug.WriteLine("There is a session");
                HttpContext.Current.Session["Foo"] = 100;
                HttpContext.Current.Session["Bar"] = "Abc";
            }
 }
<system.web>
  <sessionState cookieName="auth" mode="InProc" timeout="480"/>
</system.web>

Categories

Recent posts