You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows Server 2016新增网站后FileHold WebClient遇404错误及web.config丢失

Windows Server 2016新建网站后FileHold WebClient 404错误及web.config丢失问题解决

问题现象

在Windows Server 2016上创建新网站后,现有FileHold WebClient应用程序抛出404错误,且无法找到初始web.config文件。具体错误详情如下:

请求失败,HTTP状态404: Not Found。
描述:当前Web请求执行期间发生未处理异常,请查看堆栈跟踪了解错误详情及代码来源。
异常详情:System.Net.WebException: 请求失败,HTTP状态404: Not Found。
堆栈跟踪:
[WebException: The request failed with HTTP status 404: Not Found.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +240472
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +267
FileHold.WebClient.SessionManagerService.SessionManager.GetLogonAndPasswordSecuritySettings() in c:\Builds\5\FH\FileHold16.2.2\src\FileHold\WebClient\Web References\SessionManagerService\Reference.cs:747
FileHold.WebClient.LoginForm.Page_Load(Object sender, EventArgs e) in c:\Builds\5\FH\FileHold16.2.2\src\FileHold\WebClient\LoginForm.aspx.cs:100
System.Web.UI.Control.OnLoad(EventArgs e) +106
System.Web.UI.Control.LoadRecursive() +68
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785

解决步骤

  • 恢复/确认web.config文件:
    定位到FileHold WebClient的部署目录(默认路径通常为C:\inetpub\wwwroot\FileHoldWebClient),检查是否存在web.config文件。若文件丢失,从FileHold安装包备份、同版本部署模板或服务器备份中恢复该文件。

  • 验证SessionManagerService端点配置:
    打开WebClient的web.config,找到SessionManagerService的地址配置项(通常在<appSettings>节点下,键名为SessionManagerServiceUrl),确认地址指向正确的服务端点。例如:

    <add key="SessionManagerServiceUrl" value="http://你的服务器地址/SessionManagerService/SessionManager.asmx" />
    

    直接在浏览器中访问该地址,确认能正常加载ASMX服务页面。若无法访问,检查SessionManagerService对应的IIS网站是否启动、应用程序池是否正常运行。

  • 检查IIS站点与应用程序池配置:
    确认新建网站未与FileHold相关站点占用相同端口,且WebClient应用程序池的.NET版本、身份权限与部署要求一致。确保应用程序池处于运行状态,其身份具备访问WebClient目录及FileHold数据库的权限。

  • 修复目录映射与权限:
    核对WebClient网站的虚拟目录物理路径是否正确指向部署文件夹,给该目录添加IIS_IUSRS组及应用程序池身份的读取权限,避免因权限不足导致web.config无法读取。

  • 重启服务并清除缓存:
    执行iisreset命令重启IIS服务,清除站点缓存;同时清除浏览器缓存后重新访问WebClient登录页。

内容的提问来源于stack exchange,提问作者pytData

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.20 14:09:26