Replies: 3 comments 10 replies
-
The Name Space here is Template.Model and in your _ViewImports you have PiranhaTest.Models Either change the names space in the view imports to match the class or change the standardpage class name space to PiranhaTest.Models That should at least clear up some of your errors |
Beta Was this translation helpful? Give feedback.
-
I feel really bad now because on the other page I had written, I had the namespace right. |
Beta Was this translation helpful? Give feedback.
-
OK, this is beginning to make some sense. I'm used to tables that contain just data and had not appreciated that namespaces could be involved. I'll make some data, seed it and see how I get on. |
Beta Was this translation helpful? Give feedback.
-
I installed the Razor template and it runs fine (to the best of my limited knowledge). I have created my own project from scratch to mirror the template and so get a better understanding. Both are in the one solution so I switch the 'Set as Startup Project'. I closed VS, deleted the bin and obj folders and now always get the errors shown in the Errors.jpg. This is new. I used to get Error 404 or the browser returned nothing. Even _ViewImports has an error now yet my code and packages are identical (apart from Namespaces) to the template. Can anyone help please?
Beta Was this translation helpful? Give feedback.
All reactions