Normally, 502 status codes are sent by a reverse proxy or some sort of proxy equipment before the IIS server, and not the IIS server itself. IIS will issue 502 status codes when you run something like ARR (Application Request Routing) on top. There is a very good article on how to troubleshoot these here: linqto.me/Arr502
Hello Nader, this is quite an old project, but I have found the code and uploaded it to my bookmarking site, and you can download it here: techdays.linqto.me/WebSample.zip
Great video as usual.. It would be interesting a video about very advanced IIS logging for in deep troubleshoting scenario...when you as a escaltion manager are called for a severity A cases which kind of logging do you enable or ask to enable....?
I am a long-time professional developer, most recently with ASP.NET web forms and have decided to move to MVC and was looking to get up to speed quickly. Open www.skillscourses.org/ASP.NET-4.5-in-Csharp-and-VB.html to view best Online Courses.
Thank you, great video, it would be better change the title of this video to "Entity Frame work Code First POCO Code Sample In C#" ,then it is easy to find in google.
Hi Paul, Thanks for the explanation,, well detailed video,, I have a doubt ,, in the classic mode pipeline, there is the stage called Authentication,, while accessing static file none of the user password prompt came up ,, why it is so,,?
Thanks Paul for such a excellent explanation about iis7...I have a doubt when you switch to integrated mode and requested for PDF file....its is asking form authentication is because that you have enabled form authentication handler for that app pool...am I correct...so any content request belongs to that particular app pool will request for form authentication
Hello Jee. Thanks for your feedback. In the demo there are two things we need to do to get forms based auth to work for the PDF file: the first is to make sure that we are running in integrated mode pipeline, so that all modules in the IIS pipeline can activate for all requests. The second, is to configure the Forms Auth module (in the modules section), to activate for all types of requests, event those targeting static content such as the PDF file. By default, the module is only going to activate for requests targeting a managed handler.
Really great video series Paul! Made me aware of a lot of thing. Thanks a lot :) Had a query in this video: When I deploy a aspx or cs file in the folder directly in a published code, the changes will start reflecting in application without having to refresh the pool or restart the application. So if compiled code is present in framework/v4.0/root folder how does that know that changes are done in the main code?
Hello Congrid: if I understand your question correctly, the mechanism by which the Framework knows a new files is placed in is FCN: File Change Notifications. Basically, at application star-up, the Framework asks the file system, to call back a delegate and inform of any changes made to a file or folder. Once this is done, the .Net Runtime will receive notifications that you dropped a new Default.aspx page into your app and proceed to compile that. This is controlled by a parameter called FCNMode - have a look at msdn.microsoft.com/en-us/library/system.web.configuration.fcnmode(v=vs.110).aspx
excellent video on iis 7 internals. Hard to get these kind of details elesewhere. This helps us to understand the application and in troubleshooting. After seeing this using/learning application will be easy since windows anyways is GUI based and intuitive.
Very nice explanation and presentation, Paul !!. watched all 3 videos , it really helped me to understand how things work under the hood on IIS. Thank you.
Thanks for such a nice explanation. I have two doubts from your video of Part2 . 1. When you switched site to classic mode then how you were able to authenticate using form authentication? 2. Also, how IISremembered you being on images pages when you login again even after the IIS got recycled on switching to classic mode,
The difference between classic mode and integrated mode is that in classic mode IIS is not notified for requests for static files and the like. Hence it is harder, not impossible, to make forms auth work for static content.
Hello Bryan S, basically IIS on Windows 7 is IIS 7.5, which is equivalent to IIS 7.5 on Windows 2008 R2. Think of it this way: IIS 7: Windows Vista and Windows 2008 IIS 7.5: Windows 7 and Windows 2008 R2 As for the risks, it depends how you configure the server. By default, it is pretty secure and it will only serve static stuff, so this is not a vector of malware infection if you are referring to this.
Hey Paul, I've got some questions: Are there any risks by activating and using IIS on OS Windows 7? What's the difference between using IIS on WS 2008 and W7?
Great help for me as a teacher, I've been using it for some time and saved me a lot of time when preparing my lessons as I have stored a numerous links on different topics which I can use whenever I need.
Hello Moshiur, They have taken the configuration website out of VS2013. This is because the new templates come with the new ASP.net Identity membership system, which I will cover in an upcoming video series.
great tutorial, but no longer works with visual studio 2013. If you knew how to do a video showing how to make that same database with the users tables generated work with vs2013 without losing the users info that would make a hit video. Migration to identity 2.0
A very good tutorial, Paul! Very clear, very precise. Much appreciated! You've turned those horrible Microsoft manuals readings (which shouldn't be read by human!) into words easy to understand. It will be nice of you, if you can have similar tutorial on IIS performance turning. Becoz I think the default IIS settings are always the root causes of IIS performance issues. Dummies like me when facing performance issues, is always wondering like being sucked into a dark-hole!
Hello Sateesh, the answer is it depends. You can pre-compile your application completely, and then all the source code will be transformed in MSIL (in .Net assemblies or .dlls). These assemblies will still have to be JIT-ed to be converted in to assembly code for the Intel processor. If you pre-compile your enire site and all its dependencies, there will be no compilation on the first request.