Questions tagged [routetable]
63 questions
12
votes
1 answer
RouteTable.Routes RouteCollection?
The example I see everywhere for MVC-style routing is something like this:
void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add(new…

core
- 32,451
- 45
- 138
- 193
8
votes
1 answer
how to configure a VPC endpoint to access DynamoDB with Terraform?
I have a Lambda function running in an AWS VPC. This Lambda needs to access both RDS and DynamoDB, so it needs a VPC endpoint configured to reach DynamoDB. I have managed to make it work using a manual configuration, as described on Amazon's blog…

gru
- 4,573
- 1
- 22
- 22
6
votes
3 answers
AWS VPC: How does route table redirect local traffic to the right subnet and instance?
Here is an AWS typical VPC, which is composed of the following components
two subnets
Internet Gateway
Route table
Instances
Imagine a scenario
step1, instance (private IP 172.31.0.5) in subnet1 send a packet to IP 172.31.16.5 (in…

Ryan Lyu
- 4,180
- 5
- 35
- 51
6
votes
1 answer
Specifying a WCF binding when using ServiceRoute
I am currently registering a WCF service using the following code:
var factory = new DefaultServiceHostFactory();
RouteTable.Routes.Add(new ServiceRoute("XXXEndPoint", factory, IXXXEndPoint)));
This is all well and good however I also need to…

John
- 605
- 2
- 7
- 17
5
votes
3 answers
How can I dynamically add to the ASP.NET MVC RouteTable?
We've got an area on our site where people can sign up and be given their own page on the site which we want to host at ~/pageSlug. I've tried doing it with a rule in Global.asax, but that broke the fundamental default route that allows ~/Controller…

jonsidnell
- 1,210
- 1
- 10
- 20
5
votes
1 answer
Understanding AWS route-tables - cannot create a more specific route
I wish to make my VPCs subnets accessible from the Internet.
More specifically: traffic from the Internet Gateway (igw-f43c4690) to my subnets must be allowed.
For that I created a Route Table and associated it with my subnets.
Question:
I…

Skip
- 6,240
- 11
- 67
- 117
4
votes
1 answer
Azure Network Security Group Vs Route Tables
Networking newbie here. From the Documentation it feels like both NSG and Routing tables(UDR) are doing the same thing - capable of defining ACLs at multiple levels (Vnet, Subnet,…

Gadam
- 2,674
- 8
- 37
- 56
4
votes
2 answers
Terraform template for AWS route table
I have created a route table with routing rules that refers to an existing internet gateway (IGW) and the route table is associated to the a new VPC created via TF template. However same IGW is already attached to another VPC. When I apply template…

Jason Nanay
- 115
- 1
- 12
4
votes
2 answers
how to reload RouteTable when web page collection has changed?
In my Global.asax file on Application_Start I create a certain number of routes in RouteTable.Routes by looping through a list of web pages collected from a database. This works fine, all routes are created and function as required. But in my web…

Bazzz
- 26,427
- 12
- 52
- 69
4
votes
3 answers
retrieve route values from RouteTable
i want retrieve route values from RouteTable, but it's null. can anybody help?
public static class GetRouteValues
{
public static string GetSomeValue()
{
RouteCollection routes = RouteTable.Routes;
var value =…

Sadegh
- 4,181
- 9
- 45
- 78
3
votes
0 answers
AWS CDK Cross-Account VPC Peering with Route Tables
I'm trying to set up a multi-account environment with VPC peering using AWS CDK (type script), but I'm facing some issues when trying to set up related routing tables.
I'm working on Account A which is the ops environment, that is trusted by…

qwertasek
- 33
- 3
3
votes
1 answer
RedirectToAction redirects wrong with Other namespaces asp.net mvc
I wrote my routes like this.
routes.MapRoute(
name: "AdminECommerce",
url: "Admin/ECommerce/{controller}/{action}/{id}",
defaults: new { id = UrlParameter.Optional },
namespaces: new []{ "AdminEcommerce.Controllers"…

Ali Vahidinasab
- 109
- 13
3
votes
2 answers
How to use GetIpInterfaceEntry on win7+vs2013
I'm trying to add some rule to the route table with CreateIpForwardEntry, it's necessary to call the GetIpInterfaceEntry first on win7(see this). Here's part of my code:
#pragma warning(disable: 4996)
#define WIN32_LEAN_AND_MEAN
#define…

aj3423
- 2,003
- 3
- 32
- 70
2
votes
1 answer
How to access private VM IIS from internet in AZURE?
Please below image: subnetimage
I have below things:
3 VM inside 3 subnet all are in Vnet1.
VM1 has enable IIS and it's private access through subnet B.
Is there any ways to allow traffic from VM2 to VM1? I have tried multiple time but didn't…

cloudbuddy
- 21
- 3
2
votes
1 answer
Understanding route tables
I'm new to AWS and I'm trying to understand route tables.
So I have two route tables, one being the public route table and one being the private route table.
Below is the routing for the public route table.
It has the default route, where traffic…

diggledoot
- 691
- 8
- 22