开发者

Configuring Asp.NET Application in subfolder - Without IIS config

开发者 https://www.devze.com 2023-03-16 20:38 出处:网络
I have a free hosting account, and two ASP.NET project. I want to upload both apps in my hosting, like:

I have a free hosting account, and two ASP.NET project.

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

Asp.net considers application main path ("~") as root www.hosting.com/myacco开发者_StackOverflowunt/

Si I cant load dll, App_themes, and Other.

What can I do to stop that strange behvior!

I cant configure IIS because I am using free hosting. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号