Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL
I had developed one web form at the end user can attach multiple files and submit the form.
 
It works fine If I run my web form from Microsoft Visual Studio 2005, I can attach multiple different files e.g. .PDF, .DOCX, .TXT, .Xls
 
When I run web form from SQL server2008 r2 it is not working. It can attach only one file not multiple and When you try to open one attach file (.PDF) in outlook it gives following error
“It was sent as an email attachment and wasn’t correctly decoded”.
 
When I attach .docx OR .Xls file and Try to open it. It opens but somehow content was erase, it just show blank word file though in email you can see the File size(240, KB).
 
It works fine in Microsoft Visual Studio 2005. I can attach multiple files and can see the contents of all the files.
 
Is there any server setting problem in SQL Server 2008 R2….?
Posted 7-Nov-11 10:51am
uvasani326
Comments
Bala Selvanayagam at 7-Nov-11 16:35pm
   
Are you able to post your code, if it is not in pages please?
Mark Nischalke at 7-Nov-11 17:47pm
   
Please clarify. You have a web form that allows multiple file uploads which you are then attaching to an email?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Take a look at these for proper attachment processing :
 
ASP.NET email with multiple attachments[^]
 
Sending Email with attachment in ASP.NET using SMTP Server[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Your attachments elements can be corrupted by any reason, if it's true make use microsoft outlook repair
 
[Spam link to commercial product removed] owns powerful functionality to help locate and recover whole messages with attachments
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 200
1 George Jonsson 175
2 Kornfeld Eliyahu Peter 169
3 PIEBALDconsult 110
4 Richard MacCutchan 85
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100