We have used Layouts for the web part/widgets and no code behind.
Getting exceptions only for those we have layouts.
The webparts which we have used code behind and ascx implementation works fine.
Checked in events log and found the below error:
httpparse... error