p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Professional (http://p2p.wrox.com/forumdisplay.php?f=57)
-   -   Regarding Attachments (http://p2p.wrox.com/showthread.php?t=44475)

mvnaidu June 26th, 2006 04:23 AM

Regarding Attachments
Hi friends,I am new to this group.I have problem of attaching files when i am sending a mail from ASP.Net.i am getting the error as "Access to the path "C://doc........"is denied". Can u please help in this.
I am using ASPNetMail Free trail component for sending mails.
Please help inh this by giving good solution for me.

Waiting for replies......


mike_remember June 26th, 2006 07:35 AM

Hi Friend

The problem you are facing might be due to the problem that you are trying to attach a file directly from your C: drive. You should first upload the selected file to a folder on your server (where your application is hosted), and once the mail is sent, delete the attached file.

But in any case, if you are running your application from your local PC (http://localhost), you should be able to send the attachment. It might be a security issue. Try to attach a file directly from c drive, e.g C:/Upload/SomeFile.txt

Do revert if you need further clarification.


dparsons June 26th, 2006 07:49 AM

It IS a security issue. You will need to grant the aspnet account (could also be the IWAM user) the necessary permissions to access that directory.


"The one language all programmers understand is profanity."

All times are GMT -4. The time now is 03:16 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.