500.19 error or 502.5 error when hosting asp.net core 2 application inside IIS

While deploying asp.net core 2 to IIS, you may get one of these errors  or both  🙂 500.19 Internal Server error The first of the issue is 500.19 error when trying to host an asp.net core 2.0 application inside IIS7. What you get might be  something like below   This one was quite simple,turned out…


Quick Reference : ASP.NET and Windows Authentication

Authentication is a process by which the system validates a user’s logon or sign-in information. A user’s name and password are verified and if found correct , access is granted . Windows Authentication is a very complex topic and this post will help you learn a quick overview of windows authentication with Asp.net . Windows authentication…


Quick Reference : IIS Application Pool

What is IIS Application Pool? IIS runs any website you configure in a process named w3wp.exe. IIS Application pool is feature in IIS which allows each website or a part of it to run under a corresponding w3wp.exe process. So you can run 100 websites all in a single w3wp.exe or 100 different w3wp.exe. E.g….


How to fix the error “port is currently used by another application”

I bet you may have seen this error at least once If you are a web developer  🙂 Different error from different tools IIS manager gives ————————— Internet Information Services (IIS) Manager ————————— This Web site cannot be started. Another Web site may be using the same port. Apache gives Apache port:443 is being used…


When and how does asp.net runtime load dlls ?

Let’s look at when and how asp.net runtime loads a particular dll. Your asp.net code needs to load lot of dlls to run your application.When you run your asp.net application/website ,typically it will be under IISExpress (iisexpress.exe) or IIS(w3wp.exe). For a bare minimum asp.net application without any custom dlls created using a default VS template running…


Part 3-Suggestions on implementing large file upload in asp.net

This is continuation of blog posts part 1 and part 2 this post covers possible alternatives on implementing large file upload in asp.net using fileupload control SaveAs- internal implementation is explained part 2 property FileContent or PostedFile.InputStream. This again is using the HttpRawUploadedContent +temp file approach,but you can you get the content as a stream object,which you can…


Part 2- demystifying the file upload process in asp.net

This is a continuation of the blog post http://blogs.msdn.com/b/rohithrajan/archive/2013/01/22/large-file-uploads-in-asp-net-part-1.aspx The default option for uploading files in asp.net is using Fileupload controls SaveAs method http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.saveas.aspx when we use the FileUpload control’s save as method,it is internally using a class HttpRawUploadedContent .This is in turn using TempFile helper class .This class creates a temp file for posted data. This temp…


large file uploads in asp.net -part 1

Uploading large files in asp.net  requires a bit of configuration changes and met with certain challenges with different versions of asp.net(I would say asp.net 2.0 and below). In this blog post I am trying to address some issues covering the large file upload in asp.net on IIS6/IIS7.x . As the topic can get a bit complex (If…