同一域中另一个独立的webapp [英] Independent webapp inside another in the same domain

查看:115
本文介绍了同一域中另一个独立的webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个域,我想在其中运行一些独立的webapp.但是我无法弄清楚如何使其正常工作.

I have a domain and I''d like to put some independent webapp running inside it. But I can''t figure out how to make it work properly.

让我举一个我想做的例子: 

Let me give a sample what I''m trying to do:  

\ mydomain [dir]         ->那就是www.mydomain.com

\mydomain [dir]         --> That is the root of www.mydomain.com

  的根源.   \ bin  [dir]        ->具有主站点的dlls

    \bin  [dir]         --> has the dlls of the main site 

     \ default.aspx      ->

    \default.aspx       --> some aspx page on the main site 

 主站点上的一些aspx页面  \ web.config        ->主站点的配置

    \web.config         --> the config of the main site

     \ app1 [dir]        ->另一个Web应用的位置

    \app1 [dir]         --> the location of the other webapp

         \ bin [dir]     -> app1网站的dll 

        \bin [dir]      --> the dlls of the app1 site 

         \ default.aspx  -> app1网站的页面

        \default.aspx   --> a page for the app1 site

         \ web.config    ->

        \web.config     --> the config file for the app1 site. 

"app1"通过URL www.mydomain.com/app1或app1.mydomain.com与根站点独立运行(对于我来说,这两个都很好) ,但我真的更喜欢第二个.)

Well "app1" behave independently from the root site through the URL www.mydomain.com/app1 or app1.mydomain.com (either one is fine for me, but I really prefer the second one). 

在VS2008中,我有两个单独的项目,它们会生成网站并在适当的文件夹中发布.在调试或运行本地(通过localhost:[端口号])时,它们可以正常工作,但它们当然使用不同的端口.

I have two separate projects in VS2008 that generate the sites and publish then in the proper folder. When debuging or running local (via localhost:[port number]) they work fine, but of course they use distinct ports. 

问题是App1无法识别其"bin"中的dll.文件夹.仅当我将dll放在根"bin"文件夹中时,它才起作用(如果我创建一些App_Theme文件夹,则主题也是如此,即,它只能识别根文件夹中的主题).那不是很好.

The problem is that App1 does not recognizes the dlls in its "bin" folder. It only works if I put the dll in the root "bin" folder (same goes for themes if I create some App_Theme folder, ie. It only recognizes themes on the root folder). That''s not good. 

我正在ISP中发布它,因此我无权访问它的IIS配置来创建应用程序.

I''m publishing it in a ISP so I don''t have access to it''s IIS configuration to create applications.

我几乎可以肯定这是web.config之一(或两者)中缺少某些东西,使应用程序可以独立运行.

I''m almost sure that is something missing in one of the web.config''s (or both) to make the apps works independently.

有人可以帮我吗?请发送一些逐步的答案,因为我对此事不熟悉.

Can someone help me? Please send some step-by-step answer because I''m new on the matter.

谢谢

推荐答案

大多数托管公司ASP.NET将允许您将文件夹标记为ASP.NET应用程序.我个人发现,通过app1.domain.com的处理方式可以更轻松地对其进行处理.需要告知IIS该子文件夹是ASP.NET应用程序,否则将无法正常运行.

我建议您将app1.domain.com指向主机控制面板中的文件夹.从那里,您还应该能够知道它在ASP.NET应用程序中,并且还可以告诉它应使用的ASP.NET版本.这也很重要.至少您应该能够打开支持通知单,告诉主机使其成为IIS内部的应用.
Most hosting companies that have ASP.NET will allow you to mark a folder as an ASP.NET app. I personally find it easier to deal with it from the app1.domain.com way of doing things. IIS needs to be told that the subfolder is an ASP.NET app or it will not work as you are seeing.

I suggest you put app1.domain.com point to the folder from your host control panel. From there you should be able to also tell it is in an ASP.NET app and probably also what version of ASP.NET that it should be using. This is important as well. At the very least you should be able to open up a support ticket to tell the host to make it an app inside of IIS.


这篇关于同一域中另一个独立的webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆