Code Project

Link Unit

Monday, November 26, 2007

Search Google Like Expert

Off Topic from the blog but very useful

Tuesday, November 06, 2007

Redirect URI cannot contain newline characters

I was facing this problem while going through development of ASP.Net page.I was redirecting to an error page with an error message generated passed in query string. It is clear from the error that string cannot contain newline character. So I simply used System.HttpUtility.URLEncode(errString) and then passed it through querystring.

Failed to access IIS metabase problem

Possible Cause:-
When you install IIS AFTER .NET 2.0 framework, the rights of the ASPNET user had not been set correctly.

Repair (Uninstall if repair does not work for you) .NET Framework 2.0
Simply run the following from command line to reset the IIS registry settings for aspnet user. Usually framework directory for .Net Framework 2.0 resides under %WindowsDir%\Microsoft.NET\Framework\v2.0.50727

%WindowsDir%\Microsoft.NET\Framework\v2.0.50727 > aspnet_regiis -i