Click here to Skip to main content
15,918,889 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Developed a simple auto-backup program on my own computer, OS is windowsxp, mail the backup file of sqlserver automatically as an attachment. Everything is alright on my computer, but after I deployed the program on our server, OS is windows server 2003, there is an exception caught, failure sending the mail. I changed the code, I found out that the program is ok on server 2003 for those files which size are smaller than 3MB, more then 3MB, the program will fail to deliver the file.

I have confirmed that there is no problem on the e-mail provider because the program is alright on windowsxp, even the attachment is more then 3MB. I wonder if there are any settings on server 2003 limited the function.

Please help. Many thanks.
Posted
Comments
DamithSL 21-Apr-14 22:07pm    
can you post full error details?
LeonXjm 21-Apr-14 23:09pm    
Thank you for your answer, there is no error message. The program is OK. The reason cause this problem is the limitation of server 2003. I have a solution:)

The limitation is usually imposed by the mail server used to send the mail. Attachments can only be so big, usually 10MB is base64 encoded form, which is bigger than the original attachment.
 
Share this answer
 
Comments
LeonXjm 21-Apr-14 23:08pm    
Your solution is OK, but the problem is not the mail server cause I can send the mail out with XP OS. I have found out the solution myself, thank you very much.
Stop service IIS ADMIN SERVICE.
Then open the file %system%\system32\inetsrv\MetaBase.xml

change the value of ASPMaxRequestEntityAllowed\AspRequestQueueMax\AspBufferingLimit to the size you want(upload\upload\download)

reboot the system and restore iis admin servicem, everything should be ok then.
 
Share this answer
 

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