我想了解从教程MVC3在www.asp.net/mvc/tutorials 一切都在MVC3创建控制器文件this step 这里后,每当我试图做工精细,直到我到达创建控制器文件夹下的文件控制器我得到错误的显示在下面的链接: click this to see the error message错误而在Visual Studio 2010中
我的连接斯汀如下:
<connectionStrings> <add name="conString" connectionString="data source=localhost;initial catalog=ShrathSample;uid=sa;pwd=admin123" providerName="System.Data.SqlClient"/> <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> </connectionStrings>
我无法找到正确的解决方案。请有人帮助摆脱这个错误,或者建议我一个简单的教程来轻松学习MVC。
在此先感谢。
喜,@Neel,我不会在我的应用程序中使用本地的MDF数据库,而不是我使用的SQL Server 2005 –
我在回答一些链接检查出来@ shary.sharath – Neel
并为您的治标不治本的评论你的连接字符串,然后你将能够添加控制器@ shary.sharath – Neel