This error is self explanatory in itself, but I was going nuts as my code behind file was all correct and still the browser was throwing this error back.
I had just migrated my blog and was trying to run it for the first time. This made me believe that some settings at the server side are going wrong. I tried all possible tweaks and wasted good amount of hours over this. Reconfigured everything again, but no luck!
Finally, I decided to remove the file because of which this exception was being thrown. It was an extension, so I removed all of the associated code files from the server and tried it again. And! It worked as if nothing happened ever.
Confused, and unable to understand the cause, I thought of redeploying those file from my previous backup. I did that and nothing broke! I guess there was some problem with the files that I migrated from my old server to new server.
Technically, not sure what it was. If you happen to know the issue / cause / resolution, please leave a comment about it. Thanks.