I am seeing a 503 error for a site just moved to shared hosting.
Have managed to get the following error information
Server Error in '/' Application.
The
SELECT permission was denied on the object 'umbracoUser', database 'justwater',
schema 'dbo'.
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:
The SELECT permission was denied on the object 'umbracoUser', database
'justwater', schema 'dbo'.
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): The SELECT permission was denied on the
object 'umbracoUser', database 'justwater', schema 'dbo'.]
Umbraco Exception (DataLayer): SQL helper exception in ExecuteReader
at umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText,
IParameter[] parameters) in
d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:line
246
at umbraco.BusinessLogic.User.setupUser(Int32 ID)
at umbraco.BusinessLogic.User.GetUser(Int32 id)
at umbraco.content.LoadContentFromDatabase(Boolean loadDocuments)
at umbraco.content.LoadContent()
at umbraco.content.get_XmlContentInternal()
at umbraco.content.get_XmlContent()
at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs
e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
0.162507804762896
0.017784
The hosting company is saying all the settings are correct, and have confirmed that the database connection string is correct.
Please double check the permission for database user. As error log you provide it's showing your dababase user "umbracouser" doesn't have select permission for your database.
Well, it definately is a permissions issue with sql server.
Have you tried to connect to the database with SQL Management Studio with the umbraco database user (the same as you have in web.config) and see what happens when you try to right click and select "Select top 1000 rows" on the "dbo.umbracoUser" table?
The error with the .NET4 version was application pool not being changed to .NET4.
The site is now working, but I am seeing an error in the media section of:
Method 'get_EnableCdn' in type 'System.Web.UI.ScriptManager' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. 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.TypeLoadException: Method 'get_EnableCdn' in type 'System.Web.UI.ScriptManager' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
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.
503 error on 4.0.3 site move
I am seeing a 503 error for a site just moved to shared hosting.
Have managed to get the following error information
Server Error in '/' Application.
The SELECT permission was denied on the object 'umbracoUser', database 'justwater', schema 'dbo'.
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: The SELECT permission was denied on the object 'umbracoUser', database 'justwater', schema 'dbo'.
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): The SELECT permission was denied on the object 'umbracoUser', database 'justwater', schema 'dbo'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +58
System.Data.SqlClient.SqlDataReader.get_MetaData() +112
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6281668
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +6282737
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +211
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +87
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) +125
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +194
umbraco.DataLayer.SqlHelpers.SqlServer.SqlServerHelper.ExecuteReader(String commandText, SqlParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelpers\SqlServer\SqlServerHelper.cs:77
umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:240
[SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteReader]
umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:246
umbraco.BusinessLogic.User.setupUser(Int32 ID) +205
umbraco.BusinessLogic.User.GetUser(Int32 id) +188
umbraco.content.LoadContentFromDatabase(Boolean loadDocuments) +211
umbraco.content.LoadContent() +83
umbraco.content.get_XmlContentInternal() +77
umbraco.content.get_XmlContent() +125
umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e) +1116
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnPreInit(EventArgs e) +11045870
System.Web.UI.Page.PerformPreInit() +42
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1256
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
Request Details
Session Id:
Request Type:
GET
Time of Request:
12/04/2011 21:51:43
Status Code:
500
Request Encoding:
Unicode (UTF-8)
Response Encoding:
Unicode (UTF-8)
Trace Information
Category
Message
From First(s)
From Last(s)
registerIapplications
+ Adding application 'umbraco.presentation.nodeFactory.UmbracoSiteMapProviderAccessUpdate
registerIapplications
+ Adding application 'Umbraco.Forms.Core.Services.WorkflowServiceApplication
0.0127711762249113
0.012771
aspx.page
Begin PreInit
0.137126925349451
0.124356
umbracoInit
handling request
0.144723421552181
0.007596
Unhandled Execution Error
Umbraco Exception (DataLayer): SQL helper exception in ExecuteReader
at umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:line 246
at umbraco.BusinessLogic.User.setupUser(Int32 ID)
at umbraco.BusinessLogic.User.GetUser(Int32 id)
at umbraco.content.LoadContentFromDatabase(Boolean loadDocuments)
at umbraco.content.LoadContent()
at umbraco.content.get_XmlContentInternal()
at umbraco.content.get_XmlContent()
at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
0.162507804762896
0.017784
The hosting company is saying all the settings are correct, and have confirmed that the database connection string is correct.
Any suggestions as to where to look?
Regards
TT
Hi
Please double check the permission for database user. As error log you provide it's showing your dababase user "umbracouser" doesn't have select permission for your database.
Thanks
Pnima
Hi Pasang
This is what I thought, but the hosts are saying this is not the case.
Am upgrading the website to 4.5.2 and will see what this does.
Many thanks
TT
Does the user "umbracoUser" have the following rights to the "justwater" database?
And could you check that this is not an issue with a case-sensitive username?
Hi Ove
I will ask the hosting company about this.
They have checked the settings with the hosting company and they have confirmed everything is correct.
Will let you know any reply/update.
Regards
TT
Have upgraded to 4.5.2 but am still seeing same error.
Runs on my server without a problem.
Any suggestions?
Regards
TT
Well, it definately is a permissions issue with sql server.
Have you tried to connect to the database with SQL Management Studio with the umbraco database user (the same as you have in web.config) and see what happens when you try to right click and select "Select top 1000 rows" on the "dbo.umbracoUser" table?
Hi Ove
That is good to hear, I had a feeling I was going mad.
I have tried but the server does not allow remote connections.
Will pass this onto the host and get them to have a look at what is happening.
I will also post the reply here if needed.
Thanks very much for the help.
Regards
TT
Hi Ove
The error with the .NET4 version was application pool not being changed to .NET4.
The site is now working, but I am seeing an error in the media section of:
Any suggestion?
Regards
TT
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is a .NET 3.5 assembly.
Sounds like you have references to .NET 3.5 assemblies in your web.config, but you are running on .NET 4.
Could you check if you have a line like this in your web.config (or any other things targeting "Version=3.5.0.0")?
If not, you need to fix your web.config.
You can download Umbraco 4.5.2 for .NET 4 from here:
http://umbraco.codeplex.com/releases/view/51165
Then do the following:
Hi Ove
Thank that worked for the backend, but the front end is not showing the Umbraco Configuration Wizard.
Running this causes a crash just after everything has been confirmed as OK with the database settings.
Is there a way of getting Umbraco to know it has already been installed?
Many thanks.
TT
Hi Ove
Forgot to copy the version.
Thanks for all you help with this.
Regards
TT
No problem :)
is working on a reply...