Tagged: local Turnkey
April 12, 2017 at 7:54 pm #4945
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.
Line 31: @* Here is the MVC ViewModel body inserted *@
Line 33: @Html.Partial(Html.RenderRazorView())
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?April 13, 2017 at 8:36 am #4946
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:
/Turnkey – should give the viewmodel named index as MVC
/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:
Let me know outcome.April 13, 2017 at 7:00 pm #4947
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.
You must be logged in to reply to this topic.