Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Azure应用程序服务支持事件记录器未显示真实错误、真实错误,而是显示有关错误页的某些错误_C#_Asp.net_Azure_Logging - Fatal编程技术网

C# Azure应用程序服务支持事件记录器未显示真实错误、真实错误,而是显示有关错误页的某些错误

C# Azure应用程序服务支持事件记录器未显示真实错误、真实错误,而是显示有关错误页的某些错误,c#,asp.net,azure,logging,C#,Asp.net,Azure,Logging,我在ASP.NET MVC应用程序的主目录下为我的web应用程序的博客添加了一个新视图,在该目录中,视图通过HomeController.cs呈现。我确实更新了我的HomeController.cs,以便能够加载新视图: [AllowAnonymous] public ActionResult Blog() { return View(); } [AllowAnonymous] public ActionResult PublicBetaLaunch() { return View(); }

我在ASP.NET MVC应用程序的主目录下为我的web应用程序的博客添加了一个新视图,在该目录中,视图通过HomeController.cs呈现。我确实更新了我的HomeController.cs,以便能够加载新视图:

[AllowAnonymous]
public ActionResult Blog()
{
 return View();
}

[AllowAnonymous]
public ActionResult PublicBetaLaunch()
{
return View();
}

[AllowAnonymous]
public ActionResult About()
{
 return View();
我可以在本地环境中加载博客视图,但当我尝试在生产环境中加载时,它没有显示导致博客无法加载的错误。而是将以下内容记录在应用程序服务支持事件记录器中。有人知道什么是错误的吗?为什么它会显示与错误页面相关的错误,而不是显示真正的错误?真正的错误似乎被它吞没了,所以我们无法调试并知道真正的问题是什么。最初它重定向到我们创建的自定义错误页面,我们通过webconfig关闭了它,这样它就不再指向自定义错误页面,但事件记录器仍然没有显示真正的问题

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/1/2016 1:40:51 AM
Event time (UTC): 3/1/2016 1:40:51 AM
Event ID: 1037464643fc40148d0a4c9170a46dc5
Event sequence: 41
Event occurrence: 7
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/305978964/ROOT-2-131012691793709252
Trust level: Full
Application Virtual Path: /
Application Path: D:\home\site\wwwroot\
Machine name: RD00155DC27294

Process information:
Process ID: 5520
Process name: w3wp.exe
Account name: IIS APPPOOL\TradeSumoQA

Exception information:
Exception type: InvalidOperationException
Exception message: The view 'Error' or its master was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/Home/Error.aspx ~/Views/Home/Error.ascx ~/Views/Shared/Error.aspx ~/Views/Shared/Error.ascx ~/Views/Home/Error.cshtml ~/Views/Home/Error.vbhtml ~/Views/Shared/Error.cshtml ~/Views/Shared/Error.vbhtml at System.Web.Mvc.ViewResult.FindView(ControllerContext context) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Controller.b__15(IAsyncResult asyncResult, Controller controller) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Request information:
Request URL: http://qa.tradesumo.com/Home/Blog
Request path: /Home/Blog
User host address: 49.181.212.18
User: 
Is authenticated: False
Authentication Type: 
Thread account name: IIS APPPOOL\TradeSumoQA

Thread information:
Thread ID: 19
Thread account name: IIS APPPOOL\TradeSumoQA
Is impersonating: False
Stack trace: at System.Web.Mvc.ViewResult.FindView(ControllerContext context) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Controller.b__15(IAsyncResult asyncResult, Controller controller) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Custom event details:
事件代码:3005
事件消息:发生未处理的异常。
活动时间:2016年3月1日凌晨1:40:51
事件时间(UTC):2016年1月3日凌晨1:40:51
事件ID:1037464643fc40148d0a4c9170a46dc5
事件顺序:41
事件发生率:7
事件详细信息代码:0
申请资料:
应用程序域:/LM/W3SVC/305978964/ROOT-2-131012691793709252
信任级别:完全信任
应用程序虚拟路径:/
应用程序路径:D:\home\site\wwwroot\
机器名称:RD00155DC27294
过程信息:
进程ID:5520
进程名称:w3wp.exe
帐户名称:IIS APPPOOL\TradeSumoQA
例外信息:
异常类型:InvalidOperationException
异常消息:未找到视图“错误”或其主视图,或者没有视图引擎支持搜索的位置。搜索了以下位置:~/Views/Home/Error.aspx~/Views/Home/Error.ascx~/Views/Shared/Error.aspx~/Views/Shared/Error.ascx~/Views/Home/Error.vbhtml~/Views/Shared/Error.cshtml~/Views/Shared/Error.vbhtml位于System.Web.Mvc.ViewResult.FindView(ControllerContext上下文)在System.Web.Mvc.ViewResultBase.ExecuteSult(ControllerContext上下文)在System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext ControllerContext,ActionResult ActionResult)在System.Web.Mvc.Async.AsyncControllerActionInvoker.c_u显示类21.b_1e(IAsyncResult asyncResult)位于System.Web.Mvc.Async.AsyncResultRapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)位于System.Web.Mvc.Async.AsyncResultRapper.WrappedAsyncResultBase`1.End()位于System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult asyncResult)位于System.Web.Mvc.Controller.b\u1d(IAsyncResult asyncResult,ExecuteCorerate innerState)在System.Web.Mvc.Async.AsyncResultRapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)在System.Web.Mvc.Async.asyncResult.WrappedAsyncResultBase`1.End()在System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult asyncResult asyncResult)在System.Web.Controller.b\u 15(IAsyncResult asyncResult,Controller Controller)位于System.Web.Mvc.Async.AsyncResultRapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)位于System.Web.Mvc.Async.AsyncResultRapper.WrappedAsyncResultBase`1.End(),位于System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult asyncResult)System.Web.Mvc.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)System.Web.Mvc.MvcHandler.b_u5(IAsyncResult asyncResult,ProcessRequestState innerState)System.Web.Mvc.Async.AsyncResultRapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult asyncResult)在System.Web.Mvc.Mvc.Async.AsyncResultRapper.WrappedAsyncResultBase`1.End()在System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)在System.Web.Mvc.MvcHandler.System.Web.IHTTPassynchandler.EndProcessRequest(IAsyncResult result result result)在System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpExecutionStep执行()位于System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值&同步完成)
请求信息:
请求URL:http://qa.tradesumo.com/Home/Blog
请求路径:/Home/Blog
用户主机地址:49.181.212.18
用户:
已验证:False
身份验证类型:
线程帐户名称:IIS APPPOOL\TradeSumoQA
线程信息:
线程ID:19
线程帐户名称:IIS APPPOOL\TradeSumoQA
是模仿:假
堆栈跟踪:System.Web.Mvc.ViewResult.FindView(ControllerContext上下文)System.Web.Mvc.ViewResultBase.ExecuterResult(ControllerContext上下文)System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext ControllerContext,ActionResult ActionResult)在System.Web.Mvc.Async.AsyncControllerActionInvoker.c_uu在System.Web.Mvc.Async.asyncResult.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)在System.Web.Mvc.Async.Async.AsyncResultRapper.WrappedAsyncResultBase`1.End()System.Web.Mvc.Controller.b_u1d(IAsyncResult asyncResult,ExecuteCorerate innerState)System.Web.Mvc.Async.asyncResult.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)System.Web.Mvc.asyncResult.Controller.b_1d(IAsyncResult asyncResult asyncResult,ExecuteCorerate innerState)SystemSystem.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)System.Web.Mvc.Controller.b_15(IAsyncResult asyncResult,Controller Controller)System.Web.Mvc.Async.Async.AsyncResultRapper.WrappedAsyncResult'1.CallEndDelegate(IAsyncResult asyncResult asyncResult)位于System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)的System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)位于System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult asyncResult)位于System.Web.Mvc.MvcHandler.b_u5(IAsyncResult asyncResult asyncResult,ProcessRequestState innerState)位于System.Web.Mvc.Async.AsyncResultRapper.WrappedAsyncVoid`1.CallEnd