The page in my application where database access is performed, I am getting an error which says
CREATE DATABASE permission denied in database ‘master’.
Following is the url : http://price-tag.org/Store/Section/Computers.
I have created the database on hosting provider database server and following is my connectionstring
<add name="PriceCompareEntity" connectionString="Data
Source=rdinvent.db.8750445.hostedresource.com; Initial Catalog=rdinvent; User
ID=myDatabase; Password=myPassword;" providerName="System.Data.SqlClient" />
What can be the reason for this error? Also, why is it trying to recreate the database when I have already done that and there is no initialization for new database defined in Global.asax
Im assuming you are using EF CodeFirst? The reason this is happening is because you havent correctly passed the connection string settings into the CodeFirst Context object. This means its trying to create the ContextDB using the full name/namespace of the context.