Display data using MVC4 [Resolved]

Posted by Mandlaa under ASP.NET MVC on 10/17/2013 | Points: 10 | Views : 1289 | Status : [Member] | Replies : 1
This is my code for Display data

public ActionResult Details(string acno)
{
sample styles = db.samples.Single(x => x.AccNo == acno);
return View(styles);
}

In my table column(AccNo) values is=AccNo
This my Url
http://127.0.0.1:81/Hondaofconyers/Details/102.111.17888
Bu i am getting an error like this
what is the mistake my code??
plz help me

ERROR:

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.




Responses

Posted by: Bandi on: 10/18/2013 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Refer this link
http://stackoverflow.com/questions/5677099/routing-http-error-404-0-0x80070002
Add this to web.config file
<modules runAllManagedModulesForAllRequests="true">

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Mandlaa, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response