The type or namespace name 'UmbracoViewPage<>' could not be found (are you missing a using directive or an assembly reference?)
@Umbraco.Field("hikingDestinationPoints")
The type or namespace name 'Field' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
@foreach (var visit in Model.Visits)
{
....
}
The name 'Model' does not exist in the current context
And from a surface controller:
else if (umbraco.helper.GetCurrentUmbracoUser().UserType.Alias == "admin")
{
....
}
Error CS1061 'User' does not contain a definition for 'UserType' and no extension method 'UserType' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
I still get the "The type or namespace name 'AssignedContentItem' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)" message.
Fortunately, I took backup, so now I've upgraded my solution again. First from 7.6.5 to 7.6.8, then from 7.6.8. to 7.7.1, and now Umbraco works as it should again. :-)
All I have to figure out is the changes Umbraco has done with User, so it's the one that needs to be renewed:
if (umbraco.helper.GetCurrentUmbracoUser().UserType.Alias == "admin")
'User' does not contain a definition for 'UserType' and no extension method 'UserType' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
Multiple errors after upgrading from Umbraco 7.6.5 to 7.7.1
This is from a partial view:
The type or namespace name 'UmbracoViewPage<>' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'Field' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
The name 'Model' does not exist in the current context
And from a surface controller:
Error CS1061 'User' does not contain a definition for 'UserType' and no extension method 'UserType' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
Warning CS0618 'PublishedContentExtensions.Where(IEnumerable
Someone who knows some of these error messages?
Hi Tom
Replace this line:
with this one:
Also, do not use "Descendants"!
Thanks,
Alex
Thank you, it worked according to IntelliSense. One error less. :-)
=>
I still get the "The type or namespace name 'AssignedContentItem' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)" message.
In the top of the partial view, I have used:
Do you have a suggestion of what will work now as we have come to version 7.7.1?
I'm using Umbraco 7.7.1 and it works for me.
Can you show all the code of your view?
Thanks,
Alex
Tom, have a look at /views/web.config
There should be section:
This is the partial view:
I have the
<system.web.webPages.razor>
section at /views/web.config, but my bin folder is empty. Is it here something has gone wrong while upgrading?definitely, bin folder can't be empty
I see now I have many more errors after upgrading, so something has gone wrong.
Please, try to find out why bin folder is empty.
Fortunately, I took backup, so now I've upgraded my solution again. First from 7.6.5 to 7.6.8, then from 7.6.8. to 7.7.1, and now Umbraco works as it should again. :-)
All I have to figure out is the changes Umbraco has done with User, so it's the one that needs to be renewed:
'User' does not contain a definition for 'UserType' and no extension method 'UserType' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
Tom, I'm not sure that this is 100% perfect code, but it works for me:
Thank you very much, appreciate your helpfulness. It was the last piece for this thread, and the upgrade is now complete.
You are welcome, Tom, have a great evening!
Alex
is working on a reply...