【发布时间】:2012-12-04 15:44:34
【问题描述】:
我们目前有运行 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 或实时位置,而不是显示构建代理位置。有什么想法吗?
【问题讨论】:
标签: asp.net-mvc-3 msbuild teamcity