同一域中另一个独立的webapp

同一域中另一个独立的webapp

本文介绍了同一域中另一个独立的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.

谢谢

推荐答案


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

07-24 06:01