简体   繁体   English

IIS 7.5中的Asp.net MVC 4应用程序问题

[英]Asp.net mvc 4 Application issue in IIS 7.5

I am running into this Issue on the server. 我正在服务器上遇到此问题。

Local: 本地:

When I run my application in my local I am getting the URL as 当我在本地运行应用程序时,URL为

http://localhost:63952/Home/Index/?Home=Home

On the Server: 在服务器上:

I added the virtual directory Called (MyDirectory) 我添加了虚拟目录Called(MyDirectory)

   `http://10.9.29.123/Mydirectory/Home/Index/?Home=Home ( Expecting should be like this ) but I am getting 404 Error and URL coming as http://10.9.29.123/Home/Index/?Home=Home ( I do not see the Virtual directory in the URL)

Using VS 2013 asp.net mvc 4.5 version. 使用VS 2013 asp.net mvc 4.5版本。 ( IIS 7.5 ) (IIS 7.5)

It could be that your virtual directory needs to be made into an Application instead. 可能是您的虚拟目录需要改成应用程序。 In order to do that, open up IIS manager, navigate to your virtual directory, right-click on it, and click 'Convert to Application'. 为此,请打开IIS管理器,导航到您的虚拟目录,右键单击它,然后单击“转换为应用程序”。 Follow the dialog that follows, according to how you want your application to be set up. 根据您希望如何设置应用程序,按照随后的对话框进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM