Why does FormsAuthentication.Decrypt crashes when moving to another Server

The reason why the encrypted data couldn’t be decrypted on another machine is because the validation key in the original machine’s machine.config is set to AutoGenerate. This means that the generated keys are unique to each machine. A better solution will be to specify the validation key, so you can decrypt it across any machine with the same validation key. For more details on solution refer following article : Microsoft Knowledge Base Article – 313091 Microsoft Knowledge Base Article – 312906

How to run an exe from a ASP.NET page?

For security reasons, you can’t force a user to run any executable. Instead give user the option to click on it and download the executable, and execute it if he wants to. All you can do is put .exe in a directory on your web site and put a hyperlink to it on some page. Note : Be sure to secure this directory by deactivating all execution permissions both in the IIS console and in the directory ACL For more details refer INFO: Executing Files by Hyperlink and the File Download Dialog Box

How can I create a server control?

The below example is a demonstration of a simple server control which creates a Text Box. Follow the below steps to create a new server control. Open VS.NET 2005. In File->New Select the Project submenu. In the Dialog window ,Select the Window, and select the WebControlLibrary. Select an appropriate path and give a name as TextControl, to create a new server control. usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Text; usingSystem.Web; usingSystem.Web.UI; usingSystem.Web.UI.WebControls; namespace WebCustomControl1 { [DefaultProperty(‘Text’)] [ToolboxData(‘<{0}:WebCustomControl1 runat=server></{0}:WebCustomControl1>’)] public class WebCustomControl1 : WebControl { public TextBox _text = new TextBox(); [Bindable(true)] [Category(‘Appearance’)] [DefaultValue(”)] [Localizable(true)] public string Text { get { String s = (String)ViewState[‘Text’]; return ((s == null) ? String.Empty : s); } set { ViewState[‘Text’] = value; } } protected override void CreateChildControls() { _text.Width = 200; _text.Height = 50; _text.Text = ‘Server Control Creation’; this.Controls.Add(_text); } protected override void RenderContents(HtmlTextWriter writer) { this.EnsureChildControls(); this.RenderChildren(writer); } } } Here is an article from ftp online: Build an ASP.NET Server Control that explains how to build a ‘Login Control’.