Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael Lawrence 128 posts 200 karma points
    Jan 11, 2011 @ 06:39
    Michael Lawrence
    0

    Problem with Contour after moving site to another server

    I've recently transferred a site I'm working on from one server to another and I'm getting the following error when I try to access Contour from the backend:

     

    Server Error in '/' Application.
    
    Invalid object name 'UFforms'.
    
    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 'UFforms'.
    
    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: 
    
    
    [SqlException (0x80131904): Invalid object name 'UFforms'.]
       System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
       System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33
       System.Data.SqlClient.SqlDataReader.get_MetaData() +86
       System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +311
       System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +987
       System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
       System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
       System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
       System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +70
       Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +152
       umbraco.DataLayer.SqlHelpers.SqlServer.SqlServerHelper.ExecuteReader(String commandText, SqlParameter[] parameters) +117
       umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) +150
    
    [SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteReader]
       umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) +232
       Umbraco.Forms.Data.Storage.FormStorage.GetAllForms(Boolean archived) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.Core\Data\FormStorage\FormStorage.cs:44
       Umbraco.Forms.UI.Dashboard.FormsDashboard.Page_Load(Object sender, EventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Dashboard\FormsDashboard.ascx.cs:53
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +46
       System.Web.UI.Control.OnLoad(EventArgs e) +83
       System.Web.UI.Control.LoadRecursive() +120
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3928
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jan 11, 2011 @ 08:50
    Sebastiaan Janssen
    0

    Looks like your database was not transferred completely, you should have few dozen tables that start with UF and your database user should have enough rights to select, update and delete them.

    Has your connectionstring been updated as well?

  • Michael Lawrence 128 posts 200 karma points
    Jan 11, 2011 @ 08:53
    Michael Lawrence
    0

    The connection string has been updated, but it's possible that the database is not complete. Let me check with the DBA.  Thanks!

  • Michael Lawrence 128 posts 200 karma points
    Jan 12, 2011 @ 22:25
    Michael Lawrence
    0

    Hmmm, we're still having the same problem. I've even tried to restore the database and the tables in question are indeed there. Any other ideas?

  • Comment author was deleted

    Jan 13, 2011 @ 16:45

    Check the owner in the db of the created tables, guessing it's an issue with that

  • Michael Lawrence 128 posts 200 karma points
    Jan 14, 2011 @ 00:56
    Michael Lawrence
    0

    I'll check with the DBA and see if this could possibly be the issue.

  • Michael Lawrence 128 posts 200 karma points
    Jan 18, 2011 @ 06:43
    Michael Lawrence
    0

    I figured it out. I did the following:

    1. I added login for the user 'loginname' that was missing
    2. I then executed the following on the database
      ALTER USER username WITH LOGIN = loginname
    3. I then set the user as the db_owner of the database
    4. I then altered the web.config connection string to use the newly created user
    5. I then republished the entire site within Umbraco
    6. Voila, the site worked.

Please Sign in or register to post replies

Write your reply to:

Draft