Allora vi spiego,
nella root del sito devo avere le mie pagine compresa la default.aspx.
Ma nella root c'è quest'altro web config postato poco fa che non devo toccare.
Come faccio a mettere il mio sito direttamente nella root con il mio webconfig qui sotoo postato?:
codice:
<?xml version="1.0"?>
<!--
Per ulteriori informazioni su come configurare l'applicazione ASP.NET, visitare il sito Web all'indirizzo
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
</system.web>
<appSettings/>
<connectionStrings>
<add name="UsersDB" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|BDPSW.mdb;Persist Security Info=True"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<!-- <compilation debug="true" />
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms">
<forms name="FormsAuthentication" path="/" loginUrl="login.aspx" timeout="20" />
</authentication>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<authorization>
<allow users="*"/>
</authorization>
<membership defaultProvider="AccessMembershipProvider">
<providers>
<clear/>
<add name="AccessMembershipProvider"
type="AccessProvider.AccessMembershipProvider"
connectionStringName="UsersDB"/>
</providers>
</membership>
<roleManager enabled="true" defaultProvider="AccessRoleProvider">
<providers>
<clear/>
<add name="AccessRoleProvider"
type="AccessProvider.AccessRoleProvider"
connectionStringName="UsersDB"/>
</providers>
</roleManager>
</system.web>
<location path="Carrello/Chekout">
<system.web>
<authorization>
<deny users="?"/>
<allow roles="User"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="amministrazione">
<system.web>
<authorization>
<deny users="?"/>
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="amministrazione/Cliente">
<system.web>
<authorization>
<deny users="?"/>
<allow roles="Cliente"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<system.web>
<httpHandlers>
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>
</system.web>
</configuration>