How to access Server.MapPath

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

Our existing VWG application uses Server.MapPath to get the full path to the “HelpFiles” directory under the main web root.

string directory = Context.Server.MapPath(“/HelpFiles”);

How should I accomplish this in WiseJ?  Thanks.

  • You must to post comments
0
0

Use the regular System.IO classes: Path.Combine(Application.StartupPath, “MyFiles”);

The application path is Application.StartupPath. You also have StartupUri, ExecutablePath, etc.: http://wisej.com/docs/html/T_Wisej_Base_ApplicationBase.htm

/Luca

  • You must to post comments
0
0

Hi Andrew,

please take a look at a similar question and Luca´s answer:

http://wisej.com/support/question/access-directory-structures-and-contents-on-server

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json