I'm using System.Web.Mail to generate e-mails and I'm adding attachments.
When I add a ~300KB *.doc file, it works as expected. When I attached a 1.2
MB PDF File, I get the following exception:
Any thoughts?
? ex.InnerException
{System.Reflection.TargetInvocationException}
[System.Reflection.TargetInvocationException]:
{System.Reflection.TargetInvocationException}
HelpLink: Nothing
InnerException: {System.Runtime.InteropServices.COMException}
Message: "Exception has been thrown by the target of an invocation."
Source: "mscorlib"
StackTrace: " at System.RuntimeType.InvokeDispMethod(String name,
BindingFlags invokeAttr, Object target, Object[] args, Boolean[]
byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[] args)
at System.Web.Mail.LateBoundAccessHelper.CallMethod(T ype type, Object obj,
String methodName, Object[] args)
at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args)"
TargetSite: {System.Reflection.RuntimeMethodInfo} 1 2135
Is this possibly related to the max size for messages that is set in your
IIS SMTP server?
IIS Admin -> Default SMTP Virtual Server -> Properties -> Message Tab
The default on my Win Xp box is set at 10240K. You are exceeding that.
-Andrew
"James" <mi*******@gmail.com> wrote in message
news:OU**************@TK2MSFTNGP15.phx.gbl... I'm using System.Web.Mail to generate e-mails and I'm adding attachments. When I add a ~300KB *.doc file, it works as expected. When I attached a 1.2 MB PDF File, I get the following exception:
Any thoughts?
? ex.InnerException
{System.Reflection.TargetInvocationException}
[System.Reflection.TargetInvocationException]: {System.Reflection.TargetInvocationException}
HelpLink: Nothing
InnerException: {System.Runtime.InteropServices.COMException}
Message: "Exception has been thrown by the target of an invocation."
Source: "mscorlib"
StackTrace: " at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
at System.Web.Mail.LateBoundAccessHelper.CallMethod(T ype type, Object obj, String methodName, Object[] args)
at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String methodName, Object[] args)"
TargetSite: {System.Reflection.RuntimeMethodInfo}
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tim Eliot |
last post by:
Just wondering if anyone has hit the following issue and how you might
have sorted it out.
I am using the command:
DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True
after...
|
by: Desmond |
last post by:
Hi,
I would really appreciate if somebody could give some
advise on this.
I've a ASP.NET application that is supposed to send
emails and it is tested to be working well on IIS 5.0 and
tested...
|
by: Lynn |
last post by:
hi,
anyone knows how to fix this error?
Event Type: Error
Event Source: ASP.NET 1.0.3705.288
Event Category: None
Event ID: 1082
Date: 1/18/2004
Time: 12:50:47 AM
User: N/A
|
by: Jens Øster |
last post by:
Hi
I am writing a ASP.NET web application that must sent some e-mails.
I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
|
by: Jens |
last post by:
Hi
I am writing a ASP.NET web application that must sent some e-mails.
I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
|
by: Liz Patton |
last post by:
Here's the exception:
System.Exception: Unable to send mail: Could not access 'CDO.Message'
object. ---> System.Web.HttpException: Could not access 'CDO.Message'
object. --->...
|
by: Martin |
last post by:
Hi,
I have standard code that sends mail from an asp.net application.
The application is running on a production web server.
it uses the standard system.web.mail namespace.
most of the time...
|
by: Gianfranco |
last post by:
Hi everybody,
First of all, sorry for my english if it isn't perfect ;-p
I have an error in an asp.net application.
I have win2003 server, with iis 6. I'm developping with visual studio...
|
by: hufaunder |
last post by:
I have a website that consumes a webservice. Both of them are in the
Default Website folder. I can execute the service without any problem
when I go to the test page http://localhost/Service.asmx....
|
by: fniles |
last post by:
One of our application uses VB6 and Access97 database. Another application
uses VB.NET 2005.
This morning for about 15 seconds when the application tries to read either
a query or a table from the...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |