Welcome to MSDN Blogs Sign in | Join | Help

Rahul Soni's blog

Never assume the obvious is true!

News



  • These postings are provided "AS IS" with no warranties, and confers no rights.

Browse by Tags

All Tags » ASP.NET 2.0   (RSS)
ASP.NET:How to write error messages into a text file using a simple httpModule
In one of my previous posts , I mentioned about how to troubleshoot some issues with the use of a module. In this post, I will show you how a similar module could be of use when you want to log all the errors in a text file for troubleshooting purposes. Read More...
Run a batch file as a specific User (or Administrator) from ASP.NET...
...well first of all, I am NOT recommending it, but sometimes it could be necessary! Now, let's proceed to the code... 1. Create a page called RunBatchFile.vb and paste the following... Imports System.Diagnostics Imports System.IO Partial Class RunBatchFile Read More...
AJAXControl Toolkit issue in VS 2008
When I tried opening the AjaxControlToolkit.sln by double clicking on it, it was throwing the following error at me... --------------------------- Microsoft Visual Studio --------------------------- The application for project 'H:\Downloads\AjaxControlToolkit\SampleWebSite' Read More...
Error while Publishing from Visual Studio 2005
Problem Description Issues when you try to Publish your website from Visual Studio 2005. It might happen if you create a File System project called <someName> and while publishing you use the same name in IIS. To reproduce this issue, create a simple Read More...
Sample page in ASP.NET to show you different collections like Forms, Querystring, Cookies etc
Sometimes, while troubleshooting I am interested to find out all the details about certain collections in ASP.NET, like Forms, QueryStrings, Headers, ServerVariables, Cookies, Sessions and Params... I created a very simple aspx page which would show you Read More...
Changing ASP.NET version in ASP.NET tab of IIS has no effect
I ran into another similar issue while playing around and thought I must share... By default, when you open IIS Manager, right click on any Virtual Directory and click on Properties it would show the following dialog box. Note that, I have activated the Read More...
customErrors defaultRedirect is not redirecting in ASP.NET
In one of my projects I was trying to use customErrors in ASP.NET and it was not working as I would expect. In the web.config I had the following... <customErrors defaultRedirect="~/Misc/ErrorPage.aspx" mode="On"> <error statusCode="404" redirect="~/Misc/ErrorPage.aspx" Read More...
Troubleshooting Session Related Issues in ASP.NET
In this article I have discussed some of the common reasons for session loss issues in ASP.NET. I have also discussed about how you should think of fixing these issues yourself in a logical way. http://aspalliance.com/1182_Troubleshooting_Session_Related_Issues_in_ASPNET Read More...
A sample aspx page to show the security details
This is a pretty small sample to help you figure out the ASP.NET identity matrix and how it comes in effect. I am posting this since quite often we need to troubleshoot security related issues on a production website and making any Application level changes Read More...
Customize errors which are not captured by customErrors in ASP.NET 2.0
Yesterday, I came up with an interesting issue where a customer wanted to customize a 500 error message ("Internal Server Error"). Interestingly, customErrors DID NOT seem to work for StatusCode 500! We just wanted to verify if it works for 404, and it Read More...
Yippee!! VS 2005 SP 1 is available now... Finally!!! :)
I am so happy to see the Visual Studio 2005 Service Pack 1 (SP1) being released (finally)! Know more about it here ! I am too excited to write more :-) Click, Install, Enjoy!!! -Rahul Read More...
Unable to build any application in a VS 2005 Application
Here is an interesting issue which I found today. One of my customers was working with VS 2005 and found that he was unable to build any application at all! Even a newly created Application with a single page failed! The error message didn't lead me anywhere Read More...
CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'
Another issue which I found really interesting... We had an ASP.NET 2.0 application and in one of the pages (called Login.aspx) we used the Login control. It worked beautifully from the IDE (F5 or CTRL+F5), but when we deployed it on the webserver (precompiled), Read More...
ASPCOMPAT related issue in ASP.NET 2.0
Recently, I saw a very interesting issue. Thought, I must share... There were two pages in an application. In the 2nd one (page2.aspx), aspcompat was equal to true . In the first one, we did something with a lot of objects, "stored it in the session", Read More...
Health Monitoring for Application's Lifetime related events in ASP.NET 2.0
The runtime components and controls of ASP.NET 2.0 are instrumented for health monitoring they and raise events for many common situations For ex. failed logins, unhandled exceptions, expired forms authentication tickets, etc . For complete details please Read More...
More Posts Next page »
Page view tracker