Ho già letto, su questo form problematiche uguali alla mia ma a me le soluzioni non funzionano.
Il problema è il seguente:
Ho un hosting su aruba sto facendo delle prove in asp.net, le prime pagine che ho inserito in estensione asx funzionano perfettamente, provando ad inserire il seguente web.config :
</appSettings>
<system.web>
<httpRuntime
executionTimeout="120"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
/>
<customErrors mode="Off"/>
<pages
buffer="true"
enableSessionState="true"
/>
<compilation debug="true" defaultLanguage="vb"/>
<authentication mode="Forms" >
<forms name="Role" loginUrl="default.aspx" timeout="20" path="/" />
</authentication>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<sessionState mode="InProc" cookieless="false" timeout="20" />
<globalization culture="IT-it"
uiCulture="IT-it"
requestEncoding="latin9"
responseEncoding="latin9"
/>
</system.web>
<location path="TEST">
<system.web>
<authorization>
<allow roles="1" />
<deny users="?"/>
</authorization>
</system.web>
</location>
</configuration>
b>
</configuration>
mi da il seguente errore:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: 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.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
l'unica cosa che faccio di anomalo e di inserire il web.config in una sotto cartella che ho chiamato asp.net nella cartella ho inserito tutti i file .aspx, perchè non funziona niente quando metto il web config?