IIS - add subapplication in root application
Asked By prateek
03-Feb-12 08:41 AM
hi
i create a application and use vb as code behind and add virtual directory in IIS . after this now i require to add a folder in my application.there are some aspx files and code behind file is in c#.
i want to execute both of my vb file and c# file in one application.
for example
www.mydomain.com
in root folder there are some aspx file with vb code behind file
and
www.mydomain.com/admin/
in this folder some c# files exist
i want to execute both of my vb and c# files in one application
should i attach web.config in both folder or not
i have not permission on IIS on server..i have only control panel permission .because i have not dedicated server .i have only small web space and control panel permission....
what's the right method to configure my application in this situation
[)ia6l0 iii replied to prateek
I hope you meant vb.net and not vb. Or did you mean vb script?
If you meant vb.net and c#, which I did about a good number of years ago, then you can do this via the app_code folder.
Create subfolders - one for c# and another for vb.net. Place respective classes in the folders.
And then ensure that you configure these folders in the web.config's codesubdirectories node.
<configuration>
<system.web>
<compilation>
<codeSubDirectories>
<add directoryName="dirThatContainsVB"/>
<add directoryName="dirThatContainsCsharp"/>
</codeSubDirectories>
</compilation>
</system.web>
</configuration>
Web.config rules apply as before.

Cannot Create A Web Site IIS Hi All, My IIS 7.0 on Windows Vista appears to be broken. I deleted all web sites using IIS 7.0 UI. I then try to add a site called WTF located at C: \ WTF. 1 click on root icon in UI 2. Add web site. . . 3. Site name. . .: WTF 4. Application Pool: Classic .NET AppPool 5. Physical path: C: \ WTF 6. Binding Type: [shows empty drop
cache in IIS 7.0 IIS I have ASP application on IIS 7.0. I would like to set that some files in folder are in cache for example
Isolating websites in IIS 7.0 IIS Hi I want to setup the following in IIS 7.0: 1. Create a website for anonymous access. 2. Allow the application restricted access to certain folders on the server, i.e. this asp script should give
IIS 7.0 Service Not Available on Vista IIS I have a new install of both Vista and IIS 7.0. When I access the IIS Manager and click Browse in the Actions panel I get a 503 response. When I
IIS 7.0 on Vista Home premium IIS I am trying to deploy a test web service on Vista Home Premium (IIS 7.0), and I am getting the following error: allowDefinition = 'MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an