Gopal
Gopal

Reputation: 217

How to host my MVC4 website inside folder?

I have created a folder in root directory in my server and I have uploaded my website in folder which is developed in MVC4, but its not running and giving the error:

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Upvotes: 0

Views: 63

Answers (1)

Donal
Donal

Reputation: 32713

You need to convert the virtual directory to an application. There are some instruction on how to do this here

Upvotes: 1

Related Questions