5
votes
5answers
925 views

What is wrong with my area routing in my bin deployed MVC4 app?

I have just deployed an MVC4 .NET 4.0 app to my web host, for 'live' deployed testing. Non -area routes are working fine, e.g. my @Html.ActionLink("Register as a Client", "Register", "Account", new ...
3
votes
2answers
193 views

Get a complete url like http://google.com as action input

I want to get url in my action to return the page's PageRank. I have a route like this: routes.MapRoute( name: "PRURL", url: "Utility/PR/{*url}", defaults: new { controller = "Utility", ...
6
votes
1answer
3k views

Routing in Asp.net Mvc 4 and Web Api

Can I use the following two route rule together ? config.Routes.MapHttpRoute( name: "ActionApi", routeTemplate: "api/{controller}/{action}/{id}", defaults: new { id = ...
5
votes
3answers
468 views

Restful MVC Web Api Inheritance

Im building myself an asp.net mvc 4 web api I've been through the Microsoft videos and I think they are good. Http Verbs are used. Resources are nouns, it's dandy with repositories, etc. But one ...
3
votes
2answers
2k views

Routing in Web Api in ASP.NET MVC 4

I am using web api with ASP.NET MVC 4. I have the following named controller CustomerController : Controller CustomerApiController : ApiController Earlier my CustomerApiController was named ...
3
votes
2answers
844 views

Enforce Hyphens in .NET MVC 4.0 URL Structure

I'm looking specifically for a way to automatically hyphenate CamelCase actions and views. That is, I'm hoping I don't have to actually rename my views or add decorators to every ActionResult in the ...
2
votes
1answer
2k views

How to bypass the exception multiple actions were found in ASP.NET Web API

When trying to find solution for this below question: MVC Web Api Route with default action not working Mostly I run across the problem "multiple actions were found". If routing mechanism finds out ...
0
votes
2answers
2k views

Routes for MVC 4 Web APIs?

In my initial stab at creating a MVC4 Web API. I've noticed a few things about the way routes are handled that seems a little off: Controllers no longer ever have more than 4 actions? A resource ...
2
votes
2answers
238 views

MVC4: url routing with email as parameter

I have this url which works absolutely fine on my VS web server http://localhost:4454/cms/account/edituser/[email protected] (works) but when I publish this site to IIS7.5 , it simply throws 404. ...
1
vote
2answers
814 views

url with extension not getting handled by routing

I've been folowing the advice from this article for setting up a robots.txt file in asp.net mvc3 for using a controller to handle the server response, and IIS 8.0 express is returning a file not found ...
1
vote
1answer
469 views

ASP.net MVC 4, How to keep routing to default document after project publishing

I created a new MVC 4 project from the internet application template in VS 2012 express, for details click here When I wanted to publish it, I got: HTTP 403.14 - Forbidden I searched for a solution, ...
1
vote
2answers
130 views

Input Url like http://site.com changes to http:/site.com in action input

I asked a question to get url as action input here. Now I have a new problem. The passed url to action changes from http://google.com to http:/google.com. I want to know why and how can I resolve ...
0
votes
1answer
349 views

User routing in ASP.NET MVC for urls like www.website.com/users/jeffAtwood

I am trying to show user details at the following url : www.website.com/users/yasser where the last entry yasser is the username I have tried a couple of routes but it just does nt work. My User ...
0
votes
1answer
638 views

MVC 4 DomainRoute to Area uses wrong instance from RouteTable

I have an ASP.NET MVC 4 app where I have two areas: Backstage Signup I have a class called DomainRoute that makes it possible to route an entire subdomain to an area: using System; using ...
0
votes
2answers
179 views

Why is unmodified template code in my MVC4 app trying to register areas twice?

I have a new MVC4 app that I create off the MVC4 internet project template in VS11 beta. Now when I deploy the app to my web site hosting provider, and I leave the following line active in my ...