2

I'm reading Pro Asp.net 4.5 using C# by Adam Freeman I'm stuck where he is adding routes to RouteConfig.cs class in App_Start folder.

When I change

project properties -> Web Tab ->
 Specific Page (Inside Start Action section) -> Specify "list"

and try to test it, it shows directory not found error.

Any of following combinations :

list/2
list/3...

doesn't work

IISExpress/appconfiguration code :

<!-- language: xml -->

    <site name="SportsStoreApplications" id="23"> 
        <application path="/" applicationPool="Clr4IntegratedAppPool"> 
            <virtualDirectory 
                path="/" 
                physicalPath="c:\users\krushank\documents\visual studio 2012\Projects\SportsStoreApplications\SportsStoreApplications" /> 
        </application> 
        <bindings> 
            <binding protocol="http" bindingInformation="*:3079:localhost" /> 
        </bindings> 
    </site>

In short I am trying to route to a specific url "list"

RouteConfig.cs class with routes defined

Link to download the zip : https://www.dropbox.com/s/xsuzd1hua3pdvsq/SportsStoreApplications.zip?dl=0

33
  • 1
    Hi, Welcome to Stack Overflow. It would be better to include code and any exceptions directly in your question. Also (and don't take this as being mean), I'm not going to look up a book and find the chapter you are stuck on. Try to include a full working minimal example of the code you are working with, if possible. See: stackoverflow.com/help/how-to-ask for a lot of good information on asking questions here.
    – gmiley
    May 12, 2016 at 23:47
  • you seem to be studying asp.net MVC, not ASP .net. Mentioning simply ASP.net generally gives an impression of ASP.Net web form. Please correct me if I'm wrong.
    – RBT
    May 13, 2016 at 0:15
  • In project properties -> Web -> Specific -> list/(manually doing 2...3) what is this specific thing. I don't see any section named specific on web tab in project properties.
    – RBT
    May 13, 2016 at 0:28
  • @RBT Specify is after current page tab in Web May 13, 2016 at 0:47
  • @gmiley Please click image link that includes the code. It is Asp.net not Mvc May 13, 2016 at 0:57

1 Answer 1

0

I started making it again from scratch and i succeded. It was a real horror since yesterday.... feels awesome now! Thanks for all your help

I recycled IIS Expresss...whole application ...nothing worked else than making it from scratch...

thanks @RBT and @gmiley for all your help

2
  • Glad that you are out of your problem. atleast you learned how useful this website is and basic guidelines of writing Q & A. Keep helping people and keep getting help from people. Technological fraternity wins at the end of the day!
    – RBT
    May 13, 2016 at 23:13
  • Glad you got it working. I ended up going through your copy of the solution and one I made from scratch. For some reason I could not get your global.asax to load anything. which was very strange. Mine worked perfectly. I am betting you just got a corrupt solution or project file somewhere along the way. That seems like a pretty crappy explanation, but honestly, I have no answer. =)
    – gmiley
    May 13, 2016 at 23:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.