Multiple form attachement/smtp problem please help
Right basically a form i have done is refusing to let more then one attachment be attached to the form and then emailed. This is happening on multiple sites within the server.
I'm blaming our smtp server settings but don't really have anything to back up that assertion.
I'm going to find a few forums to post this on but you lot tend to be quicker quite frankly.
Anyone give me anything to go on from the following stack trace/error message thingy.
ANy help appreciated as quite frankly i don't have a clue!
dave
The given path's format is not supported.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: The given path's format is not supported.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[NotSupportedException: The given path's format is not supported.]
Can you post the code you are using? Perhaps something is happening that is causing the path to the attachments to become malformed after the first one.
What is this - [ModuleLoadException: Error: Request a Quote - LPA Group Plc is currently unavailable.]
Is this the problem, as it appears that the path problem is coming from a core DotNetNuke Smtp code, which appears to be very similar to the standard .net one. I'd imagine that something else is happening on the form that is causing it to fail in the Smtp part of the code. How defensive is your code? Are you checking conditions that should be true actually are?
Bookmarks