bosswll 发表于 2017-10-16 18:20:30

懂网站的请帮忙看看 谢谢

本帖最后由 bosswll 于 2017-10-16 22:28 编辑

不知道哪出了问题,,网页打不开,数据库问题吗

错误提示Server Error in '/' Application.
--------------------------------------------------------------------------------
对象名 'SN_Notice' 无效。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: 对象名 'SN_Notice' 无效。
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:


   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +177
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +68
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2300
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
   System.Data.SqlClient.SqlDataReader.get_MetaData() +62
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +294
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1021
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +314
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +20
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +107
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +10
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +139
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +139
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1657
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +13
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +140
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +68
   System.Web.UI.WebControls.GridView.DataBind() +5
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +61
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +67
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.Control.PreRenderRecursiveInternal() +50
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5729


--------------------------------------------------------------------------------



数据库名字99Z      账号密码   SA   123456



配置文件


<?xml version="1.0" encoding="UTF-8"?>
<!--
    注意: 除了手动编辑此文件以外,您还可以使用
    Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
   “网站”->“Asp.Net 配置”选项。
    设置和注释的完整列表在
    machine.config.comments 中,该文件通常位于
    \Windows\Microsoft.Net\Framework\v2.x\Config 中
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
</appSettings>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="A3WEB_IIConnectionString1" connectionString="Data Source=(Local)\GSQL;Initial Catalog=99z;Persist Security Info=True;User ID=sa;Password=123456"
   providerName="System.Data.SqlClient" />
<add name="asdConnectionString1" connectionString="Data Source=(Local)\GSQL;Initial Catalog=99z;Persist Security Info = True;User ID=sa;Password=123456"
   providerName="System.Data.SqlClient" />
<add name="asdConnectionString2" connectionString="Data Source=(Local)\GSQL;Initial Catalog=99z;Persist Security Info=True;User ID=sa;Password=123456"
   providerName="System.Data.SqlClient" />
<add name="DogConStr" connectionString="Data Source=(Local)\GSQL;Initial Catalog=99z;Persist Security Info=True;User ID=sa;Password=123456"
   providerName="System.Data.SqlClient" />
<add name="DogConStr2" connectionString="Data Source=(Local)\GSQL;Initial Catalog=itemstorage;Persist Security Info=True;User ID=sa;Password=123456"
   providerName="System.Data.SqlClient" />
<add name="asdConnectionString3" connectionString="Data Source=(Local)\GSQL;Initial Catalog=99z;Persist Security Info=True;User ID=sa;Password=123456"
   providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--
            设置 compilation debug="true" 将调试符号插入
            已编译的页面中。但由于这会
            影响性能,因此只在开发过程中将此值
            设置为 true。
      -->
<httpHandlers>
   <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
    </httpHandlers>
<authentication mode="Forms">
   <forms name="_a3web_II" loginUrl="Default.aspx" />
</authentication>
<membership>
   <providers>
    <remove name="AspNetSqlMembershipProvider" />
    <add connectionStringName="A3WEB_IIConnectionString1" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   </providers>
</membership>
<roleManager enabled="true">
   <providers>
    <remove name="AspNetSqlRoleProvider" />
    <add connectionStringName="A3WEB_IIConnectionString1" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   </providers>
</roleManager>
<customErrors mode="Off" defaultRedirect="error.html">

</customErrors>
<compilation debug="false" defaultLanguage="c#" />
      <identity impersonate="true" /></system.web>
    <system.webServer>
      <defaultDocument>
            <files>
                <clear />
                <add value="index.aspx" />
            </files>
      </defaultDocument>
    </system.webServer>
</configuration>



我怀疑的是是不是我那个99Z的数据库里面没有他需要的表

bosswll 发表于 2017-10-16 18:23:18

图片    补上

a525025 发表于 2017-10-16 19:14:12

网站没问题,数据有问题

lovejiaxu 发表于 2017-10-16 19:46:25

图片太小看不清楚。图抓清晰点帮你分析

夏颜熙 发表于 2017-10-16 20:38:47

:看错误日志

邪恶⑷亡’- 发表于 2017-10-16 20:56:46

配置有问题。

bosswll 发表于 2017-10-16 21:05:51

a525025 发表于 2017-10-16 19:14
网站没问题,数据有问题

是不是我连接的数据库里面没有那页需要的表

bosswll 发表于 2017-10-16 21:07:51

lovejiaxu 发表于 2017-10-16 19:46
图片太小看不清楚。图抓清晰点帮你分析

能看清楚了吗

bosswll 发表于 2017-10-16 21:09:06

夏颜熙 发表于 2017-10-16 20:38
看错误日志

错误日志在哪里阿

bosswll 发表于 2017-10-16 21:10:13

邪恶⑷亡’- 发表于 2017-10-16 20:56
配置有问题。

配置文件web.aspx吗

邪恶⑷亡’- 发表于 2017-10-16 21:26:54

你用的什么语言写的网站,网站F12打开控制台。。看有没有报错。

lovejiaxu 发表于 2017-10-16 21:29:26

bosswll 发表于 2017-10-16 21:07
能看清楚了吗

主要是看下面的小字,那是具体错误信息....

bosswll 发表于 2017-10-16 22:16:03

lovejiaxu 发表于 2017-10-16 21:29
主要是看下面的小字,那是具体错误信息....

看看行不行

bosswll 发表于 2017-10-16 22:29:26

lovejiaxu 发表于 2017-10-16 21:29
主要是看下面的小字,那是具体错误信息....

Server Error in '/' Application.
--------------------------------------------------------------------------------

对象名 'SN_Notice' 无效。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: 对象名 'SN_Notice' 无效。

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:



   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +177
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +68
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2300
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
   System.Data.SqlClient.SqlDataReader.get_MetaData() +62
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +294
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1021
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +314
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +20
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +107
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +10
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +139
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +139
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1657
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +13
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +140
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +68
   System.Web.UI.WebControls.GridView.DataBind() +5
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +61
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +67
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.Control.PreRenderRecursiveInternal() +50
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5729




--------------------------------------------------------------------------------

夏颜熙 发表于 2017-10-16 22:33:13

bosswll 发表于 2017-10-16 21:09
错误日志在哪里阿

看是的网站是用什么架设的啊,APCHE还是TOMCAT安装目录下都有一个LOGS或者LOG的文件夹,里面有ERRO,log的文件打开就能看到了

夏颜熙 发表于 2017-10-16 22:44:29

bosswll 发表于 2017-10-16 22:29
Server Error in '/' Application.
---------------------------------------------------------------- ...

写的很清楚了,数据源错误

bosswll 发表于 2017-10-16 23:13:35

夏颜熙 发表于 2017-10-16 22:44
写的很清楚了,数据源错误

啊   注册页面可以用啊   我这是A3 游戏的网站   要是数据源错误游戏服务端应该也不能运行啊   但是游戏运行正常

lovejiaxu 发表于 2017-10-17 09:10:10

SN_Notice是你的库?还是表?
对象名无效意思是没找到

bosswll 发表于 2017-10-17 09:14:37

lovejiaxu 发表于 2017-10-17 09:10
SN_Notice是你的库?还是表?
对象名无效意思是没找到

我也不知道说的是什么 ,,,,不知道他指的是库还是表    我的库是99z随便起的,我修改了配置文件也是指像99z的

无情的语 发表于 2017-10-17 10:14:13

net的,搞不太懂,可能说你把表名弄错了,或者你在操作表前使用的库不是你要操作的库
页: [1] 2
查看完整版本: 懂网站的请帮忙看看 谢谢

本站内容如若侵犯到您的权益,请来电来函告知,我们会尽快处理!
联系QQ:1953150286,2251387361,123784736,免责申明