After installing AspNet5.ENU.RC1 any previous or new MVC project throws a
The operation could not be completed. Invalid pointer
error when opening razor pages (.cshtml
). Other files such as class libraries and config files open as expected. Any suggestions before I reinstall VS?
Right click the Index. cshtml file and select View in Browser. You can also right click the Index. cshtml file and select View in Page Inspector.
cshtml file, you will still need to use @using . The @namespace directive was designed so the C# classes added to a project and pages-generated code just work without having to add an @using directive for the code behind file.
As @chsword commented above:
Open the folder: Users\(user)\AppData\Local\Microsoft\VisualStudio (version)
Delete the folder: ComponentModelCache
Restart Visual Studio (ComponentModelCache is re-created and the problem goes away)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With