[英]ASP.NET Put MVC Application in a subdirectory
So I've bought a shared hosting and I want to put a separate asp.net mvc application in a subdirectory. 因此,我购买了共享主机,并想在子目录中放置一个单独的asp.net mvc应用程序。 In the root directory it has a normal asp.net application.
在根目录中,它具有正常的asp.net应用程序。
However when I upload the whole MVC project to the subdirectory I'm getting an configuration error: 但是,当我将整个MVC项目上传到子目录时,出现配置错误:
The code subdirectory '/mobile/App_Code/CSCode/' does not exist. 代码子目录“ / mobile / App_Code / CSCode /”不存在。
What can I do to make this working? 我该怎么做才能使它正常工作?
Thanks alot already! 非常感谢!
I have a similar scenario where i have GoDaddy shared hosting account. 我有一个类似的场景,其中我拥有GoDaddy共享托管帐户。 To make sure your MVC application work under ASP.Net sub-directory you have to take care of following points
为了确保您的MVC应用程序在ASP.Net子目录下工作,您必须注意以下几点:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.