Few days back, I was migrating my application for VS2008 to VS2010 and it was done successfully except some people started running the application. They faced the error as below
“Could not load file or assembly ‘PresentationCore’ or one of its dependencies. An attempt was made to load a program with an incorrect format. “
I tried to diagnose the problem and tried to find a solution. Continue reading
Last few days back, I faced one peculiar issue, while adding a new system in my Web Farm. My users started facing an issue
“InValid View State” intermittently.
First, I could not guess what is the issue and thought of some programming issue. But later after analysis I found the issue is caused by the changes in the Web Farm.
Just before discuss the solution, Let’s analyse this.
What is Web Farm?
A Web Farm is used in highly available applications and which have a lot of users that cannot be served by a single server. They provides better performance and are easily scalable. It means we’ll have multiple web servers behind a Network Load Balancer (NLB). Whenever a request comes, it first goes to the load balancer, which checks all the available web servers and finds the web server which has comparatively less requests to serve, and passes the request to that web server.
In this Post, I am going to discuss about
web.config. Normally in our daily life, we used to have some data in
appSettings section of web.config and read it when required. That is in string form. But there are lot more than this. We can update the data in web.config programmatically as well .
Now another main point is, we can store some object of custom type in web.config as well, which we normally don’t do it. But this can be very useful in several scenarios.