I'm trying to publish my application on a windows server 2012 server with IIS 8. It fits step by step from "Site -> Add Website" to fill in with the coordinates, paths, and so on. I deployed in the appropriate default folder "Inetpub -> wwwroot", however I get the following errors when testing in the browse of the server itself or access the url from outside by my intranet.
ForChrome
Both of the above I am using through IIS to 'Authentication = Disabled'. When I go to 'Authentication = Enabled' this is the error:
Mywebconfiglookslikethis:
<?xmlversion="1.0" encoding="utf-8"?>
<customErrors mode="Off"/>
<roleManager enabled="true" defaultProvider="CustomRoleProvider">
<providers>
<clear />
<add name="CustomRoleProvider" type="Competências.Business.CustomRoleProvider" connectionStringName="DefaultConnection" applicationName="/"/>
</providers>
</roleManager>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<globalization uiCulture="pt-BR" culture="pt-BR" enableClientBasedCulture="true" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" />
<authorization>
<deny users="?" />
</authorization>
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
And my connectionstring:
public const string CONNECTION_STRING = @"Data Source=XXXXXX;Initial Catalog=Competências;User Id=integracao;Password=XXXXX;MultipleActiveResultSets=True;";
public const string DEVELOPMENT_CONNECTION_STRING = @"Data Source=XXXXXX;Initial Catalog=Competências;Integrated Security=SSPI;MultipleActiveResultSets=True;";
What is missing properly configured to be able to publish my application?