This workflow is a xamlx file in an asp.net application.
I have a CodeActivity with an InArgument that takes a relative file path to a text file that lives in the asp.net application.
What is the right way to turn the relative path into an absolute path, so that I can read the file into memory.
HttpContext.Current is null in the code activity so I can’t use Server.MapPath.
The way I have it working now is by reading an appsetting called SitePhysicalRoot from web.config and passing the SitePhysicalRoot setting and the inargument value to Path.Combine.
I feel like there is a better way to do this (maybe with a WF extension). If a WF extension is the way to go, can someone provide sample code?
This is what I do: