I'm having a go at installing V5.0 on a plesk server. I've uploaded the files, and I *think* i've got the permissions correct. But on first visit, I get..
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Cms.Web.System.PluginManager.Initialize() +128
[InvalidOperationException: The pre-application start initialization method Initialize on type Umbraco.Cms.Web.System.PluginManager threw an exception with the following error message: Object reference not set to an instance of an object..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423
System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
[HttpException (0x80004005): The pre-application start initialization method Initialize on type Umbraco.Cms.Web.System.PluginManager threw an exception with the following error message: Object reference not set to an instance of an object..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
I've gotten further now, It seems plesk overwrote my web.config
And I had to upload System.Web.Mvc.dll into my bin directory.
Plesk 10.3
Server 2008
.net 4.0.30319
IIS 7.5
Now I get to go through the install wizard, up until the point where I enter the admin user details. The I get the following exception:
Unable to obtain public key for StrongNameKeyPair.
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.ArgumentException: Unable to obtain public key for StrongNameKeyPair.
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.
I'm was also seeing problems with getting v5 running on shared hosting under Plesk. As per your situation the same hosting environment is also running multiple 4.7 sites without issue.
I had my v5 site running on a development machine and then did a publish and FTP to the shared hosting provider. In my case I had to manually push the following assemblies to the site's BIN folder:
Also had to give the web application user process rights to the App_data and App_Plugins folders. At that stage I wasn't certain what other folder permissions needed applying.
After making these changes the site ran up ok but refused to install and configure the SQL CE database that I wanted to to run with.
I got an AccessException getting logged in ~/App_Data/Logs/UmbracoTraceLog.txt
NHibernate.HibernateException: Could not create the driver from Umbraco.Framework.Persistence.NHibernate.OrmConfig.CustomSqlServerCe4Driver, Umbraco.Framework.Persistence.NHibernate, Version=5.0.310.16, Culture=neutral, PublicKeyToken=null. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Finally got the thing running by brute force application of Modify rights to the web application user. Now having to go through and work out what rights are actually required and where so that I can tighten the security up to a sensible level.
At least it shows that v5 will run under Plesk and shared hosting. If your still having problems feel free to get in touch.
Install Umbraco V5.0 on Plesk
Hi All,
I'm having a go at installing V5.0 on a plesk server. I've uploaded the files, and I *think* i've got the permissions correct. But on first visit, I get..
OK,
I've gotten further now, It seems plesk overwrote my web.config
And I had to upload System.Web.Mvc.dll into my bin directory.
Plesk 10.3
Server 2008
.net 4.0.30319
IIS 7.5
Now I get to go through the install wizard, up until the point where I enter the admin user details. The I get the following exception:
Unable to obtain public key for StrongNameKeyPair.
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.ArgumentException: Unable to obtain public key for StrongNameKeyPair.
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:
Here is UmbracoTraceLog.txt
I've found some info from other people having similar problems.. Although, not much to do with Ubuntu.
The consensus seems to be that I need to change my crypto key storage to user level by running the "sn.exe -m n".
Since this is shared hosting, and my only access is via plesk, this is not possible.
I have multiple Umbraco 4.7 sites running on the same host without any issues.
I'm still pulling my hair out over this.
Any one have some ideas on what I can try to get this working?
Or is there more information I need to provide to assist debug?
I'm was also seeing problems with getting v5 running on shared hosting under Plesk. As per your situation the same hosting environment is also running multiple 4.7 sites without issue.
I had my v5 site running on a development machine and then did a publish and FTP to the shared hosting provider. In my case I had to manually push the following assemblies to the site's BIN folder:
Microsoft.Web.Infrastructure.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.Razor.dll
System.Web.WebPages.dll
Also had to give the web application user process rights to the App_data and App_Plugins folders. At that stage I wasn't certain what other folder permissions needed applying.
After making these changes the site ran up ok but refused to install and configure the SQL CE database that I wanted to to run with.
I got an AccessException getting logged in ~/App_Data/Logs/UmbracoTraceLog.txt
NHibernate.HibernateException: Could not create the driver from Umbraco.Framework.Persistence.NHibernate.OrmConfig.CustomSqlServerCe4Driver, Umbraco.Framework.Persistence.NHibernate, Version=5.0.310.16, Culture=neutral, PublicKeyToken=null. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Finally got the thing running by brute force application of Modify rights to the web application user. Now having to go through and work out what rights are actually required and where so that I can tighten the security up to a sensible level.
At least it shows that v5 will run under Plesk and shared hosting. If your still having problems feel free to get in touch.
I just did a full, reinstall..
Delete all files and folders
Delete mysql 2008 database
Upload all files
Add the files you have mentioned into the bin folder
Modify web.config to add <customErrors mode="Off"/> so I can see the errors
change all files and folders to Full Access for the iis and application user
recreate empty msql 2008 database.
The install wizard comes up correctly
The database is modified correctly.
I enter in the details for the admin user, hit submit..
Bam..
Unable to obtain public key for StrongNameKeyPair
is working on a reply...