Tuesday, 12 October 2010
fix for The state information is invalid for this page and might be corrupted Error
Problem :You might have embedded a page which contains "runat= "server" within a Masterpage.
For example f you have a placed jquery tabs in master page and jquery tabs pointing to an aspx page with
Friday, 8 October 2010
Fix for URL Rewriting With Intelligencia dll and IIS 5.1 Problem
Sunday, 18 July 2010
Books for MONO Cross platform development using C#
# Practical Mono
Practical Mono
# Quick-> Concise->Practical Mono
Mono sams
Applications can also be developed for iphone.
Wednesday, 14 April 2010
ASP.NET Forms Authentication:Padding is Invalid and can not be removed Error.
I was getting this error using
FormsAuthenticationTicket ticket =
FormsAuthentication.Decrypt(authCookie.Value);
.I was trying Forms authentication to pass encrypted ticket between two web applications.I left out
<machineKey
validationKey="AutoGenerate,IsolateApps"
decryptionKey="AutoGenerate,IsolateApps"
validation="AES"
decryption="Auto" />
This configuration means to create different key for each web applications thus it failed as
encrypted key was not same in two web applications.
so how to get same key for forms authentication. I resolved this issue by setting static values in section in both web.config files.
<machineKey validationKey='B5D752F96C1196D2A98014A3EF96F35192183FA47D467ACF0969F3687EC3C6BA3A959CD85BD3C282F2390B220ACD742568A8BC36BDBFBF9306ED807E6B090D56' decryptionKey='4BE38697FCD33A2C61D8FC93754FA668CEE4B5467B6B81F6' validation='SHA1'/>
Validation and decryption were generated using online machinekey generator tool.
Saturday, 24 October 2009
"Control can not be created because visual studio can not find the controls 's type in control assembly"
This error message was suddenly popping up in visual studio when I tried to drag my custom web control on a web page then tried to compile the code and found two main error messages in error list. Some thing like
"only one section per config file is allowed" since I had just added
<httpModules >
<add type="URLRewrite" name="URLRewrite" />
<httpHandlers>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add type="URLRewrite" name="URLRewrite" />
These two sections of httpmodules