我们目前有我们的开发服务器运行 Teamcity 7.1,并且一直在构建/发布没有问题。不过最近,我们注意到,每当在应用程序日志中生成错误时,不是从实时 .pdb (C:\inetpub\wwwroot[SiteName]\bin) 中获取错误,而是从构建代理工作位置获取错误( c:\BuildAgent\work\92648d34566a49aa[站点名称])。
Exception information:
Exception type: NotImplementedException
Exception message: Pew ^ Pew
at MyProject.Controllers.ErrorController.ThrowError() in c:\BuildAgent\work\92648d34566a49aa\MyProject\Controllers\ErrorController.cs:line 38
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
我检查了我们的构建步骤和参数(使用 MSBUILD),目前唯一指向构建代理的是 XUnit,但即使禁用了 XUnit 构建步骤,这个问题仍然存在。
我的想法是,它应该显示站点 URL 或实时位置,而不是显示构建代理位置。有什么想法吗?