Questions tagged [virtual-path]

54 questions
0
votes
1 answer

Razor Virtual Path issue

The controller is: public class HomeController : Controller { public ActionResult LogOn() { return View(); } [HttpPost] public ActionResult LogOn(string captcha) { if (captcha ==…
gigi
  • 3,846
  • 7
  • 37
  • 50
0
votes
1 answer

I cant create a virtual path prefix (where the path does not actually exist in the file system) in node js using express

I want create a virtual path prefix (where the path does not actually exist in the file system) in my node js file, but it doesn't work. The virtual path not create and my css and js not loaded from index.html I only use app.js and static folder I…
froz
  • 61
  • 6
0
votes
1 answer

asp.net VirtualPathProvider - no longer recognising physical files

I'm using VirtualPathProvider to return virtual pages from a database table and it's all working fine but the problem is that the site no longer recognises when a page exists physically rather than being held in the virtual pages table. The code…
Steve
  • 35
  • 5
0
votes
2 answers

ASP.NET: How to get URL of a file?

i want to get the fully qualified url to a resource in ASP.NET. e.g.: with the code-behind file right now containing: private String GetFaviconPath() { String url =…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
0
votes
1 answer

Getting error as not a valid virtual path while downloading file in C # asp.net

I have written a piece of code for downloading the file from the server. So when I download it, the file gets downloaded properly. But when I Open the document, it shows me error as. Failed to load particular document. Also while debugging I get…
Nad
  • 4,605
  • 11
  • 71
  • 160
0
votes
2 answers

Create a VirtualPath in IIS for hosting a Web Service in SharePoint

I am trying to host a custom web service in SharePoint 2007 (WSS 3.0) and so far I have followed the instructions here to create a simple 'Hello World' web service: Create WSS Web Service However, when i get to the virtual path bit in step 4 I am…
Luke
  • 422
  • 5
  • 15
0
votes
1 answer

Reach static files under application within website using IIS

I have multiple ASP.NET apps deployed within the Default Web Site in IIS (8). Their virtual directories set up like: App1, App2, so I reach them as localhost/App1/... , localhost/App2/... , they work well. I want to load a javascript file like below…
Bene
  • 81
  • 1
  • 4
0
votes
1 answer

Accessing development folder as if it is node global folder

I've modules folder which contains my modules for app1 and have another module folder for app2 and so on. I wish to import my modules without passing virtual module paths. For eg. c:\Projects\Apps\ firstApp www.js // I wish to import db…
uzay95
  • 16,052
  • 31
  • 116
  • 182
0
votes
1 answer

Why current ASP.NET MVC application root virtual path is not available in a another thread/Task?

One of my recent projects involved sending reminder e-mails based on some reminder configuration. E-mail sending is implemented in an asynchronous job using Quartz.net. and it requires to include a permalink to a entity in the application. However,…
Alexei - check Codidact
  • 22,016
  • 16
  • 145
  • 164
0
votes
1 answer

Setting and changing virtual paths in Artifactory

Does Artifactory (OSS, not enterprise version) provide a "latest-release" URI concept, where: Perhaps I have http://myartifactory.example.com/artifactory/simple/myrepo/myorg/mylib/1.0.0/mylib-1.0.0.jar as a URI in Artifactory Perhaps I also have…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
2 answers

why images are not loaded despite of correct url in IIS 7?

this is the code to read the complete path with name of all files (images) from the folder inside the project @{ string[] imgfiles = Directory.GetFiles(@"D:\MVClearningProjects\Demo\Demo\Property_Data\Images\" + item.Property_ID, "*.*");} this…
0
votes
2 answers

Virtual path provided not used in ASP.NET bundles

I have the following bundle in my BundleConfig: bundles.Add(new StyleBundle("~/Content/Basic/globalCss").Include("~/Content/Basic/global.css")); I am using the following to render the CSS bundle: @Styles.Render("~/Content/Basic/globalCss") On my…
Fillip Peyton
  • 3,637
  • 2
  • 32
  • 60
0
votes
1 answer

Why is the map.server virtual path not being saved to the database

I have been stuck on saving the virtual path of a file upload to my db. Without the virtual path the file is being saved and the url in the db is the physical path of the file. so when i try to download it I am getting the local resource not…
texas697
  • 5,609
  • 16
  • 65
  • 131
0
votes
2 answers

Should the physical path of an IIS Application match the virtual path?

I understand that the physical path of an Application in IIS is not required to live in the same location reflected in the virtual paths. Of course, it can be done that way. Is it considered bad practice to have this overlap? Are there any negative…
0
votes
1 answer

ASP.NET MVC: Can't figure out what VirtualPath is?

I have a View that displays a list of images and i am now trying to get it to display the images as thumbnails. Well, i'm pretty sure i got most of it right using VirtualPath's from a custom ActionResult although i can't seem to figure out what it…