在子目录中部署ASP.NET应用程序(Deploy ASP.NET app in a subdirectory)

编程入门 行业动态 更新时间:2024-10-11 15:22:29
子目录中部署ASP.NET应用程序(Deploy ASP.NET app in a subdirectory)

我有一个小而便宜的托管,我用于我的“公司”。 主站点(根级)使用WordPress。

例如,我想在子目录中部署一些应用程序

www.mysite.com/demo_app1 www.mysite.com/demo_app2

是否有可能* 不访问IIS虚拟目录*

目前我得到“解析错误:无法加载'myapp._Default'”

我无法访问IIS因为我的托管很便宜(也许......太便宜了;))...

I've a small and cheap hosting which I use for my "company". The main site (at root level) uses WordPress.

I would like to deploy some application in subdirectory, for example

www.mysite.com/demo_app1 www.mysite.com/demo_app2

Is it possible *without accessing to IIS virtual directory * ?

At the moment I get "Parse Error: unable to load 'myapp._Default' "

I can't access to IIS because my hosting is cheap (maybe .. too cheap ;) ) ...

最满意答案

无法从您站点的子目录上的web.config创建新的Web应用程序。

原因很简单,因为您需要具有更高的访问级别,并且还要将Web应用程序连接到特定的池。 这不能从web.config它自己完成。

现在你的问题的另一个解决方案是如果你的秒应用程序很小,试着让它们一起运行。 为此,请使用root bin目录添加您的dll,并使用根web.config为您的子应用程序添加额外的设置。 如果您的子目录上没有那么难以与根目录冲突的应用程序,这可以工作。

Its impossible to create new web application from web.config on sub directories of your site.

The reasons are basic because you need to have higher access level, and also connect your web application to a specific pool. This can not been done from web.config it self.

Now one other solution to your problem is to try to make them run all together if your seconds applications are small. To do that use the root bin directory to add your dlls, and use the root web.config for add the extra settings for your sub applications. This can work if you do not have so difficult applications on your sub directories that not conflict with the root.

更多推荐

本文发布于:2023-04-29 08:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335631.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:子目录   应用程序   ASP   subdirectory   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!