쿠키를 이용하여 조회수 올리기

쿠키를 이용하여 조회수 올리기 출처 )  http://www.moros.kr/119 private string sCookieId { get { return _sCookieId; } set { //사용자 정보 얻기 if (Page.User.Identity.IsAuthenticated == true) { _sCookieId = Page.User.Identity.Name + “/” + value; } else { string sRemoteIP = (string)HttpContext.Current.Request.UserHostAddress; _sCookieId = sRemoteIP + “/” + value; } } } private void IncreaseReadCountCookie(string TableName, string […]

펌) MVC 5 on Windows Server 2008/IIS 7

MVC5로 만든 사이트를 IIS7에 게시 할 때 403.14 에러가 발생했다. 이를 해결하는 방법이 나와 있어서 적어둔다. 영어로 길게 적혀 있지만 결론을 말하면 사이트의 ‘web.config’ 파일에 아래의 내용을 추가하면 된다. <system.webServer> <modules runAllManagedModulesForAllRequests=”true”></modules> </system.webServer>   출처) http://cdonner.com/mvc-5-on-windows-server-2008iis-7.htm I have been working on a small Website built with Visual Studio 2013, .Net 4.5, Entity Framework (code-first), and MVC 5. I […]