场景:本地服务器上,用“localhost”方式访问网站;在某网站集(Site Collection)下的子网站(Sub Site)中,点击网站权限菜单(Site permissions)等关于调用Layout下文件的情况,就出现“File not found”异常;配置网站web.config的CustomError为Off,出现“Unable to find the specified file.” 
 
解决方式:不要用“localhost”,用“机器名”或者“IP”访问就没问题了,按道理也是应该这样做,考虑到客户端是无法认“localhost”的。
 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-08-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-07-24
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案