Top "Server.mappath" questions

The Server.

Cannot use Server.MapPath

What I must do to make Server.MapPath work? I have using System.Web; what else? When I type Server …

c# visual-studio intellisense server.mappath
Using Server.MapPath() inside a static field in ASP.NET MVC

I'm building an ASP.NET MVC site where I'm using Lucene.Net for search queries. I asked a question here …

c# asp.net-mvc static lucene.net server.mappath
Server.Mappath in C# classlibrary

How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for …

c# server.mappath
Map the physical file path in asp.net mvc

I am trying to read an XSLT file from disk in my ASP.Net MVC controller. What I am doing …

asp.net-mvc filepath server.mappath
How can I use Server.MapPath inside class library project

I have a web application thet has a number of class library projects. Some example code below. public static class …

c# asp.net server.mappath
Using Server.MapPath in MVC3

I have the code string xsltPath = System.Web.HttpContext.Current.Server.MapPath(@"App_Data") + "\\" + TransformFileName It returns C:\inetpub\wwwroot\…

c# asp.net asp.net-mvc-3 iis server.mappath
Image URL is correct but image not showing

I have a website on GoDaddy. All permissions are set correctly and the image DOES exist. However when the page …

asp.net server.mappath imageurl
An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.Server.get'

So I have two functions and I'm getting an interesting problem. Essentially I'm aiming to make my code more portable …

c# asp.net inheritance object server.mappath
How can I use Server.MapPath() from global.asax?

I need to use Server.MapPath() to combine some files path that I store in the web.config. However, since …

c# asp.net global-asax server.mappath application-start
How to use Server.MapPath when HTTPContext .Current is Nothing

I have some code that works fine when I need to delete some image files from a directory on my …

asp.net vb.net httpcontext server.mappath