Solved

ControllerAction attribute

Posted on 2010-11-14
3
1,493 Views
Last Modified: 2012-08-13
Hi


I am reading an article regarding the ASP.NET MVC from SCOTTGU blog. In the article there is a code in which [ControllerAction] attribute is defined over the method. But when I do that I can getting compile time error - "The type or namespace name 'ControllerActionAttribute' could not be found (are you missing a using directive or an assembly reference?)"

But I have already included the following namespaces

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

Is there any thing I am missing?


Regards
Karan Gupta
0
Comment
Question by:KaranGupta
3 Comments
 
LVL 10

Accepted Solution

by:
hosneylk earned 300 total points
ID: 34133971
0
 
LVL 8

Assisted Solution

by:static-void
static-void earned 200 total points
ID: 34133982
0
 

Author Closing Comment

by:KaranGupta
ID: 34142469
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question