@if (Roles.IsUserInRole("Admin") || Roles.IsUserInRole("Standard"))}An exception of type 'System.Web.HttpException' occurred in System.Web.dll but was not handled in user我读过许多不适合我的解决方案:
删除RoleManager中的
Server.GetLastError()返回的第一个异常是System.Web.HttpException,而接下来的三个异常是null。 // returning content rather than a View doesn't fire 'System.Web.HttpException一个是,对于给定的</em
我在Windows764位开发框中使用Visual Studio2010 SP1。我的asp.net在机器上使用IIS时工作得很好,但是当我切换到使用Visual Studio Development Server时,我得到了一个异常"System.Web.HttpException: Unable to validate“(在global.asax.cs中的Application_AuthenticateRequest事件中):
Forms