| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1362 人关注过本帖
标题:学习宠物商店
只看楼主 加入收藏
有容就大
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:东土大唐
等 级:版主
威 望:74
帖 子:9048
专家分:14309
注 册:2011-11-11
收藏
得分:0 
我发个自己下的源代码 哪位用VS2005以上的版本打开一下看能不能运行?
PetShop for .NET3.5 Weekly Drop 01.rar (1.89 MB)

梅尚程荀
马谭杨奚







                                                       
2013-04-04 23:41
有容就大
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:东土大唐
等 级:版主
威 望:74
帖 子:9048
专家分:14309
注 册:2011-11-11
收藏
得分:0 
哈哈 终于找到问题的症结了 原来是装VS2010时没有安装Web服务的模板
重装了下 终于搞定了
不过设置这个解决方案的Web为启动项目后打开本地网站出现个错误
图片附件: 游客没有浏览图片的权限,请 登录注册

--
图片附件: 游客没有浏览图片的权限,请 登录注册

有没有人一起研究啊 嘎嘎

梅尚程荀
马谭杨奚







                                                       
2013-04-06 00:03
有容就大
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:东土大唐
等 级:版主
威 望:74
帖 子:9048
专家分:14309
注 册:2011-11-11
收藏
得分:0 
貌似是连接数据库有问题?
我用的SQL2000
但是Web文件夹下的Web.Config中怎么没提到SQL2000?
程序代码:
<?xml version="1.0"?>
<configuration xmlns="http://schemas. <connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider">
  <EncryptedData Type="http://www. Algorithm="http://www. />
   <KeyInfo xmlns="http://www. <EncryptedKey xmlns="http://www. Algorithm="http://www. />
     <KeyInfo xmlns="http://www. Key</KeyName>
     </KeyInfo>
     <CipherData>
      <CipherValue>dtaom3kW2lunPM4UG9z93Vqh6f9IYVolEdvXyEY+kFSTzfL8heCwxzmdSqw9+7V1uD6k1JPObZv17ojn7T8myw8hSU7+1tock0MtnilBwr2fVOYD9i2El281KOSTClJaTSnOEVbPygegPZqR6rplAyR0fD08ggZWfueL4IMJD9k=</CipherValue>
     </CipherData>
    </EncryptedKey>
   </KeyInfo>
   <CipherData>
    <CipherValue>ujJQn6/0GqA2R00aV3zMjIoo+BccShZnzu9293ejFszNPD2pyFW7TMbOIRrU6THlYqJ+fFznoNhcrT5vA86r3Y+CW1f2Tr+6YBINCpWLHRrMMYzwll7kvgCMI8SQ1rLwILhTjBsDZtV3uFtRd2gWuKAUBUMO3gJtKEUjmHYKKRNwr7jyd34XiyjTBRPPXyMXti4I0c5HClCJvai+i6dfLJwJaB+KV050NhL3vZoNYMaFWXgK8C/jX4Q6Db4ou7GAfcsbfAJ9IjhCfIMrFdWBAj8iusohDMWByqQGQLuth4oJOol1WHacrj64JyIE2H3JFuHhG624xLTlJ3+uk/btgGbeY3fZr84mjHlZK5tjvcgZnz8XLT6iyPnlLmt0EYQouZD4iFKxtdxFCz3wiwtzO7gBBbyLmK0I27Ty931SI0j0yU50mvnI/hN8dA3RRzqO3I3F7TH7atnbrswU845s12ZXfjjXujsOV9lz71R0LvJ/cNiGUWQmosW5bpf5OgmYl+BR43CYddpgtQd9Y56fwBRHoJB/lcXJbeA3wJiqFrWi5xNWT5PkcAnIoT2ul3KRMbv1giBf7E7Zi1L9Eei/AP4Kx9h8c25WFVTx9j9SE7wLLZm6x4AXWYWEBTxI5tMTbhehzlUp/hL4FZrcmWDy2hUEgZS/tsfLvmXu0nDEfiZk+IZOgUEArOroM8lw+U6GQ4ZoxZqUVHIMAm2iyg0noOPNpllqftMPdD3jRKWMhVGE/+uigoGin4kqxI3yCX/IxuQJR4TxxLlQrzr9TOzf+pXdv4V4c6pUfhpJTj0Xlikywn2S8YXa5wVqufxXWbP1qioJE+rq6y8TsuicOKQFsgwpC+PmetKndEnUnwpcsstzCJQLMnbT5lpWclo31Ql2cRJccDJF368NaCbCVLxriaIZ8NkNYscJ6nbT6RvXJ+xhLBGyrMu6bPgLXOvJx9O8djrgImM01+yAdXtOaaHpe5VgjdxV2OEjAlecW875gnfxdpE8BPa9za7PA/UtOV84e1WHh0uVpEPGN7vIFYZjc2sGON+felO0fVAujFlsPksr6yqzEWIaDS5jYKfD+4/aAY8uY6K4md5MwbIHlQvjMoYa12IhGaDS5vY9mT44UyXf4HejSnF4N0Z8XmiQdxfAOjBqpTVReZSmaZaiZdliwXRl/44jQYVO6er+PQondcSCG5jitFIaWUwBgqLBKYM9BPkLFh4J9u+x91F9LjeLNUfxNfllNtSzs+8bFvIDV4qQVZAzNivuOgt6fL7EOrKYIzEtoPbXqqYueTzXEEMo6ezxCpBfG4GGtKFeAJxkPZlTEouVNygf6rlaIkFlwC8Hhs2Ikq2+ekdWCEHOckUkmvM5x1c2Lr/enjn965R1a+BClfIUk7eqvLbMo7mpGbDRTTJXci3MPFug6entP0P63kxRzvL6k7zNtKFxrCq98FvCiT1oyXF6tCdRIfATpvoPQVYTfO3hIwVCIIqHX3u7bxgYh1zS9ruhDYeiDwzue9ff/Ufk2wpIreCvEu1jEBXQL09xZpbzSayARc+EpH+GEs6iIIwvzLG/eGXsykcZ6INd304fC3q1rXdsUvUauVuuR1BmnILsqw4U4ViXM9THAA==</CipherValue>
   </CipherData>
  </EncryptedData>
 </connectionStrings>
    <appSettings>
        <!-- Pet Shop DAL configuration settings. Possible values: PetShop.SQLServerDAL for SqlServer, PetShop.OracleServerDALfor Oracle. -->
        <add key="WebDAL" value="INVENTORY_DAL"/>
        <add key="OrdersDAL" value="ORDERS_DAL"/>
        <add key="ProfileDAL" value="PROFILE_DAL"/>
        <!-- Enable data caching -->
        <add key="EnableCaching" value="true"/>
        <!-- Cache duration (in hours-whole number only) -->
        <add key="CategoryCacheDuration" value="12"/>
        <add key="ProductCacheDuration" value="12"/>
        <add key="ItemCacheDuration" value="12"/>
        <!-- Cache dependency options. Possible values: PetShop.TableCacheDependency for SQL Server and keep empty for ORACLE -->
        <add key="CacheDependencyAssembly" value="CONFIG_CACHE_ASSEMBLY"/>
        <!-- CacheDatabaseName should match the name under caching section, when using TableCacheDependency -->
        <add key="CacheDatabaseName" value="MSPetShop4"/>
        <!-- *TableDependency lists table dependency for each instance separated by comma -->
        <add key="CategoryTableDependency" value="Category"/>
        <add key="ProductTableDependency" value="Product,Category"/>
        <add key="ItemTableDependency" value="Product,Category,Item"/>
        <!-- Order processing options (Asynch/Synch) -->
        <add key="OrderStrategyAssembly" value="PetShop.BLL"/>
        <add key="OrderStrategyClass" value="PetShop.BLL.OrderSynchronous"/>
        <!-- Asynchronous Order options -->
        <add key="OrderMessaging" value="PetShop.MSMQMessaging"/>
        <add key="OrderQueuePath" value="FormatName:DIRECT=OS:MachineName\Private$\PSOrders"/>
        <!-- Application Error Log -->
        <add key="Event Log Source" value=".NET Pet Shop 4.0"/>
    </appSettings>
    <system.web>
        <pages theme="PetShop" styleSheetTheme="PetShop"/>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
        <compilation debug="true">
        </compilation>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
             to identify an incoming user.
         -->
        <authentication mode="Forms">
            <forms name="PetShopAuth" loginUrl="SignIn.aspx" protection="None" timeout="60"/>
        </authentication>
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.
        -->
        <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
        <sessionState mode="Off"/>
        <anonymousIdentification enabled="true"/>
        <profile automaticSaveEnabled="false" defaultProvider="ShoppingCartProvider">
            <providers>
                <add name="ShoppingCartProvider" connectionStringName="CONFIG_PROFILE_CONN" type="PetShop.Profile.PetShopProfileProvider" applicationName=".NET Pet Shop 4.0"/>
                <add name="WishListProvider" connectionStringName="CONFIG_PROFILE_CONN" type="PetShop.Profile.PetShopProfileProvider" applicationName=".NET Pet Shop 4.0"/>
                <add name="AccountInfoProvider" connectionStringName="CONFIG_PROFILE_CONN" type="PetShop.Profile.PetShopProfileProvider" applicationName=".NET Pet Shop 4.0"/>
            </providers>
            <properties>
                <add name="ShoppingCart" type="PetShop.BLL.Cart" allowAnonymous="true" provider="ShoppingCartProvider"/>
                <add name="WishList" type="PetShop.BLL.Cart" allowAnonymous="true" provider="WishListProvider"/>
                <add name="AccountInfo" type="PetShop.Model.AddressInfo" allowAnonymous="false" provider="AccountInfoProvider"/>
            </properties>
        </profile>
        <!-- Membership Provider for SqlServer -->
        <!-- REMOVE_FOR_SQL
        <membership defaultProvider="SQLMembershipProvider">
            <providers>
                <add name="SQLMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SQLMembershipConnString" applicationName=".NET Pet Shop 4.0" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed"/>
            </providers>
        </membership>
        REMOVE_FOR_SQL -->
        <!-- Membership Provider for Oracle -->
        <!-- REMOVE_FOR_ORA
        <membership defaultProvider="OracleMembershipProvider">
            <providers>
                <clear/>
                <add name="OracleMembershipProvider"
                    type="PetShop.Membership.OracleMembershipProvider"
                    connectionStringName="OraMembershipConnString"
                    enablePasswordRetrieval="false"
                    enablePasswordReset="false"
                    requiresUniqueEmail="false"
                    requiresQuestionAndAnswer="false"
                    minRequiredPasswordLength="7"
                    minRequiredNonalphanumericCharacters="1"
                    applicationName=".NET Pet Shop 4.0"
                    hashAlgorithmType="SHA1"
                    passwordFormat="Hashed"/>
            </providers>
        </membership>
        REMOVE_FOR_ORA -->
        <!-- REMOVE_FOR_CACHE
        <caching>
            <sqlCacheDependency enabled="true" pollTime="10000">
                <databases>
                    <add name="MSPetShop4" connectionStringName="SQLConnString1" pollTime="10000"/>
                </databases>
            </sqlCacheDependency>
        </caching>
        REMOVE_FOR_CACHE -->
    </system.web>
    <location path="UserProfile.aspx">
        <system.web>
            <authorization>
                <deny users="?"/>
            </authorization>
        </system.web>
    </location>
    <location path="CheckOut.aspx">
        <system.web>
            <authorization>
                <deny users="?"/>
            </authorization>
        </system.web>
    </location>
</configuration>
怎么配置好啊 有大牛感兴趣么?

梅尚程荀
马谭杨奚







                                                       
2013-04-06 01:08
有容就大
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:东土大唐
等 级:版主
威 望:74
帖 子:9048
专家分:14309
注 册:2011-11-11
收藏
得分:0 

鸡冻啊 我消除了 几个提示错误的代码出来这个东西
图片附件: 游客没有浏览图片的权限,请 登录注册

但是我点击Sign in 前面的那个放大镜后就显示错误 貌似是和数据库有关系 哇哇

图片附件: 游客没有浏览图片的权限,请 登录注册

怎么办好呢?

梅尚程荀
马谭杨奚







                                                       
2013-04-06 01:12
tlliqi
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
等 级:贵宾
威 望:204
帖 子:15453
专家分:65956
注 册:2006-4-27
收藏
得分:0 
快摸住天顶了
2013-04-06 09:43
于祥
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:蒙面侠
威 望:5
帖 子:1047
专家分:4132
注 册:2011-4-24
收藏
得分:6 
不懂,帮顶

最基础的往往是你最容易忽略的!
2013-04-06 13:35
mskeheng
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:48
专家分:179
注 册:2013-3-13
收藏
得分:6 
真心不懂,就顶下
2013-04-07 13:56
快速回复:学习宠物商店
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.050464 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved