Name:
CurrentPage
Value:
'this.CurrentPage' threw an exception of type 'System.InvalidOperationException'
Type:
Umbraco.Core.Models.IPublishedContent {System.InvalidOperationException}
The code shows the form well in the front end, but not in the backoffice (in the new Umbraco installation). I refer partial view UpdateHiker.cshtml via partial view macro file with the same name: UpdateHiker.cshtml (as I've done with all other partial views in my previous Umbraco installation), and so is the content:
I'm experiencing repetitive issues with the entire site, and too often the message "Unable to create the virtual directory." The Web server could not be found." (but the site seems apparently ok when I get the error message this main issue described above applies).
When I try to set it up using IIS Express instead, I've got this error message "The view found at '~ / Views / Home.cshtml' was not created." (yellow screen of death).
Could this be associated with the rendering problem?
Membership - different versions? 'this.CurrentPage' threw an exception of type 'System.InvalidOperationException'?
Surfacecontroller:
This give me no errors before in backoffice, but give me error now with a new installation of Umbraco 7.6.4.
Can this be written in another way that works with new Umbraco installations?
Debugging:
Hi Tom
Can you show all Razor code of the view?
Thanks,
Alex
Hi Alex, this is the partial view:
The code shows the form well in the front end, but not in the backoffice (in the new Umbraco installation). I refer partial view UpdateHiker.cshtml via partial view macro file with the same name: UpdateHiker.cshtml (as I've done with all other partial views in my previous Umbraco installation), and so is the content:
But now the macro in backoffice shows this message, and not the form as in my previous Umbraco installation:
I'm experiencing repetitive issues with the entire site, and too often the message "Unable to create the virtual directory." The Web server could not be found." (but the site seems apparently ok when I get the error message this main issue described above applies).
When I try to set it up using IIS Express instead, I've got this error message "The view found at '~ / Views / Home.cshtml' was not created." (yellow screen of death).
Could this be associated with the rendering problem?
The same problem I've got in this view too - can't view this line in backoffice, in the new Umbraco installation, only the previous.
The question briefly summarized: Can this line be rewritten in a newer way?
is working on a reply...