Click here to Skip to main content
15,915,703 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question[Solved] ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209427-Mar-17 4:29
Member 1299209427-Mar-17 4:29 
AnswerRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
ZurdoDev27-Mar-17 5:50
professionalZurdoDev27-Mar-17 5:50 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209427-Mar-17 6:27
Member 1299209427-Mar-17 6:27 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
ZurdoDev27-Mar-17 7:52
professionalZurdoDev27-Mar-17 7:52 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209427-Mar-17 7:55
Member 1299209427-Mar-17 7:55 
AnswerRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
ZurdoDev27-Mar-17 7:56
professionalZurdoDev27-Mar-17 7:56 
AnswerRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan28-Mar-17 1:06
professionalJohn C Rayan28-Mar-17 1:06 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 4:15
Member 1299209428-Mar-17 4:15 
Quote:
1. What are you trying to do ?

I have a code editor, I want to save it's contents when the user clicks save and then redirect to "Index". I started getting this error after implementing this, but now I get it whenever I try to redirect to "Index" action method.
Quote:
3. Post the actual error with your question.

Here's the details of the error:
Detailed Error Information:
Module	   StaticFileModule
Notification	   ExecuteRequestHandler
Handler	   StaticFile
Error Code	   0x80070032

Quote:
4. Are you using any browser to access it ? If so what browser are you using?

Yes, I'm using google chrome.
Quote:
5. If you are referring the script from other pages , show the page where you refer it from?
I redirect from a partial view after the user clicks send.
This is my controller:

StudentsCodes modelSC = new StudentsCodes();
        MicroG4 m4 = new MicroG4();

        public ActionResult Index()
        {
            modelSC.Student = (Student)CurrentUser;
            var user = UserManager.FindById(((Student)CurrentUser).InstructorID);
            modelSC.Instructor =(Instructor) user;
            modelSC.path = "~/Content/" + CurrentUser.UserName + "/CompilerProject/src";
             return View(modelSC);
        }

And this is the partial view:
@model application.Models.NewFolder1.StudentsCodes
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />

    <script src="/Scripts/codeMirror-2.37/lib/codemirror.js"></script>
    <script src="/Scripts/codeMirror-2.37/mode/clike/clike.js" type="text/javascript"></script>
    <link href="/Scripts/codeMirror-2.37/lib/codemirror.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/codeMirror-2.37/theme/lesser-dark.css" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/jquery-3.1.1.min.js"></script>
    <link href="∼/Content/bootstrap.min.css" rel="stylesheet" />
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.unobtrusive-ajax.js"></script>


</head>
<body>
    
        @using (Html.BeginForm("SaveClass","Development"))
        {
            <div class="CodeMirror cm-s-lesser-dark cm-error cm-bracket" style="position:absolute;border:solid;top:150px;left:450px;width:700px">
                <div class="navbar navbar-inverse" style="border:none">
                    <div class="container-fluid">
                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                            <ul class="nav navbar-nav">
                                <li role="presentation" class="dropdown">
                                    <a class="dropdown-toggle" data-toggle="dropdown">
                                        File 
                                    </a>
                                    <ul class="dropdown-menu">

                                        <li>@Html.ActionLink("New", "NewClass", "Development", null, new { @class = "modal-link" })</li>
                                        <li>@Html.ActionLink("Save","SaveClass","Development",null,new { id="save"})</li>
                                        <li>@Html.ActionLink("Delete", "DeleteFile")</li>


                                    </ul>
                                </li>
                                <li>@Html.ActionLink("Compile", "Compile", "Development")</li>
                                <li>@Html.ActionLink("Run", "Run", "Development")</li>
                            </ul>
                        </div>
                    </div>
                </div>
                    @Html.TextAreaFor(m=>m.code, new { id = "code" })
                @Html.HiddenFor(s => s.path)



            
            </div>

                    }
    

    <div id="modal-container" class="modal fade" tabindex="-1" role="dialog">
        <div class="modal-content"></div>
    </div>

    <style>
        .modal-content {
         width: 600px !important;
         margin: 30px auto !important;
     }
    </style>
    <script>
        $(function(){

            $("#save").click(function(e){
                e.preventDefault();
                $(this).closest("form").submit();
            });

        });

    </script>
    
   
    <script>

        var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
            lineNumbers: true,
            matchBrackets: true,
            mode: "text/x-java",
            theme: "cm-s-lesser-dark"
        });
    </script>

    <script type="text/javascript">
        $(function () {
            // Initialize numeric spinner input boxes
            //$(".numeric-spinner").spinedit();
            // Initialize modal dialog
            // attach modal-container bootstrap attributes to links with .modal-link class.
            // when a link is clicked with these attributes, bootstrap will display the href content in a modal dialog.
            $('body').on('click', '.modal-link', function (e) {
                e.preventDefault();
                $(this).attr('data-target', '#modal-container');
                $(this).attr('data-toggle', 'modal');
            });
            // Attach listener to .modal-close-btn's so that when the button is pressed the modal dialog disappears
            $('body').on('click', '.modal-close-btn', function () {
                $('#modal-container').modal('hide');
            });
            //clear modal cache, so that new content can be loaded
            $('#modal-container').on('hidden.bs.modal', function () {
                $(this).removeData('bs.modal');
            });
            $('#CancelModal').on('click', function () {
                return false;
            });
        });
    </script>

    
</body>

</html>

GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan28-Mar-17 9:27
professionalJohn C Rayan28-Mar-17 9:27 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 10:32
Member 1299209428-Mar-17 10:32 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan28-Mar-17 9:28
professionalJohn C Rayan28-Mar-17 9:28 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 10:34
Member 1299209428-Mar-17 10:34 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 10:37
Member 1299209428-Mar-17 10:37 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 8:41
Member 1299209428-Mar-17 8:41 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209429-Mar-17 10:15
Member 1299209429-Mar-17 10:15 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan30-Mar-17 2:23
professionalJohn C Rayan30-Mar-17 2:23 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209430-Mar-17 3:34
Member 1299209430-Mar-17 3:34 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan30-Mar-17 21:42
professionalJohn C Rayan30-Mar-17 21:42 
QuestionMVC Telerik control cannot upload image more than 4M Pin
Medo-I24-Mar-17 22:04
Medo-I24-Mar-17 22:04 
AnswerRe: MVC Telerik control cannot upload image more than 4M Pin
ZurdoDev27-Mar-17 1:58
professionalZurdoDev27-Mar-17 1:58 
QuestionThe imported project was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk Pin
indian14323-Mar-17 8:07
indian14323-Mar-17 8:07 
AnswerRe: The imported project was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk Pin
User 418025423-Mar-17 11:20
User 418025423-Mar-17 11:20 
GeneralRe: The imported project was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk Pin
indian14323-Mar-17 14:44
indian14323-Mar-17 14:44 
QuestionWEB API - POST handler hangs Pin
Member 1307682222-Mar-17 3:08
Member 1307682222-Mar-17 3:08 
AnswerRe: WEB API - POST handler hangs Pin
Richard Deeming22-Mar-17 4:25
mveRichard Deeming22-Mar-17 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.