asp.net mvc Invalid value for key 'attachdbfilename'

后端 未结 9 1631
野趣味
野趣味 2020-12-10 05:50

I am currently reading Manning\'s \"ASP.NET MVC 4 in Action\" book and trying to get the first example to work.

Within my test application, I built a simple Model a

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 06:37

    I think the problems here is string in web.config is not correct According to your set up sql, the string will work if you set something similar like this

    
    

    Data Source=.\SQLEXPRESS; --> sometime, it will be Data Source=.; after that, you need config right to access FOlder App_Data If u test on Window 7, right click folder. property Security tab -> add user network Service with full right

提交回复
热议问题