titan61
titan61

Reputation: 33

what is the scope of Server.MapPath

I have two applications A and B hosted in a same web server. Application A have a folder named Uploads. Now !! the code inside my application B need to access the folder Uploads in application A. Is it possible through?

for eg: var path = Server.MapPath("Uploads").ToString();

Upvotes: 0

Views: 335

Answers (1)

jgauffin
jgauffin

Reputation: 101150

MSDN incorrectly states

Returns the physical file path that corresponds to the specified virtual path on the Web server

The path is always from the root of the current web site / web application.

Upvotes: 2

Related Questions