简体   繁体   English

在子文件夹中配置 Asp.NET 应用程序 - 没有 IIS 配置

[英]Configuring Asp.NET Application in subfolder - Without IIS config

I have a free hosting account, and two ASP.NET project.我有一个免费的托管帐户,以及两个 ASP.NET 项目。

I want to upload both apps in my hosting, like:我想在我的主机中上传这两个应用程序,例如:
www.hosting.com/myaccount/project1/
www.hosting.com/myaccount/project2/

But the problem is when I run project1 or project2但问题是当我运行 project1 或 project2
Asp.net considers application main path ("~") as root www.hosting.com/myaccount/ Asp.net 将application main path ("~")视为根www.hosting.com/myaccount/
Si I cant load dll, App_themes, and Other.我无法加载 dll、App_themes 和其他。
What can I do to stop that strange behvior!我能做些什么来阻止这种奇怪的行为!

I cant configure IIS because I am using free hosting.我无法配置 IIS,因为我使用的是免费托管。 I applied this answer and no thing happened.我应用了这个答案,但没有发生任何事情。

Thank you for hepling.谢谢你的帮助。

You can add an application at root that redirects to the other two.您可以在根目录添加一个重定向到其他两个的应用程序。

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

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