zoukankan      html  css  js  c++  java
  • 学习persnal website starter kit 和 club website starter kit

    微软的 website starter kit无疑是学习asp.net2.0新特性入门实践的极佳“教材”,学习personal website starterkit的最好文章在这里

    这两天将personal和 club两个starter kit下载下来安装、运行,简单看了看。asp.net1.x的starter kit已经做得比较完备了,比如community starter kit,相比之下,asp.net2.0的starter kit还太简单, 它的 club web site也没有将论坛的功能集成进来。

    一开始依次碰到的问题以及解决方法是:

    1,vsi是什么格式的文件?
    从网上下载到的安装文件是vsi格式的,右键点击,可以看出vsi是“VSContentInstaller”文件,打开,自动安装到my documents的相应子目录中。但是,这时不要去解压该目录中的文件。vsi只所以方便,就是它可以在VS2005中循file->new->website就可以看到想要打开的项目了。

    2,要运行该项目别忘了修改asp_data目录的权限,给aspnet用户加上写权限。

    3,如何将数据由默认的文件指向sql server 2000?
    缺省情况下,这几个项目的数据均存放在asp_data目录中的 mdf文件中,到asp.net的论坛上看到下面的帖子,遵循以下的方法可以将其改为存放在sql server中。

        1,Create a blank database in SQL 2000 using enterprise manager called CLUB

        2, Download ClubAdd.exe from http://www.microsoft.com/downloads/details.aspx?FamilyId=0DD83A11-6980-4951-A192-DA6EACC6A19E&displaylang=en (对personal web site来说,微软网站上也有相应的脚本文件可以下载)
    Run ClubAdd.exe and it will spit out a file called club-add.sql and a Eula.txt file
    Run the club-add.sql file in query analyser against your newly created database
    This will create the necessary tables for you.

    3,别忘了用aspnet_regsql.exe程序生成带有高级特性的aspnetdb库,该程序在\WINDOWS\Microsoft.NET\Framework\v2.0.50215中。You may need to add the aspnetdb for storing profiles if you have not already done this. I performed this as follows:
    Create a blank database in SQL 2000 using enterprise manager called ASPNETDB
    Run aspnet_regsql.exe from the .net framework install directory
    This produces a wizard the allows you to populate and register the ASPNETDB for asp.nets use
    This will create the profile database structure for you

    4,然后再修改web.config中的数据配置节。
    You will need to then change the database connection strings in the web.config of the club site to match the above two databases. Using the example database names above and the example server name of  "DEVSQL01" with a "sa" login and a "yourpassword" password i performed this as follows:

    My connection strings portion of the web.config now looks as follows:

    <connectionStrings>

     <add name="ClubSiteDB" connectionString="Data Source=DEVSQL01;Initial Catalog=CLUB;Persist Security Info=True;User ID=sa;Password=yourpassword"       providerName="System.Data.SqlClient" />
     <remove name="LocalSqlServer"/>
     <add name="LocalSqlServer" connectionString="Data Source=DEVSQL01;Initial Catalog=ASPNETDB;Persist Security Info=True;User ID=sa;Password=yourpassword" providerName="System.Data.SqlClient" />

    </connectionStrings>      

    That should then give you connectivity

    4,登陆项目时,默认是强密钥,如果想更改的话,可以参考这篇blog

  • 相关阅读:
    【洛谷P3629】巡逻【树的直径】
    【洛谷P3629】巡逻【树的直径】
    【洛谷P4408】逃学的小孩【树的直径】
    【洛谷P4408】逃学的小孩【树的直径】
    【POJ2631】Roads in the North【树的直径】
    【POJ2631】Roads in the North【树的直径】
    【洛谷P1547】Out of Hay【最小生成树】
    【洛谷P1547】Out of Hay【最小生成树】
    【USACO2.3.1】【洛谷P1470】最长前缀【KMP】
    【USACO2.3.1】【洛谷P1470】最长前缀【KMP】
  • 原文地址:https://www.cnblogs.com/Jacquette/p/251030.html
Copyright © 2011-2022 走看看