Comment

Comment by thorin

Enjoying the book, I'm new to to asp and razor although I have done a little .net wep api before.

I have an issue with the first view, when running I get the error below on all references in the cshtml. I'm using a stock install of VS 2017. Any ideas?

/Views/Todo/Index.cshtml(4,5): error CS0103: The name 'ViewData' does not exist in the current context /Views/Todo/Index.cshtml(8,33): error CS0103: The name 'ViewData' does not exist in the current context /Views/Todo/Index.cshtml(8,27): error CS0103: The name 'Write' does not exist in the current context /Views/Todo/Index.cshtml(19,31): error CS0103: The name 'Model' does not exist in the current context /Views/Todo/Index.cshtml(23,1): error CS0103: The name 'WriteAttributeValue' does not exist in the current context /Views/Todo/Index.cshtml(25,16): error CS0103: The name 'Write' does not exist in the current context /Views/Todo/Index.cshtml(26,16): error CS0103: The name 'Write' does not exist in the current context

parent thorin 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton