web.conf文件本地odbc用户为NFS,sql2000数据库为NFS,IIS服务器NFS
请问各大侠乍样修才能连到服务品<?xml version="1.0"?>
<!-- 
    注意: 除了手动编辑此文件以外,您还可以使用 
    Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
     “网站”->“Asp.Net 配置”选项。
    设置和注释的完整列表在 
    machine.config.comments 中,该文件通常位于 
    \Windows\Microsoft.Net\Framework\v2.x\Config 中
-->
<configuration>
<configSections>
<section name="codeHighlighter" requirePermission="false" type="ActiproSoftware.CodeHighlighter.CodeHighlighterConfigurationSectionHandler, ActiproSoftware.CodeHighlighter.Net20"/>
</configSections>
<appSettings>
<add key="DAL" value="COM.TY.SqlServerDAL"/>
<add key="Entity" value="COM.TY.Entity"/>
 
</appSettings>
  
<connectionStrings>
      <add name="constr" connectionString="Data Source=VISTA;Initial Catalog=NFS ;User ID=dsc191191; password=o2x0i8g5c7;"
   providerName="System.Data.sqlClient" />  

    
    
    
  <add name="TianYuanConnectionString" connectionString="Data Source=dsc-19.hichina.com;Initial Catalog=dsc191191_db ; password=o2x0i8g5c7; User ID=dsc070977"
   providerName="System.Data.SqlClient" />
  <add name="TianYuanConnectionString1" connectionString="Data Source=dsc-19.hichina.com;Initial Catalog=dsc191191_db;User ID=dsc070977; password=o2x0i8g5c7;MultipleActiveResultSets=False;Packet Size=4096;Application Name=&quot;Microsoft SQL Server Management Studio&quot;"
   providerName="System.Data.SqlClient" />
  <add name="tgConnectionString1" connectionString="Data Source=dsc-19.hichina.com;Initial Catalog=dsc191191_db;User ID=dsc070977;password=o2x0i8g5c7;MultipleActiveResultSets=False;Packet Size=4096;Application Name=&quot;Microsoft SQL Server Management Studio&quot;"
   providerName="System.Data.SqlClient" />
  <add name="NFSDBConnectionString1" connectionString="Data Source=dsc-19.hichina.com;Initial Catalog=dsc191191_db;Persist Security Info=True;User ID=dsc070977;password=o2x0i8g5c7;MultipleActiveResultSets=False;Packet Size=4096;Application Name=&quot;Microsoft SQL Server Management Studio&quot;"
   providerName="System.Data.SqlClient" />
 </connectionStrings> <system.net>
<mailSettings>
<smtp>
<network host="smtp.163.com" port="25" userName="lovemygz" password="1443865058"/>
</smtp>
</mailSettings>
</system.net>


<system.web>
<!-- 
            设置 compilation debug="true" 将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。
        -->
<!--设置上传单个文件的最大Size-->
<httpRuntime maxRequestLength="10240" executionTimeout="3600"/>
<compilation debug="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies></compilation>
<!--
            通过 <authentication> 节可以配置 ASP.NET 使用的 
            安全身份验证模式,
            以标识传入的用户。 
        -->
<authentication mode="Windows"/>
<!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        --> <pages   validateRequest="false" /> <customErrors mode="Off"/>

</system.web>
<!--定义代码高亮插件-->
<codeHighlighter>
<cache languageTimeout="3"/>
<keywordLinking enabled="true" target="_blank" defaultKeywordCollectionKey="ActiproKeywords">
<keywordCollection key="ActiproKeywords">
<explicitKeyword tokenKey="IdentifierToken" patternValue="Actipro" url="http://www.actiprosoftware.com" caseSensitive="false"/>
<explicitKeyword tokenKey="IdentifierToken" patternValue="CodeHighlighter" url="http://www.codehighlighter.com" caseSensitive="false"/>
</keywordCollection>
</keywordLinking>
<languages>
<language key="Assembly" definitionPath="~/system_dntb/Lexers/ActiproSoftware.Assembly.xml"/>
<language key="BatchFile" definitionPath="~/system_dntb/Lexers/ActiproSoftware.BatchFile.xml"/>
<language key="C#" definitionPath="~/system_dntb/Lexers/ActiproSoftware.CSharp.xml"/>
<language key="CSS" definitionPath="~/system_dntb/Lexers/ActiproSoftware.CSS.xml"/>
<language key="HTML" definitionPath="~/system_dntb/Lexers/ActiproSoftware.HTML.xml"/>
<language key="INIFile" definitionPath="~/system_dntb/Lexers/ActiproSoftware.INIFile.xml"/>
<language key="Java" definitionPath="~/system_dntb/Lexers/ActiproSoftware.Java.xml"/>
<language key="JScript" definitionPath="~/system_dntb/Lexers/ActiproSoftware.JScript.xml"/>
<language key="Lua" definitionPath="~/system_dntb/Lexers/ActiproSoftware.Lua.xml"/>
<language key="MSIL" definitionPath="~/system_dntb/Lexers/ActiproSoftware.MSIL.xml"/>
<language key="Pascal" definitionPath="~/system_dntb/Lexers/ActiproSoftware.Pascal.xml"/>
<language key="Perl" definitionPath="~/system_dntb/Lexers/ActiproSoftware.Perl.xml"/>
<language key="PHP" definitionPath="~/system_dntb/Lexers/ActiproSoftware.PHP.xml"/>
<language key="PowerShell" definitionPath="~/system_dntb/Lexers/ActiproSoftware.PowerShell.xml"/>
<language key="Python" definitionPath="~/system_dntb/Lexers/ActiproSoftware.Python.xml"/>
<language key="SQL" definitionPath="~/system_dntb/Lexers/ActiproSoftware.SQL.xml"/>
<language key="VB.NET" definitionPath="~/system_dntb/Lexers/ActiproSoftware.VBDotNet.xml"/>
<language key="VBScript" definitionPath="~/system_dntb/Lexers/ActiproSoftware.VBScript.xml"/>
<language key="XAML" definitionPath="~/system_dntb/Lexers/ActiproSoftware.XAML.xml"/>
<language key="XML" definitionPath="~/system_dntb/Lexers/ActiproSoftware.XML.xml"/>
</languages>
<lineNumberMargin foreColor="Teal" paddingCharacter=" " visible="true"/>
<outlining enabled="true" imagesPath="~/system_dntb/OutliningIndicators/"/>
<spacesInTabs count="4"/>
</codeHighlighter>
</configuration>

解决方案 »

  1.   

    <connectionStrings>
    <add name="constr" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=NFS ;User ID=dsc191191; password=o2x0i8g5c7;"
    providerName="System.Data.sqlClient" />
      把 connectionStrings 里面的数据库连接字符串改掉就行了。提醒楼主,发帖的时候不要把你配置文件里的东西都贴出来哦,很容易遭到攻击的。
      

  2.   


    <connectionStrings> 
    <add name="constr" connectionString="server=.;database=VISTA;uid=dsc191191;pwd=o2x0i8g5c7" /> </connectionStrings>
      

  3.   

    你本地有一样的数据库?如果有,则把DataSource的值改为.就可以了,如果还是使用服务器上的数据库测试,建议就不用改了。
      

  4.   


    以肖中SQL2005现的改用2000用的是SQL2000数据库
      

  5.   

    也没有个SQL2005下载,下载了个还显示系统不兼容,怎样把2005的数据连接,改为对SQL2000数据连接
      

  6.   

    把DataSource的值改为.就可以了