Dear Expert,
I hv a simple web site published on IIS, but I do not hv access IIS to modify the authentication mode. what I think that I can modify the web.config file to allow anonymous access.
Here is my code:
<configuration> <connectionStrings> <add name="" connectionString="Data Source=;User ID=;Password=;persist security info=False;initial catalog=;" providerName="System.Data.SqlClient" /> </connectionStrings>
<system.web> <compilation debug="true" targetFramework="4.0" />
<authentication mode="Windows"> <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> </authentication>
<membership> <providers> <clear /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership>
<profile> <providers> <clear /> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /> </providers> </profile>
<roleManager enabled="false"> <providers> <clear /> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> </providers> </roleManager>
</system.web>
<system.webServer> <modules runAllManagedModulesForAllRequests="true" /> </system.webServer> </configuration