I have a problem with deploying the 3 tier lightswitch web application on the server.

On the local server IIS7 everything works perfect but when i deploy it to the vps which also runs IIS7 it gives me this error when i try to navigate to the page:

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

I have published a package on the disc, uploaded it to the server, installed the application under Default Website with success. But when i navigate to the application it shows that error...

This is what is shown as a problem area:

Config Source

  141:   </system.serviceModel>
  142:   <uri>
  143:     <schemeSettings>

It is part of the web.config file. When i open it and go there i see this:

      <add name="http" genericUriParserOptions="DontUnescapePathDotsAndSlashes" />
      <add name="https" genericUriParserOptions="DontUnescapePathDotsAndSlashes" />

and add part is underlined which gives me further explanation of the error:

web.conf error: the element 'schemeSettings' cannot contain child element 'add' because the parent element's content model is empty.

I tried looking on the internet for the solution but no luck...

Thank you!

Does your account have permission to use WebDeploy?

It could also be that your remot IIS is configured incorrectly.

Is your <uri> tag inside the <configuration> tag?