Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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."
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.