我想了解從教程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