stighy
stighy

Reputation: 7170

Deploy ASP.NET app in a subdirectory

I've a small and cheap hosting which I use for my "company". The main site (at root level) uses WordPress.

I would like to deploy some application in subdirectory, for example

www.mysite.com/demo_app1
www.mysite.com/demo_app2

Is it possible *without accessing to IIS virtual directory * ?

At the moment I get "Parse Error: unable to load 'myapp._Default' "

I can't access to IIS because my hosting is cheap (maybe .. too cheap ;) ) ...

Upvotes: 3

Views: 1749

Answers (2)

Aristos
Aristos

Reputation: 66649

Its impossible to create new web application from web.config on sub directories of your site.

The reasons are basic because you need to have higher access level, and also connect your web application to a specific pool. This can not been done from web.config it self.

Now one other solution to your problem is to try to make them run all together if your seconds applications are small. To do that use the root bin directory to add your dlls, and use the root web.config for add the extra settings for your sub applications. This can work if you do not have so difficult applications on your sub directories that not conflict with the root.

Upvotes: 7

Matías Fidemraizer
Matías Fidemraizer

Reputation: 64943

You need at least your root directory marked as an ASP.NET application.

Anyway, edit your web.config and set your compilation mode to debug and check that custom errors are disabled. That's going to allow you to see what's going on.

Upvotes: 0

Related Questions