Maximum Attachment Size
-
Hi Everyody, I want to know what determines the maximum attachment size in an ASP2 web application. I send an email from a web application & the attachment is about 2 MB. Whenever I try to send it from the Visual Studio 2005 project,it takes much time then gives me an exception saying that it couldn't be sent & timed out. It works normally in the VS 2003 application. Any Clue?? Thnx a lot
-
Hi Everyody, I want to know what determines the maximum attachment size in an ASP2 web application. I send an email from a web application & the attachment is about 2 MB. Whenever I try to send it from the Visual Studio 2005 project,it takes much time then gives me an exception saying that it couldn't be sent & timed out. It works normally in the VS 2003 application. Any Clue?? Thnx a lot
Not sure if you are trying to attach the file from a web interface or if the file is located on the server. If you are having the user upload the file as attachment then you might have to override the httpRuntime's maxRequestLength value in the web.config file. By default ASP.NET only allows files with size 4MB [4096 KB] or less to be uploaded but you can change it like this:
<httpRuntime maxRequestLength="8192" />
-
Not sure if you are trying to attach the file from a web interface or if the file is located on the server. If you are having the user upload the file as attachment then you might have to override the httpRuntime's maxRequestLength value in the web.config file. By default ASP.NET only allows files with size 4MB [4096 KB] or less to be uploaded but you can change it like this:
<httpRuntime maxRequestLength="8192" />
Thanks a lot for your response..Actually the file is located on the server. Is there anything else I should change??
-
Thanks a lot for your response..Actually the file is located on the server. Is there anything else I should change??
If file is located on the server then I would first check for common things like for instance if the file is locked or not, read access, other error handling code that might cause an infinite loop etc. Post your code so we can see exactly how you are trying to attach the file. Thanks. HTH Robert
-
If file is located on the server then I would first check for common things like for instance if the file is locked or not, read access, other error handling code that might cause an infinite loop etc. Post your code so we can see exactly how you are trying to attach the file. Thanks. HTH Robert
Thanks again Robert. Actually I create a PDF file in the code,the file is placed on the server but after it is created,it's added automatically to source control..This doesn't happen in VS 2003 though I didn't change anything when converting the project to VS 2005 so I just want to remove a specific folder in the project from the source conttrol (Visual Source Safe) How can I do that??
-
Thanks again Robert. Actually I create a PDF file in the code,the file is placed on the server but after it is created,it's added automatically to source control..This doesn't happen in VS 2003 though I didn't change anything when converting the project to VS 2005 so I just want to remove a specific folder in the project from the source conttrol (Visual Source Safe) How can I do that??
You can do the following: Goto File > Source Control > Exclude "MyFileOrFolderName" from Source Control You can also exclude that folder from your VS2005 project if it is not directly used in the project that will also take care of the VSS problem. Hope that helps:) Robert
-
You can do the following: Goto File > Source Control > Exclude "MyFileOrFolderName" from Source Control You can also exclude that folder from your VS2005 project if it is not directly used in the project that will also take care of the VSS problem. Hope that helps:) Robert
Thanks again Robert :)
-
Thanks again Robert :)