1

Resolved

Can not run....

description

I just follow the instruction to just run the project, but I got this exception

"
An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct."
from
private Site _GetByName(string name)
Line 213: {
Line 214: var query = from item in _siteRepository.Table
Line 215: where item.Name == name
Line 216: select item;

Do I need to manually create Database? Or my connectionstring is incorrect?
Now,I just have this
"
<add name="WeapsyConnection"
   connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=WeapsyN01;Integrated Security=SSPI" 
   providerName="System.Data.SqlClient" />
<add name="AspNetConnection" 
   connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=WeapsyN01;Integrated Security=SSPI" 
   providerName="System.Data.SqlClient" />
"

comments

lucacb wrote Jun 19, 2012 at 7:23 AM

Please try to create the database manually.
I this does not work execute the SQL scripts inside the Scripts folder (weapsy.sql and aspnet_DefaultProviders.sql).