ローカルマシンにkiggスターターキットをインストールしようとしています。
ここからKiGGv3.0ソースコードをダウンロードします:http://kigg.codeplex.com/releases/view/53838
最初にプロジェクトを実行/再構築しようとすると、次のような3つのエラーメッセージが表示されます。
Error 101 The type 'System.Web.Routing.RouteValueDictionary' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll' and 'c:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.dll' c:\Documents and Settings\Desktop\Kigg\Kigg_3a9b436eace5\Source\Web\Views\Membership\Detail.aspx 21 Kigg.Web
Error 102 The type 'System.Web.Routing.RouteValueDictionary' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll' and 'c:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.dll' c:\Documents and Settings\Desktop\Kigg\Kigg_3a9b436eace5\Source\Web\Views\Membership\Detail.aspx 27 Kigg.Web
Error 103 The type 'System.Web.Routing.RouteValueDictionary' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll' and 'c:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.dll' c:\Documents and Settings\Desktop\Kigg\Kigg_3a9b436eace5\Source\Web\Views\Membership\Detail.aspx 34 Kigg.Web
それでもプロジェクトを実行しようとすると、次のエラーが発生します。
Line 43: }
Line 44:
Line 45: public Database(string connectionString) :
Line 46: base(connectionString, _defaultContainerName)
Line 47: {
私はこの解決策に従います:http://kigg.codeplex.com/discussions/236299
次のファイルを「ビュー/共有ファイル」から「App_Data」にコピーしました
これで、エラーは次のように変更されました。
An attempt to attach an auto-named database for file C:\Documents and Settings\Desktop\Kigg\Kigg_3a9b436eace5\Source\Web\App_Data\KiGG.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file C:\Documents and Settings\NA-PC\Desktop\Kigg\Kigg_3a9b436eace5\Source\Web\App_Data\KiGG.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Source Error:
Line 92: Check.Argument.IsNotEmpty(userName, "userName");
Line 93:
Line 94: return DataContext != null ? FindByUserNameQuery.Invoke(DataContext, userName.Trim()) : Database.UserDataSource.FirstOrDefault(u => u.UserName == userName.Trim());
Line 95: }
Line 96
SSMSを使用してデータベースを作成しました。これは、接続文字列です。
<connectionStrings>
<clear />
<add name="KiGGDatabase" connectionString="Data Source=.\SQLEXPRESS;AttachDbFileName=|DataDirectory|KiGG.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=true" providerName="System.Data.SqlClient" />
</connectionStrings>
(ローカルマシンにkiggをインストールしたい)
これらの手順に従って、データベースhttp://kigg.codeplex.com/releases/view/53838を作成しました
助けてください