Just an issue with the Attach file to post feature.
Seems like a too big file is not checked against the YAF configuration limits set before upload and gives an unnecessary error.
HttpMaxRequestLength is set in web.config to accommodate about 5 MB files (max YAF configured 3MB), and one guy is trying to upload 11MB which breaks it. He should get a message about the file being too big instead of the error while trying this....
Server Error in '/forum' Application.
Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Maximum request length exceeded.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Maximum request length exceeded.]
System.Web.HttpRequest.GetEntireRawContent() +11484695
System.Web.HttpRequest.GetMultipartContent() +232
System.Web.HttpRequest.FillInFormCollection() +389
System.Web.HttpRequest.get_Form() +157
System.Web.HttpRequest.get_HasForm() +11486708
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +141
System.Web.UI.Page.DeterminePostBackMode() +100
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +259
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]