Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Hi, 

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]         --> That is the root of www.mydomain.com

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

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

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

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

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

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

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

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). 

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. 

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. 

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

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.

Thanks 

Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900