Also, it seems that my folder is not configured to be "application" on the remote server.. Is that the problem?In IIS we have the option of setting a virtual directory to "application" which we normally do if the directory was created manually...
My premises is based on the following error message which I got while trying to run the app on remote serve --
Parser Error Message:
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.
Source Error <In web.config>:
If a folder is not configured in IIS to an application then there is no run time compilation and your code is not creating an assembly to reference. <- This is most likely your issue.
Another thing to check although I do not believe this is going to be related is to make sure your Target Server .net Framework version is the same as your project.