I am trying to install an app inside of another web app. I have my .aspx pages and some code that I was putting into the main app’s app_code folder. I’ve added my own web.config file for my connection string and such but I think there’s a conflict. So my question is a two parter. First, what is the best way to install an app inside of another app, i.e should I use the main apps app_code folder or add my own, and second, would there be a conflict with the two web.config files. I was under the impression that the files pulled from the most specific web.config file. It appears there is a problem with my security and I am unable to access my file. I was attributing this to the two web.config files,
thanks.
If the nested application has had its folder turned into an application (right-click on it in IIS, Properties, and on the ‘Application’ tab, ‘Create’ a new application), you should put the code in the local App_Code folder:
If the nested application isn’t a true application (in the IIS sense), then you will need to have the code files in the root App_Code folder.
This also has a bearing on your web.config – if the nested application is a true application, then you’ll be able to have a full web.config at the level you want – however if it’s not an IIS application, then there are limitations as to what you are able to put in subsequent web.configs – some elements are only allowed in the web.config at the application root, and can’t be overridden by other settings.
What’s the actual error you are seeing?