Click here to Skip to main content
13,050,242 members (103,391 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 9:51am
Bala Selvanayagam 7-Nov-11 16:35pm
Are you able to post your code, if it is not in pages please?
Mark Nischalke 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
Please Sign up or sign in to vote.

Solution 1

Rate this: bad
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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2017
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