asp.net - Access Virtual Directory in Another Web Application -
i have 2 web application projects (project , project b) in same solution.
i want able to: through project a, save file somewhere in directory of project b.
whenever use server.mappath etc, resolves virtual directory of project a, not of b.
from reading, believe should able type url of project b directly save method. however, neither project deployed @ moment. besides, want leverage fact on same solution.
tia!
but if you're saving file, don't want access virtual directory; want actual (physical) directory. means request.mappath way go; can use overload cross-app mapping set true.
string pathtoappb = request.mappath("/appbvirtualpath", request.applicationpath, true);
you still have know virtual path application b deployed to, though; , can't test locally unless deploy local iis.
Comments
Post a Comment