Asp.net application inside another Asp.net Application

A

Ameen

Hi friends,

I have created a small independent web application in asp.net with c#
as code behind. Already there is a Main web application running in the
server. This both application share same database. I want to add this
new application to the older one.

I create a sub-folder in the Main Application. Copied all files of my
new application in that folder along with bin folder, web.config,
global,asax..

If i try to access the new application it shows error in its web.config
file. Since i'm hosting to some other 3rd Party Server, i dont have
rights to access their IIS. What i have to do??

Ameen
 
G

Guest

The sub-application must be configured as an application in the IIS manager.
Otherwise it will not be a separate application and cannot have its own
web.config. This will all be changed in IIS 7 where everything will be
configured through web.config (small consolation today I guess though :) ).
 
J

Juan T. Llibre

re:
Otherwise it will not be a separate application
and cannot have its own web.config.

Actually, it *can* have its own web.config but the web.config
cannot implement any "MachineToApplication" settings.

Open machine.config to see which settings are defined thay way.
They include this line : allowDefinition="MachineToApplication".

If you include one of those, you'll get the error.

All other application settings can be included in a web.config which will
control all the processes it's allowed to control in that subdirectory
of the main application.

What can't be included if the subdirectory is a global.asax.
( You can include one, but it won't do anything... )




Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top