Could not load the type error “is not marked as serializable”

There are various issues which may occur on custom application running under SharePoint ,if the application and configuration doesn’t done properly. But one of the issue which I thought really pained was Could not load the type and the specific type “”is not marked as serializable“.

Basically the reasons to serialize is to persist the state of an object to a storage medium so an exact copy can be recreated at a later stage, and to send the object by value from one application domain to another.It is also used by remoting to pass objects by value from one application domain to another.
But the chief disadvantage is the overhead involved in serializing and de-serializing data, as well as latency issues with transmitting text over a TCP network.

So I don’t want to mark the class as “Serializable” and started to do the investigation and ended up with a simple solution by setting the <sessionState mode=”InProc” /> instead it was earlier “SQLServer”  in my QA environment and the application started work perfectly.

But still I am just having concerns about using “InProc”  because I think my environment is a WebGarden and I don’t think so storing the session state in memory will not help any change to web.config or application pool restart will vanish my session objects.

SEO Features in ASP.NET 4.0

Sorry guys,I had been off for last 2-3 days  due to I had been badly affected by a virus flu ,thank god finally I am not a victim of  H1N1 crazy isn’t  jokes apart here is one of the feature I really admired in 4.0.

I beleive every single .NET web developers are eagerly waiting to know what’s up still available with ASP.NET 4.0,since from the VS.NET 2010 beta has been released  I am getting lots of request to write post on ASP.NET 4.0. I am proud to say that I am one of such reviewer for the beta release of VS.NET 2010. I am really impressed with SEO features.

As web traffic becoming a great challenge nowadays  and mostly the identification and indexing is happening using a page title,description and keywords. The new feature in 4.0 allows programmers to set the page title,description and keywords from code behind like below.

protected void Page_Load(object sender, EventArgs e)

        Page.Title = “BestOfCyber – Downloads”;
        Page.MetaKeywords = “BestOfCyber,Downloads,Microsoft”;
        Page.MetaDescription = “This page contains the ebook downloads”;


I will write more with other features available once I dig into VS.NET 2010 further.

Can I Upgrade Vista Enterprise to Windows 7 Ultimate

There are lots of request from the readers  like whether they might be facing any issues while installing Windows 7 RTM Ultimate x64.

The answer is If you have vista enterprise you can only upgrade to 7 enterprise.But just try this workaround

Basicall upgrade Windows Vista Enterprise to Ultimate (not enabled by default) so Before inserting the Windows Vista Ultimate CD Go to, Start, Run: and type: regedit.exe Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

Change the key : ProductName from “Windows Vista ™ Enterprise” to “Windows Vista ™ Business”

Change the key: EditionID from “Enterprise” to “Business”

Pls do not restart Now insert Windows Vista Ultimate CD and start upgrading ..Good Luck

ASP.NET Dynamic Controls – ThumbRule

Dynamic Controls Should be Loaded on Each PostBack

One of the biggest challenges with working with dynamically added controls is that these controls must be programmatically added on each postback. That is, you can’t just load these controls on the first page load, and then not reload them on subsequent postbacks. Failure to explicitly add the controls on each postback will cause the controls to literally disappear on postbacks.

Understand better the ViewState and Dynamic Property Settings

Expecting your ViewState to retain after the postback, always assign same ID to the dynamic control

SharePoint 2010 A real developer Affable

As the technical preview engineering milestone has been crossed successfully ,I am really glad that the feedback where so good from the public and still Microsoft looks for better feedback.Watch out more on SharePoint Conference 2009.

Here is some informations in perspective of developers ,SharePoint 2010 provides a robust development platform to rapidly build solutions using familar tools like VS.NET 2010 and SPD 2010. Developers will gain access to rich set of out-of- the-box features such business connectivity services for read and write integration between external data sources. LINQ integration with SharePoint is a great feature which allows the developers to strongly typed access to data in the SharePoint Lists. Ohh..What a beauty over Developer Dashboard ,I really love it.

Enjoy Guys,SharePoint 2010 is rocking