Invalid object name 'Announcements'

Discussion in 'ASP.NET Starter Kits' started by Bruce, May 17, 2006.

  1. Bruce

    Bruce DiscountASP.NET Staff

    this error usually means that you did not create the database schema correctly.

    We are testing a new way of moving SQL Express database to our SQL 2005 server. All starter kits are configured by default to use SQL Express db. If you are interested in testing, please let us know.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. I'm a complete beginner with SQL Server. I'm trying to put theClub Website Starter Kit on discountasp. I have looked at tons of blogs, messageboards, etc, including numerous ones within discountasp's site. A lot of the postings I find "assume" you know how to do things with SQL Server. I'm trying to learn, but it hasn't been easy so far. I amusing VS2005, SQL Server 2005 with the SQL Server Management Studio.

    I've learned how to connect discountasp.net SQL Server so I don't think there isremote server connection problems. But I don't know where I missed because I get error message like the following when I put "Ctrl F5".
    I typed in theline as instructed in this forum, replacing connectionString part.(see my web.config file below after error message):
    <SUB>
    I must be missing a step (or steps) along the way because I keep gettingthis kind oferrors. I hope one of you guys will point out my mistake. I tried over and over in so manyways for about one month, but only getting errors to making discourage. Please help me. Let me payif needed. Maybe you can supply me with right sample code which realy works. Please contact me. My email address is "[email protected]. I'm looking for helper or tutors who can help me tomake a successfulpublishing about "club and persnal" starter kit.

    Server Error in '/CLUB' Application.


    Invalid object name 'Announcements'.
    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: Invalid object name 'Announcements'.

    Source Error:






    Code:
    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:






    Code:
    [SqlException (0x80131904): Invalid object name 'Announcements'.]
       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) +2305
       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) +1661
       System.Web.UI.WebControls.Repeater.GetData() +50
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +214
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +54
       System.Web.UI.WebControls.Repeater.DataBind() +62
       System.Web.UI.WebControls.Repeater.EnsureDataBound() +55
       System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +13
       System.Web.UI.Control.PreRenderRecursiveInternal() +88
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       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) +5731
    
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <location path="events_edit.aspx">
    <system.web>
    <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
    <location path="locations_edit.aspx">
    <system.web>
    <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
    <location path="news_edit.aspx">
    <system.web>
    <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
    <location path="photoalbum_new.aspx">
    <system.web>
    <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
    <location path="member_list.aspx">
    <system.web>
    <authorization>
    <deny users="?"/>
    </authorization>
    </system.web>
    </location>
    <location path="member_details.aspx">
    <system.web>
    <authorization>
    <deny users="?"/>
    </authorization>
    </system.web>
    </location>

    <connectionStrings>

    <add name="ClubSiteDB" connectionString="Data Source=sql2k503.discountasp.net;Integrated Security=false;Initial Catalog=SQL2005_242817_sqldiscount; User ID= SQL2005_242817_sqldiscount_user; Password=0292shm" providerName="System.Data.SqlClient"/>

    <remove name="LocalSqlServer"/>
    <add name="LocalSqlServer" connectionString="Data Source=sql2k503.discountasp.net;Integrated Security=false;Initial Catalog=SQL2005_242817_sqldiscount; User ID= SQL2005_242817_sqldiscount_user; Password=0292shm" providerName="System.Data.SqlClient"/>

    </connectionStrings>

    <system.web>
    <roleManager enabled="true"/>
    <authentication mode="Forms" />
    <compilation debug="false" strict="true">
    <assemblies>
    <add assembly="System.Xml, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Messaging, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    </assemblies>
    </compilation>
    <membership defaultProvider="AspNetSqlMembershipProvider"/>
    <siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">
    <providers>
    <remove name="AspNetXmlSiteMapProvider"/>
    <add name="AspNetXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true" siteMapFile="Web.sitemap"/>
    </providers>
    </siteMap>
    <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.htm"/>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
    </system.web>
    </configuration>





    Version Information:Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 <!--
    [SqlException]: Invalid object name 'Announcements'.
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
    at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
    at System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
    at System.Web.UI.WebControls.Repeater.GetData()
    at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
    at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
    at System.Web.UI.WebControls.Repeater.DataBind()
    at System.Web.UI.WebControls.Repeater.EnsureDataBound()
    at System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e)
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.
    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at ASP.default_aspx.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    -->
     
  3. Yes, I'm interested in testing it. Also, can you help me create a proper database scheme? Much thanks. - John.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    johnpaul,

    please create a support ticket in the control panel and reference this thread.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page