Error: The virtual path '/Views/Turnkey/DynamicPartial_Index.cshtml'

CapableObjects Forums SupportForum Error: The virtual path '/Views/Turnkey/DynamicPartial_Index.cshtml'

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  guest00 2 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4945 Score: 0

    guest00
    Participant

    Hi,
    I used this topic to get answers for two different errors – one for Azure and one for the local turnkey. This topic is related to the local IIS turnkey unstallation.
    I used win10 home and I got this error – The virtual path ‘/Views/Turnkey/DynamicPartial_Index.cshtml’ maps to another application, which is not allowed
    Then I created standalone windows 2008 web server virtual machine and I got the same error.
    ———————————
    The virtual path ‘/Views/Turnkey/DynamicPartial_Index.cshtml’ maps to another application, which is not allowed.
    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.ArgumentException: The virtual path ‘/Views/Turnkey/DynamicPartial_Index.cshtml’ maps to another application, which is not allowed.

    Source Error:
    Line 31: @* Here is the MVC ViewModel body inserted *@
    Line 32:
    Line 33: @Html.Partial(Html.RenderRazorView())
    Line 34:
    Line 35: <!– End of inserted MVC ViewModel body inserted –>
    ——————————
    If I add /MDriven/AngularApp to the url iis navigates to the correct turnkey app.
    google show me this this and this. The source of this problem is that when one copies an ASP.NET Web Site to a new folder — the properties setting associated with the solution “Virtual Path” is set to the folder name and not the root. The solution is to change the Virtual Path setting from the folder name to “/”.
    Bug?

    #4946 Score: 0

    Admin
    Keymaster

    First: We changed turnkey url in new release; url/MDriven/something is now url/Turnkey/something

    This was meant to be handled by a new routing – but it seems that we have missed something. Unsure what as of now.

    Try the following:
    https:///Turnkey – should give the viewmodel named index as MVC
    https://
    /Turnkey/AngularApp#/VMName/$null$ -should give VMName with null root in angular

    Setting tagged value MVC=True on viewmodel make the MVC motor render your page:
    https:///Turnkey/Display/%24null%24?view=VMName

    Let me know outcome.

    #4947 Score: 0

    guest00
    Participant

    https:///Turnkey – should give the vm index, but it shows me the error: The virtual path ‘/Views/Turnkey/DynamicPartial_Index.cshtml‘ maps to another application, which is not allowed
    https:///Turnkey/Angular#/VMName/$null$ – works fine – it shows me the VM

    Thank you for the trick with the tagged value MVC=True.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.