asp classic - Server.MapPath not returning expected path -
i've been handed alegacy (classic asp), red headed step child has been beaten, shot , otherwise maimed number of people before time, application , life of me can't figure out how it's working on production (i got copy production in case files weren't date in source control).
i have code following
tmpdefaultxslfile="xsl/somevalue" ... objxsl.load(server.mappath(tmpdefaultxslfile & ".xsl"))
however, server.mappath seems not map file expected location (i.e."\asp_file_directory\xsl\somevalue.xsl" , modification required xsl file.
is there way system fooled have server.mappath map somewhere else?
looks virtual directory on iis causing this. check url , compare directory structure within iis including virtual.
Comments
Post a Comment