Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 26th, 2006, 04:23 AM
Registered User
 
Join Date: Jun 2006
Location: Bangalore, KA, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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......
Thanks


Naidu
  #2 (permalink)  
Old June 26th, 2006, 07:35 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.



Regards
Mike
  #3 (permalink)  
Old June 26th, 2006, 07:49 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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.

HtH

"The one language all programmers understand is profanity."


Similar Threads
Thread Thread Starter Forum Replies Last Post
GMail Attachments prophet Javascript How-To 3 January 24th, 2006 03:03 AM
Email with Attachments echovue Access 2 March 22nd, 2005 10:36 AM
attachments nishant_k JSP Basics 2 December 10th, 2004 04:19 PM
attachments lily611 Forum and Wrox.com Feedback 1 June 15th, 2004 08:37 AM
Email w/Attachments aingalsbe PHP How-To 1 June 25th, 2003 04:48 AM





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