Configuration

Discussion in 'ASP.NET / ASP.NET Core' started by pngprojects, Aug 20, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Can someone please have a look at my webconfig file below and tell me what is wrong with it cos I can run my apps from my dev but after i move it to discountasp.net for hosting it bombs out in login authentication. You can try my web apps http://www.pngprojects.com and use admin/admin acct to sign on.

    <location path="images">
    <system.web>
    <authorization>
    <allow roles="*"/>
    </authorization>
    </system.web>
    </location>
    <location path="Clients">
    <system.web>
    <authorization>
    <allow roles="*"/>
    </authorization>
    </system.web>
    </location>
    <appSettings>
    <add key="CslaAuthentication" value="Csla"/>
    <add key="Telerik.Skin" value="Sitefinity"/>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
    </appSettings>
    <connectionStrings>
    <add name="ProjectLite" connectionString="Data Source=(local);Initial Catalog=ProjectLite;Persist Security Info=True;User ID=x;Password=x" providerName="System.Data.SqlClient"/>
    <add name="Security" connectionString="Data Source=(local);Initial Catalog=ProjectLite;Persist Security Info=True;User ID=x;Password=x" providerName="System.Data.SqlClient"/>
    <add name="PMS.Report.Properties.Settings.PMS" connectionString="Data Source=(local);Initial Catalog=ProjectLite;Persist Security Info=True;User ID=x;Password=x" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <authentication mode="Forms">
    <forms loginUrl="login.aspx" name=".ASPXFORMSAUTH">
    </forms>
    </authentication>
    <authorization>
    <deny users="?"/>
    </authorization>
    <membership defaultProvider="PTMembershipProvider">
    <providers>
    <add name="PTMembershipProvider" type="ProjectLite.PTMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" description="Stores and retrieves membership
    data using CSLA .NET business objects."/>
    </providers>
    </membership>
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    you have custom error enabled, can't really tell what the real error is.

    Try disable ASP.NET custom error and check the real error.
     
  3. I have exactly the same problem.

    Runs fine locally but after publishing to DiscountASP it keeps throwing me out of the Admin pages and asks me to log in again. No errors are recorded in the log.

    I have disabled custome errors but no error page is displayed - I am simply redirected to the login page.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page