Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Visual Studio 2010 and .NET Framework 4.0
and os 2008 r2


you are encountering the following error

System.Net.Mail.SmtpException: Failure sending mail. —> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Net.Base64Stream.EncodeBytes(Byte[] buffer, Int32 offset, Int32 count, Boolean dontDeferFinalBytes, Boolean shouldAppendSpaceToCRLF)
at System.Net.Base64Stream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Mime.MimePart.Send(BaseWriter writer)
at System.Net.Mime.MimeMultiPart.Send(BaseWriter writer)
at System.Net.Mail.Message.Send(BaseWriter writer, Boolean sendEnvelope)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
— End of inner exception stack trace —
at System.Net.Mail.SmtpClient.Send(MailMessage message)

It is because of a bug in .net 4, which does not allow you to upload files larger than 3MB.
Posted
Comments
Kuthuparakkal 15-Feb-15 10:06am    
http://support.microsoft.com/kb/2468871
http://support.microsoft.com/kb/2183292
sadhana4 15-Feb-15 10:18am    
i check this link
http://support.microsoft.com/kb/2183292
but when i clicked then page not found
sadhana4 15-Feb-15 10:18am    
when i want download hotfix

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900