An Error Occurred:Invalid object name 'mp_SiteHosts'.

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/25/2011 3:43:42 PM
Gravatar
Total Posts 18439

Re: An Error Occurred:Invalid object name 'mp_SiteHosts'.

If the table exists and you get that error all I can guess is that the user in your connection string is not a dbo (database owner) but in that case it will get errors on all tables and stored procedures that have the [dbo]. prefix nothing about upgrading should cause that. It means the user doesn't have dbo permission and does not see objects named with [dbo]. prefix.

I would check with your host and ask him to make your user in the database connection string a dbo on the database. I don't know any other solution to fix it. I don't see how it is possible that this is related to an upgrade unless your host changed something at the same time.

11/25/2011 3:54:06 PM
Gravatar
Total Posts 23

Re: An Error Occurred:Invalid object name 'mp_SiteHosts'.

Maybe i will trade to restore the databese  maybe did you have teamviewer?

 

Thanks keep on touch

11/25/2011 3:58:16 PM
Gravatar
Total Posts 18439

Re: An Error Occurred:Invalid object name 'mp_SiteHosts'.

When you look at the table names in your database are they named with dbo. or with something else?

If it is a single site installation you might be able to solve it by this:

ALTER PROCEDURE [dbo].[mp_SiteHosts_SelectSiteIdByHost]

@HostName nvarchar(255)

AS

SELECT 1


GO

assuming 1 is the site id for your site which it usually is in a single site installation.

Hope that helps,

Joe

11/25/2011 4:03:42 PM
Gravatar
Total Posts 23

Re: An Error Occurred:Invalid object name 'mp_SiteHosts'.

Yeaaaaaaaaaaaaaaaaaaaaaaaaaaa   it work yes yes yes yes

ok i have restore the database and then i use your last query (your right to suppose that i have a single site)

Thanks a lot very i will spend a beer the next day promise

 

Marco

11/25/2011 4:10:56 PM
Gravatar
Total Posts 18439

Re: An Error Occurred:Invalid object name 'mp_SiteHosts'.

Glad that fixed it! But the solution is kind of a hack. I'd still like to know the answer to this question:

When you look at the table names in your database are they named with dbo. or with something else?

Because it may help me understand why this error happened in the first place. I'm sure it has something to do with the way the database is configured but I'm not sure yet exactly what the problem is. This error should not happen and I would like to figure out why it is happening and a way to prevent it.

Best,

Joe

11/25/2011 4:36:49 PM
Gravatar
Total Posts 23

Re: An Error Occurred:Invalid object name 'mp_SiteHosts'.

Ok i will trade to answer:

i see mp_Sites  but also ws_Order  there is a column whit name is ( in italian) Schema and in this i find MSSql1234

and i suppose this is the name of database but i see one thinks after i have run your last querry one new table is appear the name is mp_SystemLog and his schema is "dbo"

 

On the right side of the database manager (my little Admin for Sql) i see this MSSql48252.mp_AuthorizeNetLog and only for this tables  " dbo.mp_SystemLog"

I know I'm an absolute dummies  but hope to be helpfully

i take my beer and make a toast to you

You must sign in to post in the forums. This thread is closed to new posts.