Questions tagged [virtual-path]

54 questions
2
votes
2 answers

ASP.net - The virtual path '/Master.master' maps to another application, which is not allowed

I have an asp.net master page located in the root directory of my site. I have a page in the directory "/myfolder" from the master page: <%@ Page Title="" Language="C#" MasterPageFile="../Master.master" AutoEventWireup="true"…
derp_in_mouth
  • 2,003
  • 4
  • 15
  • 17
2
votes
2 answers

server variable document root is not playing nice with file_exists when virtual folder is involved

I've got a virtual folder on IIS. When I do a server document root, I'm not getting file_exists find the files. But interestingly, if I use include (or require directives for that matter) same files being found. example $full_path =…
Average Joe
  • 4,521
  • 9
  • 53
  • 81
1
vote
1 answer

asp.net-core - Set response's virtual path with middleware

Setup ASP.NET-Core web application hosted at https://first-domain.com/ Using a load-balancer to place the site under https://second-domain.com/some/path such that a request to https://second-domain.com/some/path/Page1 passes the request to…
Daniel
  • 8,655
  • 5
  • 60
  • 87
1
vote
0 answers

Script and Styles render in ASP.NET MVC

I'm trying to minify some files with BundleConfig, everything looks to be ok, the problem is when I try to use @Styles.Render and @Scripts.Render, when I use those renders on the HTML I get a loop of errors and of course the page doesn't load, I…
1
vote
1 answer

Express virtual path prefix not working with angular 6 app

I'm hosting my angular 6 app with express static app.use(express.static('/', __dirname +'/client/angular')); The problem came when i tried to add another page to my server as a landing page. So i specified a mounth path '/app' to my angular…
Felipe Toledo
  • 599
  • 1
  • 10
  • 16
1
vote
0 answers

How can I map a relative path in weblogic to virtual path?

I am uploading some documents from my application in C:\oracle\MiddlewareWeblogic\user_projects\domains\base_domain\uploads because from my code , File f=new File("."); f.getCanonicalPath(); returns me the above path automatically (don't know how…
Sarabjeet
  • 264
  • 2
  • 17
1
vote
1 answer

How can I trick MVC into rendering links based on a different virtual path?

I'm running a bunch of apps on discountasp.net with the subdomain addon. Since with shared hosting I can't have multiple IIS sites, I've also written an HTTP module that allows sites in subfolders to operate as if they are running in the root…
Daniel Schaffer
  • 56,753
  • 31
  • 116
  • 165
1
vote
1 answer

Print pdf file from a virtual path

I am using this code to print myDocument.pdf file from drive D: which is working. Process proc = new Process(); proc.StartInfo.Verb = "PrinTo"; proc.StartInfo.FileName = @"C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe"; …
1
vote
0 answers

Accessing images in iis hosted directory from php page

I have a php page that will needs to navigate to other directory that is hosted in iis in order to access the images but it keep telling me file not found. IIS D:\website\images (the website folder here is already a website hosted by…
1
vote
1 answer

"Virtual Path Not Known" When running ASP.NET MVC Unit Test Project!

Does anyone know why is it not possible to get the virtualpath when you are running the asp.net mvc unit test project? Is it because it creates a Temp folders under TestResults Folder.??
kurozakura
  • 2,339
  • 8
  • 28
  • 41
1
vote
2 answers

asp.net - Is my path virtual?

Is there a built-in asp.net method for checking the "virtualness" of a path? The only way I've been able to do it so far is with the following try block: public void Foo(String path){ try { path = Server.MapPath(path); } …
brad
  • 73,826
  • 21
  • 73
  • 85
1
vote
3 answers

IIS doesn't correctly substitute "~" in VS2012 ASP.NET web site

I have my ASP.NET site generated from Web Forms template in Visual Studio 2012. I have this code in the master page: <%: Styles.Render("~/Content/themes/base/css", "~/Content/css") %> <%:…
Mikhail
  • 20,685
  • 7
  • 70
  • 146
1
vote
0 answers

ASP.NET - How to get assembly from virtual path in custom IResourceProvider implementation

I'm developing custom local resource provider implementation, which should supply resource values from resources located in App_LocalResources folders, but the resources should be compiled as embedded. So no resx files will stay in web app folder,…
Buthrakaur
  • 1,821
  • 3
  • 23
  • 35
0
votes
2 answers

ASP.net MVC virtual path

I would like to add a virtual path to my asp.net application. In visual studio there is a setting virtual path I'd like to put a version number as the part of the url of my application. It was like http://localhost:53278/{controller}/{action} I…
icn
  • 17,126
  • 39
  • 105
  • 141
0
votes
1 answer

Popup asp.net page, javascript and path error 404

I've this problem. Two pages: a parent and a child called in popup window by javascript. The child page is a search page. In this user can select one of the results and resend it to the parent page by querystring and javascript. this is the script I…
Kyashan
  • 1
  • 2