Virtual Directory In IIS To Physical Path

Mar 1, 2010

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.

View 10 Replies


Similar Messages:

Configuration :: Web Setup Project Change Virtual Directory Physical Path?

Apr 9, 2010

I created a web setup project. 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

[URL]

but it didn't work and my MSI stopped installing alltogether.

View 4 Replies

Web Forms :: Converting A Physical Path To Virtual Path And Vice Versa?

Oct 7, 2010

I have a code to open PDF file, like this

[Code]....

Over here I have created a folder with name Data inside my solution, so the Server.Mappath("Data") as well the statemet for converting assigning the src property of the IFrame I1 is working properly. But I want to use the files from a folder which resides in a network folder like

View 1 Replies

Web Forms :: FileUpload - Getting An Error 'C:/WebSite/userimages/' Is A Physical Path But A Virtual Path Was Expected

Jul 3, 2010

I am trying to upload a file Into a MapPath but I am getting a error 'C:/WebSite/userimages/' is a physical path, but a virtual path was expected. My code is:

[Code]....

View 6 Replies

Converting Virtual Path To Physical Path In A Handler?

Feb 14, 2010

I am trying to convert the virtual path to a physical path but don't seem to have Server.MapPath or HttpServerUtility.MapPath available in my handler. I add the System.Web namespace with no luck.

string virtualTargetFolder = String.Format("~/UserImages/{0}/Images/", user.ProviderUserKey.ToString());
string physicalTargetFolder = System.Web.HttpServerUtility.MapPath (virtualTargetFolder);

View 2 Replies

Web Forms :: Convert A Virtual Path To A Physical Path?

Jan 30, 2010

the syntax to convert a virtual path to a physical path.

I wanted to upload a file located in one server and i know only the website name.

View 3 Replies

How Can A Virtual Directory Path Appear Case Sensitive

Nov 18, 2010

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>

View 1 Replies

IIS 7 Identify Virtual Directory From Metabase Path?

Nov 17, 2010

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?

View 1 Replies

Configuration :: Virtual Directory Path Is Not Valid?

Mar 5, 2011

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 :

[code]...

View 2 Replies

MVC :: Using A Virtual Directory To Specify Uploaded File Path?

Mar 18, 2010

I created a virtual directory in the Visual Web Developer, according to this post:

[URL]

I want the user to upload / download documents in the mvc app to that virtual directory. When a document is uploaded, I'm specifying the path to the document to 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].

View 1 Replies

Web Forms :: How To Give Absolute Path That Working With Virtual Directory And Localhost

Nov 9, 2010

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

View 4 Replies

C# - Rootlevel HTTP Module - Unable To Understand The Master Page Path In The Virtual Directory

Mar 1, 2011

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.

View 1 Replies

IIS7 Application Configuration - Placing Into Single Physical Path And Creating Multiple Pointing To That Path

Dec 20, 2010

I have a custom ASP.NET application that I utilize for several clients that I host. Each client has a separate domain and the application is normally a child application under the root domain [URL]. The application files are the same (aspx, ascx, style sheets, images, etc.). The only thing different is the web.config file for each client. As development of the application continues to evolve, I have to update the application for each directory and this obviously becoming tedious. I am trying to come up with a method keep the application up to date. My first though is placing the application into a single physical path and creating multiple applications pointing to that path (the problem with this method is I can't have different web.config files). I am curious as to what solution others are using in this scenario...

View 2 Replies

C# - How To Convert Physical Path To Web Path

Jan 21, 2011

I need to display an Image in web page. But the Image doesn't exist in the Web directory. If the image is under web directory I know that just "../Images/TN/my.jpg" will work. But the image is available in "D:ImagesTNmy.jpg" and My web site is deployed in "C:appsmywebsite". How do I convert the "D:ImagesTNmy.jpg" path to a relative path so that the Image will be visible in web page?

View 3 Replies

WCF / ASMX :: GetUser() Is Null When WCf In Virtual Directory Is Called In Parent Directory

Nov 10, 2010

I have a WCF service in a virtual directory that is called in the code behind of a page that is in the parent directory, when i debug the code i can see the wcf service is being called, however when the service calls Membership.GetUser() it alway returns null. The user has already logged in to the asp.net site. When i call the service via jquery it does pick up the correct user, but i need to be able to call it via the code behind as well. I am developing in .Net 3.5 how i can make the Wcf pick up the logged in user?

View 3 Replies

Installation :: Development To Web Movement: Directory Listing Denied - This Virtual Directory Does Not Allow Contents To Be Listed

Oct 27, 2010

I made a web form on a development website of mine (we'll call it dev.somewhere.com) and tried to publish it out to the web (we'll call it [URL]) in a subfolder. I named it default.aspx like I was supposed to and it worked flawlessly on the dev site. When I published it out the web, I wound up getting the following error when trying to get to the subfolder: [URL] Directory Listing Denied

This Virtual Directory does not allow contents to be listed. Confused and flustered, I tried to go to [URL], but I wound up with some error that won't tell me the problem. Instead it tells me to change the my web.config to read <customErrors mode="Off"/>.

View 1 Replies

Getting Physical Path Of .csv File?

Jun 11, 2010

i am trying to insert with bulk and getting the following

Cannot bulk load because the file "D:inetpub.........insertgid.csv" could not be opened. Operating system error code 3(The system cannot find the path specified.).

the path is correct, dont know why not working.

View 9 Replies

MVC :: Publish To A Different Physical Path?

Mar 22, 2011

I'd like to publish my project to a location of my choice. How can I do it?

View 8 Replies

Why Necessary To Create Virtual Directory In IIS When Website Content Is Placed In IIS Root Directory

Feb 13, 2010

As virutal directory points to physical path of the application, so if the IIS root directory is C:inetpubwwwroot and the application is stored at D:websites, than we need to create a virtual directory but if the application content is placed at C:inetpubwwwroot, then why still need to create virtual directory.

View 3 Replies

Regular Expression For Physical Path?

Jul 1, 2010

the javascript regular expression for physical path like

1) User Should enter something like this in the textbox( c://Folder1/) . Maybe in d: or e:

2) But after that acceptable

a) (c://Folder1/Folder2/)
b) (d://Folder1/Folder2/Folder3/abc.txt)
e) (c://Folder1/Folder2/Folder3/abc.txt)

View 2 Replies

Programmatically Obtain Physical Path From Url?

Mar 30, 2010

I have a website with server-side code that needs to determine the physical path of the website on disk from the sites url...

Example 1: Given www.mysite.com, how can I determine the physical directory it is mapped to?

Example 2: Given dev.mysite.com, again, how can I determine it's physical directory?

View 3 Replies

MVC Break When Server's Physical Path Is In UNC Format?

Jun 3, 2010

I'm trying to get my company to move to ASP.NET MVC and away from classic ASP. I've written some sample applications as proof-of-concept but now I'm running into problems as I try to deploy these mvc applications to my company's IIS7 server. My System Administrator says that there is something in ASP.NET MVC that is preventing him from having a UNC path specified as the server's physical path to the site folder. This sounds ridiculous to me because (to my knowledge) the MVC Framework doesn't have any effect on this setting... nor does the code I write. The bottom line is this: if any of my mvc applications are to be used for clients, they have to run on a server using a UNC physical path. Currently, the mvc apps will work when the server has a non UNC path... just not with a UNC path.

Am I wrong to tell the System Admin that it isn't MVC that's mucking up his UNC paths? Is there I resource you guys know of that I can use to research this problem? Edits:

The error that is showing up in the browser says:

Security Exception

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

And the Stack trace showed:
[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +42
System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase) +145
System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +73
System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +111
System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +279

View 2 Replies

Configuration :: Access To Physical Path Denied?

Dec 11, 2010

Via my .aspx pages users can upload photos to my server, and also delete them again.

The uploading works, so users can write new photos to the physical location.

But when trying to delete those photos I get:

Access to the path 'E:wwwrootimagesphotos6_315_P1010619.JPG' is denied.

I checked (via Windows Explorer) what the security properties for that folder are: IIS_IUSRS group has read and write access...

View 1 Replies

Physical File Path To Initialize In SiteMapProvider?

Mar 8, 2011

I have my owned siteMapProvider, I need phisical file path to initialize it but I can't use HttpContext to do that, because IIS 7 will thrown exception:

fileName = HttpContext.Current.Server.MapPath(fileName);

How can I do MapPath without HttpContext?

View 2 Replies

C# - Determine The Physical Path Of A File Without An HttpContext?

Aug 23, 2010

I have some processes that run without an HttpContext in an ASP.NET MVC web application. This process needs to be able to determine the physical path to the Contents directory of the application for reading/writing data. But, since it is without an HttpContext, I don't get to use fancy things like Server.MapPath and such.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved