相关疑难解决方法(0)

在HTTPS上设置站点后,不允许子操作执行重定向操作

我收到以下错误:

Child actions are not allowed to perform redirect actions.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Child actions are not allowed to perform redirect actions.

Source Error:

    Line 1:  <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<RenderActionViewModel>" %>
    Line 2:  <%Html.RenderAction(Model.ActionName, Model.ControllerName, Model.RouteValues); %>
    Line 3: 



The Stack trace is:

    [InvalidOperationException: Child actions are not allowed …
Run Code Online (Sandbox Code Playgroud)

c# asp.net security asp.net-mvc

21
推荐指数
1
解决办法
4万
查看次数

标签 统计

asp.net ×1

asp.net-mvc ×1

c# ×1

security ×1