I don't know the exact cause of your error or how to fix it
, but it may have to do with the differences between Response.Redirect and Server.Transfer. Response.Redirect creates a new web request; it behaves similar to requesting a page through a browser. Server.Transfer doesn't leave and "come back," it transfers processing to the specified page. I think this difference could be the reason why your webform2.aspx doesn't like the Server.Transfer, it could be missing info from the web request.