Asp.net login problem.

Posted by Catarrunas on Stack Overflow See other posts from Stack Overflow or by Catarrunas
Published on 2010-06-16T20:36:39Z Indexed on 2010/06/16 20:42 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

Hello, im building a asp.net web site with 2.0 framework. I've been "fighting" with web.config, i've changed it quiet some times. So to start from scracht this is what i have:

<?xml version="1.0" encoding="utf-16"?>
<configuration>
    <connectionStrings>
        <remove name="LocalSqlServer"/>
        <add name="ABC" connectionString="Database=jsilvaqqc.mdf; Data Source=213.175.208.3;Initial Catalog=jsilvaqqc;User ID=jsilva;Password=joao123#;" providerName="System.Data.SqlClient"/>
    <add name="LocalSqlServer" connectionString="Database=jsilvaqqc.mdf; Data Source=213.175.208.3;Initial Catalog=jsilvaqqc;User ID=jsilva;Password=joao123#;" providerName="System.Data.SqlClient"/>
    </connectionStrings>

  <location path="Members">
        <system.web>
            <authorization>
                <allow users="*"/>
        <deny users="?"/>
            </authorization>
        </system.web>
    </location>
    <system.web>
<compilation debug="true"/>
  </system.web></configuration>

It works fine im my machine. I've created the users for the login and the role to access the "Members" folder.

But in my host company, it doesnt work. I have the aspnet database from my computer in that databese "jsilvaqqc.mdf". When i try to log on pops up box requiring autentication. But i've alreadu given that in the log in form. Do i need aspnet "authentication" tag? Why dont i need it in my machine if i access the same database?

Thanks for you help.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about login