日期:2014-05-17  浏览次数:20420 次

global中的Timer 存在路径问题
在global中写的Timer调用生成静态页的点击事件时,,获取html页的server.mappath()就为null了,但是直接点击的话,就不报错?请问各位大侠何故,何解?
timer application_start

------解决方案--------------------
改成Server.MapPath("/Templates/Neo/C_index.html");试试
------解决方案--------------------
try

Server.MapPath("~/Templates/Neo/C_index.html");
------解决方案--------------------
你一级一级的试,可能有目录改变了。