Click here to Skip to main content
15,888,162 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Quote:
using System.Web.Mvc; greyed out
is greyed out therefore affecting my project. I don't know why it is greyed out because i am clearly using it my project. when i run the same project on another machine
Quote:
using System.Web.Mvc; greyed out
is not greyed and project works fine. what could i possibly be missing on my computer??

please see screenshot here, it shows how i am using standard mvc.net but is in red as it is not being recognised .. please help

http://snag.gy/83lcr.jpg[^]
Posted

1 solution

You're using a plug-in called ReSharper and the reason the "using" is greyed out is because it isn't currently being used in that class file so can be deleted.

The things that are red have an underline menu when you hover over them, and showing the menu will give you the option to add the correct "using" at the top and\or assembly reference.

Namespaces, classes etc are all basic .net 101 so it might be worth going through a book on c# to get an understanding of the basics before you try more advanced coding.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900