Tuesday, September 25, 2018
If you have been following along with the ASP.NET MVC tutorials you would have noticed that the URLs have a port next to them. In this post we are going to get rid of that annoying port have a just the URL as localhost/{mycustomroute}
Launch Visual Studio as an Administrator. To remove the port, perform the following. Right-click on the ASP.NET MVC project in the solution, and select "Properties"
Click "Web" on the left navigation
Select "Specific Page" radio button. This is to prevent ASP.NET MVC to guess what your route is and just follow the route that you defined.
In the "Server" section remove the port in the "Project Url" field
Click on the "Create Virtual Directory" next to the Project Url textbox
Now check "Override application URL" checkbox and remove the port in the URL right under it
Type Ctrl+S to save the settings, now when you run the application you will see that the port is gone
Similar Posts:
Launch Visual Studio as an Administrator. To remove the port, perform the following. Right-click on the ASP.NET MVC project in the solution, and select "Properties"
Click "Web" on the left navigation
Select "Specific Page" radio button. This is to prevent ASP.NET MVC to guess what your route is and just follow the route that you defined.
In the "Server" section remove the port in the "Project Url" field
Click on the "Create Virtual Directory" next to the Project Url textbox
Now check "Override application URL" checkbox and remove the port in the URL right under it
Type Ctrl+S to save the settings, now when you run the application you will see that the port is gone
Similar Posts:
- ASP.NET MVC: Add Area For Administrators
- ASP.NET MVC: Change Admin URL to More User Friendly URL With Routing
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Aivivu đại lý vé máy bay, tham khảo
ReplyDeleteVé máy bay đi Mỹ
mua vé máy bay từ mỹ về việt nam
các chuyến bay sang nhật có bị cấm không
bay từ đức về việt nam mấy tiếng
giá vé máy bay từ Toronto đến việt nam
Giá vé máy bay Hàn Việt Vietjet
chuyen bay chuyen gia ve viet nam
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ Vietnam Airline
ve may bay tu my ve vietnam
vé máy bay từ frankfurt đi hà nội
đặt vé về việt nam từ nhật
vé máy bay hàn quốc hà nội
vé máy bay từ Toronto về việt nam
vé máy bay chuyên gia nước ngoài sang Việt Nam