kained 0 Junior Poster

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.

Anyone give me anything to go on from the following stack trace/error message thingy.

Ayy 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:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

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.]

   System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +10070632

   System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +108

   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +111

   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +74

   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2095

   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138

   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +89

   System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType) +110

   System.Net.Mail.Attachment..ctor(String fileName) +78

   DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String[] Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL) +202

   DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL) +234

   Taknology.Modules.CustomForms.Pro.ViewCustomForm.ProcessPrimaryNotificationTemplate() +1484

 

[ModuleLoadException: Error: Request a Quote - LPA Group Plc is currently unavailable.]

   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +174

   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(PortalModuleBase objPortalModuleBase, Exception exc) +41

   Taknology.Modules.CustomForms.Pro.ViewCustomForm.ProcessPrimaryNotificationTemplate() +1955

   Taknology.Modules.CustomForms.Pro.ViewCustomForm.SubmitForm() +356

 

[ModuleLoadException: Error: Request a Quote - LPA Group Plc is currently unavailable.]

   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +174

   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(PortalModuleBase objPortalModuleBase, Exception exc) +41

   Taknology.Modules.CustomForms.Pro.ViewCustomForm.SubmitForm() +814

   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115

   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

 

[PageLoadException: Error: Request a Quote - LPA Group Plc is currently unavailable.]

   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +440

   System.Web.UI.Page.HandleError(Exception e) +109

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11038859

   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11038410

   System.Web.UI.Page.ProcessRequest() +91

   System.Web.UI.Page.ProcessRequest(HttpContext context) +240

   ASP.default_aspx.ProcessRequest(HttpContext context) +9

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

 

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618