I have recently purchased a shared web hosting package, provided by GoDaddy, and deployed my own MVC web application to it.
My problem is that, when on the control panel (Plesk) provided by the host, I can’t find the Controllers folder that contains all the behind code.
Is there a reason for this folder being hidden?
I’m guessing it’s because the files within this folder are being used by the server all the time and can’t be accessed/changed incase it f–ks everything up… But I am not sure about it because I am quite new to web hosting.
Thanks for any assistance in advance.
3
Answers
All your cs files including controllers will be compiled into DLL files. Please open “bin” directory to find all your DLLs.
When you deploy, u ll not get controller, because it contains c# code which changed to dll available inside bin folder.
Not Only Controller, the other folders which are having C# code like “App_Start”…and etc…will be changed to dll and will be available inside bin folder.
In the case of Model/s, if you are using Entity framework, then, the .edmx file will be available inside the Model folder.
All your Business logics including controllers, models and core etc are converted to dll and by Assembly name dll is created in bin (released or debug folder)