c# - MVC Controller The server was not found or not accessible -


i create new mvc web project in visual studio 2015, add new class, , attach mvc 5 controller entity framework it. when run index file(the 1 display list of items have in class database), gives error shown below.how solve problem? don't know since new asp.net-mvc , thought controller handle things me.

edit: tried same thing in visual studio 2013 , comes out fine.

edit2: run same program in visual studio 2015 again , works. da...

chenge connection :

data source=.;initial catalog=aspnet-webapplication3-20150819093905;integrated security=true; 

(.) in data source mean local server.

the following link create connection string :

http://www.connectionstrings.com/


Comments

Popular posts from this blog

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -