Błąd konfiguracji web.config

0

Mam gotową aplikację, którą chcę wrzucić na hosting, jednakże w momencie wrzucenia plików wyskakuje mi poniższy błąd:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: This configuration section cannot be used at this path.  This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error: 


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Pomoc hostingowa twierdzi, że nie mogą zmienić tych ustawień serwera. Poniżej mój web.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location allowOverride="true">
  <connectionStrings>
    <add name="ConnectionString" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Lampino.mdf;Integrated Security=True" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  
    <system.web>
      <globalization uiCulture="pl-PL" culture="pl-PL" fileEncoding="utf-8" responseEncoding="utf-8" requestEncoding="utf-8"/>
      <compilation debug="true"/>
      <customErrors mode="Off"/>
      <securityPolicy>
        <trustLevel name="Full"/>
      </securityPolicy>
    </system.web>
  </location>
</configuration>

Czy jest jakaś opcja, żeby aplikacja ruszyła na ich hostingu czy mam szukać nowego? A może problem faktycznie tkwi gdzieś w moim web.configu...

0

Jedyne ustawienie które pewnie zablokowali to:

<securitypolicy> <trustlevel name="Full" /> </securitypolicy>

próbowałeś usunąć?

0
Ashiv3r napisał(a):

Usunięcie tagu location nic nie zmienia.

https://msdn.microsoft.com/en-us/library/b6x6shw7%28v=vs.85%29.aspx
wartość domyślna allowOverride jest True, czyli spróbuj
<location allowOverride="False">

0

Ok, temat może częściowo rozwiązany. Nie mogę zmienić ustawień serwera, jeśli chodzi o kwestię trustLevel. Takie ustawienie już mam narzucone odgórnie, a posiadanie bazy w pliku .mdf wymaga określonego trustLevel, dlatego trzeba przerobić bazę z pliku .mdf na bazę MSSQL w hostingu.

1 użytkowników online, w tym zalogowanych: 0, gości: 1