本帖最后由 bravo007 于 2009-07-31 13:00:03 编辑

解决方案 »

  1.   

    出现用户 'sq8visafc' 登录失败
    说明用这个用户访问不了数据库,看看权限
      

  2.   

    检查用户 'sq8visafc' 的数据库权限
      

  3.   

    各位好心人,
    这个网站下面没有数据库呀说实在的,我没有弄过.net,情况是这样的,
    前面有个.ascx 文件要修改,一直没有改掉,后面问那个做网站的,说要重新生成一下,
    今天刚刚把全部网站重新生成后,发布(一路瞎蒙)
    生成了三个.dll文件,然后把旧文件里面的:<%@ page language="C#" autoeventwireup="true" inherits="callboard, App_Web_0azyl7cl" enableviewstatemac="false" viewStateEncryptionMode="Never" %>加红部分换成新
    生成的.dll,本来都顺利,就是三个文件页面出问题。。
      

  4.   

    删除原文件,重新发布网站
    sq8visafc.nfxgtscn_callboard 为用户名.表名
    登录用户和密码是否正确,看看连接字符串
      

  5.   

    我去哪里各位说的数据库呀。网站所有文件夹,都看了,
    都是.aspx,.ascx,.dll,.aspx.exclude这些文件,怎么才能知道是不是用户名和密码错误。。用户 'sq_visafcasia' 登录失败。
    源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
    [SqlException (0x80131904): 用户 'sq_visafcasia' 登录失败。]
       System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437
       System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
       System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
       System.Data.SqlClient.SqlConnection.Open() +111
       System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
       System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
       System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
       controls_dealerPopmenu.dataBindtoPopMenu(String popmenuid) +140
       controls_dealerPopmenu.Page_Load(Object sender, EventArgs e) +113
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 

    还有这个错误。。
      

  6.   

    我去哪里各位说的数据库呀。网站所有文件夹,都看了, 
    都是.aspx,.ascx,.dll,.aspx.exclude这些文件, 怎么才能知道是不是用户名和密码错误。。
    ============================================================ 用户 'sq_visafcasia' 登录失败。 
    源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
    [SqlException (0x80131904): 用户 'sq_visafcasia' 登录失败。] 
      System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437 
      System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 
      System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 
      System.Data.SqlClient.SqlConnection.Open() +111 
      System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121 
      System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137 
      System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83 
      controls_dealerPopmenu.dataBindtoPopMenu(String popmenuid) +140 
      controls_dealerPopmenu.Page_Load(Object sender, EventArgs e) +113 
      System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 
      System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34 
      System.Web.UI.Control.OnLoad(EventArgs e) +99 
      System.Web.UI.Control.LoadRecursive() +47 
      System.Web.UI.Control.LoadRecursive() +131 
      System.Web.UI.Control.LoadRecursive() +131 
      System.Web.UI.Control.LoadRecursive() +131 
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 
    还有这个错误。。
      

  7.   

    你看下web.config中的配置数据库连接,看连接数据库服务器的密码是否正确
      

  8.   

    web.config文件内容如下:<?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->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in 
        machine.config.comments usually located in 
        \Windows\Microsoft.Net\Framework\v2.x\Config 
    -->
    <configuration>
    <appSettings/>
    <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 
                ASP.NET 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>
            -->
    <globalization requestEncoding="gb2312" responseEncoding="gb2312" />
    </system.web>
    </configuration>