托管MVC应用程序时在URL中获取问题 [英] Getting Issue in the URL when hosting MVC Application
问题描述
我在服务器中托管后,在MVC应用程序中收到额外的'/'问题。
它在本地机器上工作正常,但它不能在我的主机上工作..
本地机器网址如下
localhost:619 / hrms / ------登录页面
主机网址中的
是如下
http://www.mydomain.com/hrms/ -----登录页面
登录后网址如下
localhost:619 / hrms / index / index ----我的索引paage
登录主机后如下
http://www.mydomain.com/index/index/ ----我的索引paage
请帮我解决这个问题...
本地我设置了这样的虚拟路径'/ hrms'
主机中的
我有一个设置为虚拟目录。
请让我解释为什么它在主持人中出现错误...
提前致谢
Hi,
I am getting issue extra '/' in MVC Application after hosting in the server.
It is working fine in Local machine but its not working in my host..
in local machine url is as follows
localhost:619/hrms/ ------ login page
in host url is as follows
http://www.mydomain.com/hrms/ -----login page
after login url is as follows
localhost:619/hrms/index/index ----my index paage
after login in host is as follows
http://www.mydomain.com/index/index/ ----my index paage
Please help me on this issue...
in local i have set virtual path like this '/hrms'
in host i have a set to virtual directory.
Pleae let me explain why its comming wrong in host...
Thanks in advance
推荐答案
你好Venkateswarlu,
错误信息是什么?请参考这篇文章 http://aspnetmvceuropeanhosting.hostforlife.eu/post/European-ASPNET-MVC-3-Hosting-Deploying-ASPNET-MVC-3-Application-on-Shared-Hosting-Environment.aspx [ ^ ]
Hi Venkateswarlu,
What is the error message? Please kindly refer to this post http://aspnetmvceuropeanhosting.hostforlife.eu/post/European-ASPNET-MVC-3-Hosting-Deploying-ASPNET-MVC-3-Application-on-Shared-Hosting-Environment.aspx[^]
这篇关于托管MVC应用程序时在URL中获取问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!