Author |
|
rudolf.riegler Newbie
Joined: 12 November 2012
Online Status: Offline Posts: 18
|
Posted: 27 December 2012 at 2:09pm | IP Logged
|
|
|
Hi,
I have integrated the webmail in my webapp like it is described in the AfterLogic documentation. Here you see a part of the code:
integr.UserLoginByEmail(Session["email"].ToString(), Session["login"].ToString(), Session["password"].ToString(), WMStartPage.NewMessage, Session["mailAdresses"].ToString());
If the session["mailAdresses"] has more than 324 adress items (every adress is seperated by ';') the following error occurs:
Bad Request - Request Too Long; HTTP Error 400. The size of the request headers is too long.
What's wrong, what can I do???
Best regards
Rudi
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 28 December 2012 at 12:52am | IP Logged
|
|
|
That response is returned by your HTTP server so looks like you would need to reconfigure IIS settings. This isn't something WebMail can control, anyway.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
rudolf.riegler Newbie
Joined: 12 November 2012
Online Status: Offline Posts: 18
|
Posted: 28 December 2012 at 3:04am | IP Logged
|
|
|
Hy Igor,
I have set all restricting parameters to its max values, e.g. maxAllowedContentLength, maxUrl and maxQueryString.
Additionally the max E-Mail string has approx. 4400 characters, i.e. 4400 bytes (1 byte per character).
In my oppinion 4400 characters should not be a problem, should it?
Further I belive that the exception is thrown by AfterLogic code, because the "UserLoginByEmail"-method still works.
Best regards
Rudi
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 28 December 2012 at 3:53am | IP Logged
|
|
|
So does it work after setting those limits to max values, do you still encounter the issue? And if yes, can you please clarify your last sentence - about the UserLoginByEmail method which still works?
Speaking of 4400 characters, I'm not sure if that would be enough, especially if you have display names there along with email addresses, particularly since those might be in UTF-8.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
rudolf.riegler Newbie
Joined: 12 November 2012
Online Status: Offline Posts: 18
|
Posted: 28 December 2012 at 6:55am | IP Logged
|
|
|
Igor wrote:
So does it work after setting those limits to max values |
|
|
No.
Igor wrote:
Can you please clarify your last sentence - about the UserLoginByEmail method which still works? |
|
|
I mean that, after calling this method (which throws no exception) just AfterLogic code follows. So my conclusion is that the exception is thrown by AfterLogic code.
Igor wrote:
Speaking of 4400 characters, I'm not sure if that would be enough, especially if you have display names there along with email addresses, particularly since those might be in UTF-8 |
|
|
Let's assume that UTF-8 uses 4 bytes. 4400 multiplied by 4 equals 17600bytes, which is much less than the max-values of maxAllowedContentLength, maxUrl and maxQueryString.
Best regards
Rudi
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 29 December 2012 at 2:14am | IP Logged
|
|
|
Quote:
I mean that, after calling this method (which throws no exception) just AfterLogic code follows. So my conclusion is that the exception is thrown by AfterLogic code. |
|
|
Without checking with the developers, I can't say whether this is true, but even if it is, the error is returned by web server, WebMail simply echoes that.
Quote:
which is much less than the max-values of maxAllowedContentLength, maxUrl and maxQueryString. |
|
|
Looks like you need to check elsewhere, then. This article, for instance, suggests checking MaxFieldLength and MaxRequestBytes values.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
rudolf.riegler Newbie
Joined: 12 November 2012
Online Status: Offline Posts: 18
|
Posted: 29 December 2012 at 4:27am | IP Logged
|
|
|
Hi Igor,
i have already seen this article but I wasn't able to fix the problem. Nevertheless I tried it again after your reply...after restarting the server it works
Thanks for your effort!
Best regards
Rudi
|
Back to Top |
|
|