Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

ASP.Net Config and GoDaddy Problem

$
0
0

Hi, I used the ASP.Net Configuration under the Project menu in Visual Studio Pro 2010. The security works as desired on my local. For example, I have a folder in my project called Secured that deny "All" and allows "Admin". However, when I publish out to a folder on my local, and then FTP to GoDaddy, my site looses the security set on the folders. For example, someone who has not logged in yet can access the forms in my Secured folder.

Other database functionally seems to work fine like my record searches on GoDaddy. I am using SQL Express on my local, but ran a script to create SQL Server Db on GoDaddy.

I'm not sure if it has something to do with my web config settings, so I will post parts of it below:

<configuration><connectionStrings><!--GoDaddy Connection String Here--><!--<add name="ApplicationServices" connectionString="Data Source=Mydb.db.12346678.hostedresource.com; Initial Catalog=Mydb; 
User ID=Mydb; Password='MyPassword';" providerName="System.Data.SqlClient" /><add name="AdminConnectionString" connectionString="Data Source=Mydb.db.12345678.hostedresource.com; Initial Catalog=Mydb;
User ID=Mydbdb; Password='MyPassword';" providerName="System.Data.SqlClient" /></connectionStrings> --><!--Original SQL Express Connection String Here--><add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|
DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /><add name="AdminConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /></connectionStrings><system.web><compilation debug="false" strict="false" explicit="true" targetFramework="4.0"/><authentication mode="Forms"><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="true"><providers><clear /><add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider"
type="System.Web.Security.SqlRoleProvider" /><add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" /></providers></roleManager>

Help appreciated. Thanks.


Viewing all articles
Browse latest Browse all 4737

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>