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

CREATE DATABASE permission denied in database 'master' && MemberShipProvider

$
0
0

Hello, I am using the Universal ASP.NET Membership provider; The user data and my own data are stored in the same database sharing the same connection string. its works perfectly on my local development environment. I have transfered  the site to the remote host "1and1, copied the database (schema + content) with a SQL statement AND I get now the following error when trying to log in : CREATE DATABASE permission denied in database 'master'.  Normally, ASP.NET should not create a database because I gave a valid connection string pointing to an existing database with the required tables (User, Membership, etc.). But it seems that ASP.NET does not see this DataBase and try to create a new one. The details as follows. There is something wrong but I dont't know what... Did you face similar issue ?

<connectionStrings>

<addname="ConnectionString1"connectionString="Data Source=mydatabase.db.1and1.com,1433;Initial Catalog=mydatabase;User Id=myuserid; password=mypassword"providerName="System.Data.SqlClient"/> 

</connectionStrings>

    <membershipdefaultProvider="DefaultMembershipProvider">

      <providers>

        <addname="DefaultMembershipProvider"type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"connectionStringName="ConnectionString1"enablePasswordRetrieval="false"enablePasswordReset="true"requiresQuestionAndAnswer="false"requiresUniqueEmail="false"maxInvalidPasswordAttempts="5"minRequiredPasswordLength="6"minRequiredNonalphanumericCharacters="0"passwordAttemptWindow="10"applicationName="/"/>    

      </providers>

    </membership>


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>