如何安装asp.net kigg入门套件



我正在尝试在本地机器上安装kigg入门套件。

我从这里下载KiGG v3.0源代码:http://kigg.codeplex.com/releases/view/53838

首先,当我尝试运行/重建项目时,我会收到3条错误消息,如下所示:

Error    101    The type 'System.Web.Routing.RouteValueDictionary' exists in both 'c:WINDOWSassemblyGAC_MSILSystem.Web.Routing3.5.0.0__31bf3856ad364e35System.Web.Routing.dll' and 'c:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0System.Web.dll'    c:Documents and SettingsDesktopKiggKigg_3a9b436eace5SourceWebViewsMembershipDetail.aspx    21    Kigg.Web
Error    102    The type 'System.Web.Routing.RouteValueDictionary' exists in both 'c:WINDOWSassemblyGAC_MSILSystem.Web.Routing3.5.0.0__31bf3856ad364e35System.Web.Routing.dll' and 'c:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0System.Web.dll'    c:Documents and SettingsDesktopKiggKigg_3a9b436eace5SourceWebViewsMembershipDetail.aspx    27    Kigg.Web
Error    103    The type 'System.Web.Routing.RouteValueDictionary' exists in both 'c:WINDOWSassemblyGAC_MSILSystem.Web.Routing3.5.0.0__31bf3856ad364e35System.Web.Routing.dll' and 'c:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0System.Web.dll'    c:Documents and SettingsDesktopKiggKigg_3a9b436eace5SourceWebViewsMembershipDetail.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 SettingsDesktopKiggKigg_3a9b436eace5SourceWebApp_DataKiGG.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 SettingsNA-PCDesktopKiggKigg_3a9b436eace5SourceWebApp_DataKiGG.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

请帮助

要解决前3个错误:http://connect.microsoft.com/VisualStudio/feedback/details/557798/visual-studio-2010-compile-asp-net-3-5-website-using-net4s-aspnet-compiler-exe

打开文件Kigg.Web.csproj

搜索AspNetCompiler,你会在这里找到它

<Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)..Web" />
</Target> 

添加了类似的刀具路径参数

<Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)..Web" 
ToolPath="C:WindowsMicrosoft.NETFrameworkv2.0.50727"/>
</Target> 

对于数据库错误从更改连接字符串

<add name="KiGGDatabase" connectionString="Data Source=.SQLEXPRESS;AttachDbFileName=|DataDirectory|KiGG.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=true" providerName="System.Data.SqlClient" />

<add name="KiGGDatabase" connectionString="Data Source=.SQLEXPRESS;Database=KiGG;Integrated Security=True;User Instance=True;MultipleActiveResultSets=true" providerName="System.Data.SqlClient"/>

相关内容

  • 没有找到相关文章

最新更新