| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 802 人关注过本帖
标题:哥哥们来帮忙下,
只看楼主 加入收藏
myanos
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-10-16
收藏
 问题点数:0 回复次数:6 
哥哥们来帮忙下,
哥哥们来帮忙下,,按照这个程序的作者改了相应的地方都不行 不是报错就是连接不上数据库,请哥哥们帮忙看看。
以下是代码
<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website-> Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine. usually located in
    \Windows\\Framework\v2.x\Config
-->
<configuration>
  <appSettings>
    <add key="ConnString" value="Data Source=TONG\SQLEXPRESS;Initial Catalog=PCMSys;User ID=sa;Password=sa"/>
  </appSettings>
    <connectionStrings>
  <add name="PCMSysConnectionString" connectionString="Data Source=TONG\SQLEXPRESS;Initial Catalog=PCMSys;User ID=sa;Password=sa"
   providerName="System.Data.SqlClient" />
  <add name="PCMSysConnectionString2" connectionString="Data Source=TONG\SQLEXPRESS;Initial Catalog=PCMSys;User ID=sa;Password=sa"
   providerName="System.Data.SqlClient" />
 </connectionStrings>
    <system.web>
        <!--
            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"/>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
             to identify an incoming user.
        -->
        <authentication mode="Windows"/>
        <!--
            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 mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    </system.web>
</configuration>
搜索更多相关主题的帖子: Website Windows settings 
2012-10-16 21:34
yms123
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
报什么错误
2012-10-24 11:59
荷塘5月色
Rank: 1
等 级:新手上路
帖 子:3
专家分:5
注 册:2012-10-26
收藏
得分:0 
为什么飞的用config来编写连接数据库呢。多麻烦啊。而且还容易错。你试试正常的连接可否成功
2012-10-26 20:55
zzqqrr
Rank: 6Rank: 6
来 自:299294817
等 级:侠之大者
威 望:1
帖 子:155
专家分:408
注 册:2011-6-11
收藏
得分:0 
看了一下有几个地方都有字符串,找一下看他读的是哪个就知道了,看下来读这个config的是读的哪个,就改哪个,

59izk,com神奇百货,神奇百货网官网,shenqi,一个神奇的导购站!!
2012-10-26 21:57
痞子,赵
Rank: 2
来 自:地球
等 级:论坛游民
威 望:1
帖 子:28
专家分:31
注 册:2012-10-25
收藏
得分:0 
或许是source和key 后的代码问题

从不知道的未来慢慢接受不可能的现实,以行动铸就下一步的辉煌
2012-11-14 16:36
awl805
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:15
帖 子:161
专家分:664
注 册:2012-11-6
收藏
得分:0 
连接字符串一个就好了,我一般用这个字符串"Server=.;database=basename;uid=sa;password=pw;"
2012-11-14 20:34
烧包谷
Rank: 2
等 级:论坛游民
威 望:2
帖 子:60
专家分:69
注 册:2010-10-11
收藏
得分:0 
LZ你的数据库用户名和密码是这个吗?还有你的数据库安装时的验证方式是sql-server验证方式吗?
2012-12-04 21:33
快速回复:哥哥们来帮忙下,
数据加载中...
 
   



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

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