Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search


Getting The Pickup Directory Path Is Required And Was Not Specified

Iam getting getting The pickup directory path is required and was not specified. exception while sending email in and C#.This is the code which i am writing :


message.fields.add(...../namespace) but i have no idea what will be the namespace value for adding the mailbox name.

View 1 Replies (Posted: Jun 30, 2009 12:18 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Web Forms :: Cannot Get Iis Pickup Directory
i had written a mail sending program in in windows xp.following is the code that i have written:

MailMessage Mail = null;
SmtpClient Client = null;
MailAddress From;
Mail = new MailMessage();
Client = new SmtpClient();
From = new MailAddress(;
Mail.From = From;
Mail.Subject = Demo mail;
Mail.Body = hai this is sample mail;
Client.Host = strHostName;
Client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;

it works in xp...

now i tested the same program in windows 7...and i am getting an error called.."cannot get iis pickup directory"...

Posted: Mar 14, 2011 12:35 PM

View 1 Replies!   View Related
Cannot Get IIS Pickup Directory Error / How To Fix It
i i wrote an asp application which sends mail.following is the code:

MailMessage Mail = null;
SmtpClient Client = null;
MailAddress From;
Mail = new MailMessage();
Client = new SmtpClient();
From = new MailAddress(;
Mail.From = From;
Mail.Subject = Demo mail;
Mail.Body = hai this is sample mail;
Client.Host = strHostName;
Client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;

it works in windows xp operating ssyste.

when i run the same code in Windows vista and windows seven i am getting an error specifying "Cannot get IIS pickup directory".

i searched in net....

some suggests that use SmtpDeliveryMethod.Network;

why we are using this(Network) instead of PickupDirectoryFromIis...

Posted: Mar 15, 2011 10:44 AM

View 2 Replies!   View Related
Cannot Get Pickup Directory IIS 7.5 / How To Repair It
I'm getting "Cannot get pickup directory" under IIS 7.5. I've granted privileges to the mail folder to the IIS_IUSRS group. I recall from IIS 6 that I had to use to make some changes to the metabase using ACL tool.

Does the IIS 7.5 also use the metabase? Do I need to do anything with IIS 6 when installing pickup directory?

Posted: Feb 17 at 22:29

View 1 Replies!   View Related
Cannot Get IIS Pickup Directory / How To Rectify This Error
I've been using the Smtp server .The error I get:

System.Net.Mail.SmtpException: Cannot get IIS pickup System.Net.Mail.IisPickupDirectory.GetPickupDirectory().

This Error occured ,when Email send from ASP web page.But EMail send from ASP.NET page,error is not occurred.

Posted: Feb 3 10 at 7:36

View 2 Replies!   View Related
Dump Mail To An SMTP Pickup Directory-Only Getting 1 Email-Expect All?

Dump Mail To An SMTP Pickup Directory-Only Getting 1 email-Expect All

Posted: Feb 01, 2010 12:50 PM

View 6 Replies!   View Related
"Cannot Get IIS Pickup Directory" / How To Avoid It
I'm using this code to generate emails and it's working in my machine:


But, doing the same thing in other machine(having VS.Net experess) the program is giving me this error:"Cannot get IIS pickup directory"

Posted: Aug 27, 2007 08:13 AM

View 10 Replies!   View Related
ISS Virtual Directory And HTML's Reference To Root Directory Path
I have created a virtual directory FOO through IIS, which has alocal path of D:websiteFOOhtml, and thereby accessable at [URL] I have an image D:websiteFOOhtmlimagesBAR.jpg, and I want to reference this image within any HTML file within any subdirectory using the following HTML tag: <img src="???imagesBAR.jpg" alt="BAR" align="middle" border="0" />

If the aforementioned HTML codeis used, then what would I need to put within? to assure that any of the following HTML files can reference imagesBAR.jpg from root directory: D:websiteFOOhtmlSubAA.html

Posted: Dec 30, 2008 04:02 PM

View 3 Replies!   View Related
Web Forms :: Show Directory List - Url Pathis Missing The Directory Name?
I havea page thatshows a list of the files in an upload directory. ie: My customer uploads a file through my web page and the file ends up in the proper directory. When I click on a file name, the url pathis missing the directory name. It's as if my customer uploaded directly to my root. Interestingly, when I upload a file through the same web page, the path remains intact and I am able to click on the link and download the file. How can I get the proper path in my url name. Here is my code .


Posted: Feb 03, 2010 01:30 PM

View 1 Replies!   View Related
How To Give Full Path For Two Required Parameters Of Copy Method
I have already create special folder to copy default picture for new user and put it inside that folder.

I have used copy method ( to do that and works fine but I have to give full path for two required parameters of copy method for example:

I want to pass

sourceDir = "~xyzdefault.gif"
destDir= "~xyz" + userId + ".gif"

can anyone guid me to another method to do that without write full path?

Posted: Feb 5th, 2011, 10:26 AM

View 6 Replies!   View Related
How To Set The Directory Path For The Website
i am using the following code to read in a text file


The problem is that i dont know how to set the directory path for the website..

Posted: Dec 16, 2008 02:53 AM

View 5 Replies!   View Related
MVC :: How To Get Current Directory Path
I usedDirectory.GetCurrentDirectory(); and got the following path:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDE

But where I am realy at is c:c#mvcmyProject

How do I get the current directory in a controller not in c:Program Files...?

Posted: Jan 30, 2010 04:21 PM

View 3 Replies!   View Related
Virtual Directory In IIS To Physical Path
My basic question is, can a virtual directory in IIS point to a physical path that's not on the local machine? For instance, right now I have a virtual path /NaturalGasReport/NYMEX which points to physical path C:Program Files (x86)NymexSettleNATGAS_REPORTNYMEX, but I want it to point to a physical path on a difference PC on the same network. Is this possible? (I know I can just try it out so I apologize for asking but I thought it would be best to get an explanation along with "yes" or "no"). If you want more detail, this is what I need to do. To make a long story short, because of a vendor product we are using that won't run on a 64-bit operating system, I have to run a program called Generate_NGReportData.vbs (it's a vbscript program) on a PC I will call 28. It uses a vendor product which produces jpg files which are graphs of the Natural Gas market. The machine where I wish it could run is called RTEST01 but this machine runs a 64-bit OS and the components won't work there. RTEST01 has the databases. So, I created a datasource on 28 which points to RTEST01's database. The vbs program will read the data, generate the reports, and write one row to a database table on RTEST01. RTEST01 has to run the complimentary program which sends these reports (via email). 28 is not an email server so it can't email the reports. So on RTEST01 I will run Send_NaturalGasReport.vbs. This program creates an email body of html. The html references [URL]NaturalGasReport/NYMEX/" & Day(nymex_update_dt) & ".jpg which is a virtual directory pointing to C:Program Files (x86)NymexSettleNATGAS_REPORTNYMEX. I need it to point to the folder and files on 28.So if my initial question has a simple yes answer then I am all set. If not, examine my architecture and propose an alternative solution.

Posted: Mar 1st, 2010, 09:27 AM

View 10 Replies!   View Related
Web Forms :: How To Get The Full Path To The Directory
The path to the directory for the application is


Can I get that with a Request or some other means?

Posted: Oct 28, 2009 04:18 AM

View 6 Replies!   View Related
Configuration :: Why Is The Directory Only Seen When Outside The Root Path
I'm trying to deploy my web project to my local IIS server (C:inetpubwwwrootlunchbox). By default the in is created inside the project directory - i.e lunchboxin. This setup, however, gives me the following error when I try to open the site:

When I move the in directory outside the project root (i.e C:inetpubwwwrootin), the site opens up just fine. I'm also able to test the web project from Visual Studio without any issues.

Can someone tell me why I have to move the in directory outside the project root to make the site work? What can I do to not have to do this?

Posted: Dec 02, 2010 08:27 PM

View 4 Replies!   View Related
VB - Simple Directory Path Parsing
i have a web application and i need to take a full Directory path (for ex: http:\<server><websitename>folder1 est.lst) and parse the name of the folder that has test.lst file. The directory tree can vary and i just need a generic way to parse this path and find the directory name which has the file.

Posted: Jan 21, 2010 02:28 PM

View 2 Replies!   View Related
How To Access Root Directory Path
How to access hosting root directory (e.g. which contain "www" directory, where visible to users files are kept).

Request.PhysicalApplicationPath(), Server.MapPath("~"), Server.MapPath("../") methods give a string with "/www" in the end

Server.MapPath("../../") give "Cannot use a leading .. to exit above the top directory" error Is there any way to get root directory path ?

Posted: Dec 26, 2008 05:47 PM

View 4 Replies!   View Related
Get The Path To File Using Directory Info?
I have a page where im listing out the files within a directory.How can i get the path to the files that are listed?

in other words,i want the path to the file to belike this:

but using this string url = Request.RawUrl.ToString(); returns [ ]

That file is actually within a sub directory of the pdfs folder. So the link is obvisously not correct. Ive tried other suggestions found online, but those return the link like this [ ] again missing the subdirectory it actually belongs to.

Posted: Jun 01, 2010 09:40 PM

View 8 Replies!   View Related
Get Path Of Selected Directory In Textbox?
In my web application, user requires one option he shuld select only directory, for this requirment is one Textbox and beside this i taken one button control when he click button how to open a browse window and afterhe selects any directory , how to retreiveseleted directory path in Textbox.

Posted: Jan 24, 2009 12:28 PM

View 9 Replies!   View Related
How Can A Virtual Directory Path Appear Case Sensitive
To start with then we have a LinkButton whose text is actually an image tag. The image it links to is a Png and resides in a folder in the web directory. This is IIS V6 and win Server 2003.

The path is [URL]

Admin is a virtual directory configured in IIS.

The above url doesn't work but if you change it to [URL] (lowers case 'a') then the image is served, change it back to 'A' and it takes you to login, you log in and it loops back to log in. change to 'a' and voila the image is served. Weirdly this problem doesn't always occur and I have hunted for a resolution for days to no avail.

As requested this is the complete link button

<asp:LinkButton ID="lnkCommitAll" runat="server" CausesValidation="false"><asp:Image ID="imgCommitAll" runat="server" ImageUrl="~/Images/Grid/confirm_16.png" AlternateText="Commit All Changes" />Commit All</asp:LinkButton>

Posted: Nov 18 10 at 10:24

View 1 Replies!   View Related
IIS 7 Identify Virtual Directory From Metabase Path?
I am trying to profile the number of "Anonymous Requests" for an ASP.NET web application using perfmon. When I select this key, I have to pick a process of the form _LM_W3SVC_#_ROOT. How do I map the IIS metabase path back to the web application?

Posted: Nov 17 10 at 17:40

View 1 Replies!   View Related
Configuration :: Virtual Directory Path Is Not Valid?
I have created a setup for my application which is having both website and desktop application. i m supposed to changes connection string in both the config files at runtime. i used following code :


Posted: Mar 05, 2011 05:49 AM

View 2 Replies!   View Related
Could Not Find The Physical Path Of Virtual Directory
I am trying to get physical path of virtual directory programatically and I want to open the web.config file for some purpose. Its throw exception like "System.IO.FileNotFoundException: Could not find file 'C:web.config'. File name: 'C:web.config'"

1.web.config file is available under the root directory.

2.why its trying to find the web.config file in 'c:web.config'?, virtual directory is available in 'C:Inetpubwwwroot\____'

3.How to solve the problem?.


1.Appliacation-A is web application and Application-B is window application.

2.I have set the virtual directory of web application as "Appliacation-A".

3.I am trying to run the window application-B and trying to get the Phycical path of "Appliacation-A" from the window application.

Posted: May 21, 2009 06:08 AM

View 2 Replies!   View Related
MVC :: Using A Virtual Directory To Specify Uploaded File Path?
I created a virtual directoryin the Visual Web Developer, according to this post:


I want the userto upload / download documents in the mvcappto that virtual directory.When a document is uploaded, I'm specifying the path to the documentto be stored for later retrieval like so:

~/VirtualDirectoryName/FileContent.docx. But when I try to open that as a link in th app,using ResolveUrl, it appends the port number after localhost like so,[URL],I get a document not found, since it really should be, [URL].

Posted: Mar 18, 2010 12:52 AM

View 1 Replies!   View Related
Specify More Than One Directory In Web.Config's Location Path Element?
In my ASP.NET's Web Config file I have the following location elements defined:

<location path="">
<deny users="?"/>
<location path="dir1">
<allow users="?"/>
<location path="dir2">
<allow users="?"/>

The example above is specifying that all directories will be locked down to anonymous users except the two directories dir1 and dir2. I'm curious if there is a syntax that I can use that will allow me to define more than one directory within one location element. For example, it would be convenient if we could do something like this...

<location path="dir1,dir2,etc">
<allow users="?"/>

Posted: Jan 5 at 20:18

View 1 Replies!   View Related
Regular Expression For Directory Path Checking?
I've a regular expression to check the directory path checking. I am using it while someone uploads the file on server. It doesnt work if the file is in root directory (mean in parent directory as C: or D: or at the root of some other drive) but it works perfectly when file is in some directory inside root directory (mean in some directory inside the root directory as C:New Folder etc.). I want to refine it as it should also work for root directory as well. Here is the expression:


Waiting for some kind response to refine it

Posted: Dec 04, 2008 12:44 PM

View 2 Replies!   View Related
Web Forms :: Directory Path And Filename Not Working?
My first block of code isnt working and I don't know why. The second works fine. Does anybody see what may be wrong?


Posted: Aug 25, 2009 08:09 PM

View 3 Replies!   View Related
Web Forms :: Adding Image Directory Path To The ImageUrl
I have an image ItemTemplate within a FormView, where the ImageUrl is the photo_file_name. However, I want to add "~/uploads/" at the begining of the photo_file_name.

Below is the code:


So for example, if the photo_file_name is Jellyfish.jpg I want it, the ImageUrl to be ~/uploads/Jellyfish.jpg without having to change the photo_file_name in the DB.

Posted: Nov 18, 2010 09:31 PM

View 4 Replies!   View Related
C# - How To Resolve A Javascript Path For Pages That Have Different Directory Levels
I have a javacript file (script.js, for example) in the following location:


I have two pages which use this javascript, but each one of them seems to require a different path and I can't figure out how to resolve both of them.

One of them is the page:

/Website/One/Two/Three/page.aspx and this requires the path:
<script src="../../../Shared/Js/script.js" type="text/javascript"></script>

The other page is:

/Website/One/Two/page.aspx and this requires the path:

<script src="../../Shared/Js/script.js" type="text/javascript"></script>

I tried to come from the root by doing

<script src="../Shared/Js/script.js" type="text/javascript"></script>


<script src="/Shared/Js/script.js" type="text/javascript"></script>

but none of these seem to work. The temp solution I have found is to declare the script twice which is dumb, but that is all I can think of now.

Posted: Feb 15 at 15:33

View 2 Replies!   View Related
Web Forms :: How To Convert A Directory Path On Machine To A Valid URL
I have used:


to return the contents of a folder on my local machine and had used it as follows:


The problem im having is that img src is being retrieved as "c:workimagesgalleryimage1.jpg" and will not display on my webpage. Is there anyway to convert this to a URL that the img src will recognise?

Posted: Aug 02, 2009 05:31 PM

View 4 Replies!   View Related
Security :: Viewing Files In A Directory By Typing Path Into Url?
Ihavea directorythat holds some images for my site. I have noticed that if i put in the my web sites addressfollowed by "/directoryname/imagename.jpg"

it displays the image i have in that directory. Is there anyway to disable this or stop this from happening? so that the images can not be displayed like this

Posted: Apr 14, 2010 02:54 PM

View 4 Replies!   View Related
C# - How To Pass The Data Path For Object Flash Tag From The Root Directory
I'm using urlrewriting to rewrite my url. Let me introduce my problem by bellow example: Here is old url: http://localhost/test/pages.aspx?pageid=1 I have 2 cases to rewrite:


The first case is ok, but I would like to use the second case. In this case I must use root path for image, css and object tag (for flash):

With image, I modified to: <image src="~/images/icon.jpg" runat="server"/>
With css, I modified in head tag: <head runat="server">

But with the object tag, I don't know how to set root for the data, movie parameter:

<object data="anim/head.swf?xmlPath=./menu_flash.html" type="application/x-shockwave-flash" width="962" height="228">
<param name="movie" value="anim/head.swf" />
<param name="quality" value="high" />

Posted: Sep 21 10 at 4:42

View 2 Replies!   View Related
Installation :: How To Give Virtual Directory Path Other Than The Default Website
I have created web setup project for ASP.NET web service.

During the installation, on 'Select Installation Address' dialog we need to provide 'Site' and 'Virtual Directory'.

Provided Virtual Directory will be created at the location of the Site selected (i.e. the path mentioned Home Directory of the Site selected).

I want to allow user to create virtual directory at other location then the default.

If I go to IIS and create Virtual Directory then I can do what I want.

How do I achieve the same using Web Setup project?

Posted: Apr 01, 2009 05:33 AM

View 1 Replies!   View Related
Web Forms :: HttpPostedFile.SaveAs - Save To Fixed Directory Path?
I have a standard FileUploadcontrol, whichcalls a class library, where the file becomes HttpPostedFile. In beta versions of my page, I've been able to successfully use HttpContext.Current.Server.MapPath(filename)to save the file. The class library does various functions, including saving the image into /uploads and a thumbnail into/thumbs.

But now, after tidying up the layout of the site, the upload aspx page has moved to a subdirectory 'members'. I had assumed (wrongly) that calling the upload function would act as normal. However, now I receive an error because of where the page is originating from: The code wants to save the file in the non-existant folder /members/uploads and /members/thumbs

My question is: Apart from hard-coding the directory structure of my hosting provider, is there any way to use an equivilent to server.mappath which will recognise the root pathof the website, and ignore sub-folders?

One method which solves my problem is to append "../" to the start of the file location, eg HttpContext.Current.Server.MapPath("../" & filename)...However, as many pages will be able to call the upload class library (and not all of them in a sub-folder) I want to make sure I'm not always back-tracking on the subfolders.

Posted: Jan 19, 2011 06:49 AM

View 2 Replies!   View Related
Web Forms :: How To Give Absolute Path That Working With Virtual Directory And Localhost
How to give absolute path, that working with virtual directory and localhost

/Image/Icon.jpg - it is working well with localhost
/Image/Icon.jpg - It is not working on Virtual directory

I want absolute path solution which is working on both virtual and localhost directory

Posted: Nov 09, 2010 09:53 AM

View 4 Replies!   View Related
Web Forms :: FileUpload Control - How To Maintain Client Directory Path On Postback
I'm using five FileUpload controls on a single web form. Besides allowing the user to upload a file I also am collecting user data. Problem I run into is during the server side validation if any of the user data is invalid on a post back when content it redisplayed the FileUpload controls loose the client url that was selected when browsing. How can I keep that path or set the pathing on the control so they do not have to keep rebrowsing for the files on data validation errors? Right now breaking up the two form sets user data and file upload into two pages is being frowned upon and requirments would like it to be on all one page.

Posted: May 04, 2010 04:35 PM

View 1 Replies!   View Related
Configuration :: Web Setup Project Change Virtual Directory Physical Path?
I created a web setupproject. When the users install it, the virtual directory gets created and all the files are created under "C:Inetpubwwwroot<myvirtualdirectory>".

How to customize the web setup project so that I can change the virtual directory physical path? I had followed the tutorial


but itdidn't work and my MSI stopped installing alltogether.

Posted: Apr 09, 2010 11:42 AM

View 4 Replies!   View Related
Javascript - JQuery Ajax Url Path Breaks When Accessed In Different Directory Levels?
Its time for another very simple question that I can't find an elegant solution for. Basically, I have an app that is using a jQuery Ajax call. In this call, you have to specify a URL path for the service that you are calling. In this instance, I am needing to call this JavaScript function from multiple files in my application and those files are on differing levels of the folder structure.

Here's the question, how would you elegantly handle this scenario so that you can call the JS function from any location in your app. Here are my constraints:

1) I am running on Asp.Net 4.0.
2) My current environment has a local, Dev, Test, and Prod Environment (hard-coding the URL path will not work).

Code Snippets:

function MakeTheCall() {
type: "POST",
url: "Services/FileName.asmx/Handler", //Path in Question
data: "",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(result) {
error: function(xmlHttpRequest, status, err) {

I would like to be able to call this function (which is in an external JavaScript file) from files in different directory levels, such as:


Posted: Oct 15 10 at 14:00

View 1 Replies!   View Related
Active Directory/LDAP :: DirectoryEntry.Invoke SetPassword - The Network Path Was Not Found
I have an ASP.NET 2.0web app in VB.NET. Public visitors can sign up for a useraccount to access a certain directory on the website. The user accounts are stored in our LDAP server, inside our network, on the other side of the firewall from the web server. Initially, I set up the website on my development box, where everything works great. My dev box is Win XP Pro, it is inside the network on the same side of the firewall as the LDAP server. As I said, everything works great from the dev box. The LDAP Server is Win 2003. Itis not usingSSL and the Network Admin is pretty sure Kerberos is not being used. The web server (the one outside the firewall) is Win 2003. As I said, the website on my dev box works great, but the website on the web server (same code)does not work correctly.

When a new user registers on the website on the web server, the LDAP server correctly creates the user object with the correct username, and then fails to SetPassword. I removed the SetPassword functionality just for testing and found that LDAP would not only correctly create the user, but also correctly assign the user object to a particular group, and also enable the user with no problems. It just doesn't want to SetPassword. Both websites (the one on my dev box inside the firewall and the one on the webserver outside the firewall) are configured to run using impersonation. The account they impersonate is a member of the LDAP Administrators group.


Posted: Sep 28, 2007 05:54 PM

View 7 Replies!   View Related
C# - Rootlevel HTTP Module - Unable To Understand The Master Page Path In The Virtual Directory
I have a http module at root level which resolves to the virtual directory which is a .net application on some conditions as below.

I need the have the httpmodule at root level only for some requirements.

application.Context.RewritePath("/virtualdirecotry/root/pages/sample/sample.aspx", String.Empty, "");

the sample.aspx page uses a master page as below

<%@ Page Language="C#" MasterPageFile="~/Root/Pages/Master/Site.Master"

as it uses the relative path the http module is unable to understand the path and throwing following error

The file '/Root/Pages/Master/Site.Master' does not exist.

error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file appropriately.

Posted: Mar 1 at 22:53

View 1 Replies!   View Related
Copyright 2005-08, All rights reserved