Accessing impersonated user’s details from code behind in C#

Hi all, Many of us might know that in web development, config files play a very important role. Reading config file entries in a code-behind file is a very common thing in web development. Config entries are stored in web.config file in the <appSettings> tag and can be accessed using System.Configuration.ConfigurationManager.AppSettings[“keyName”]; But there might be […]

Uploading large files using and IIS6.0

Hi, We all must have obviously uploaded files somewhere or the other. Even in the websites that we create using ASP.NET, we might have to put the asp:fileupload control to facilitate file upload feature. While developing websites or web applications, we might come across requirements that specify: Allow users to upload large files (file size […]

Error Condition: HttpException: maxRequestLength exceeded. ASP.NET

Hi, While building ASP.NET web applications, we all would have almost certainly used the file upload control. But sometimes, we might encounter an exception message which reads, “System.Web.HttpException: maxRequestLength exceeded”. The cause of this exception is simple. “maxRequestLength” attribute of the “httpRuntime” tag specifies the maximum size of input files that can be uploaded. By […]