Monday, 15 March 2010

ASP.NET 2.0: Validation of viewstate MAC failed

 ERROR:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.


Solution:

Add this key to every page of the solution (enableViewStateMac="False")

Example: 
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Text.aspx.vb" Inherits="TestAssembly.TestPage" enableViewStateMac="False" %>

Tuesday, 15 December 2009

PTA has developed a SIM information system

PTA has developed a SIM information system. One can find out how many SIMs are registered to his/her 's CNIC

http://www.pta.gov.pk/668/

Wednesday, 9 September 2009

Using Sql Server's Name Instance via JDBC

Very recently i had to use named instance of SQL Server 2000 via JDBC Drivers

After googling i found out the winner in the connection string is "instance=instancename"

Example String
JdbcURL=jdbc:sqlserver://servername:1433;instance=instancename;databaseName=dbname