When I Install 4.3 I get a blank page?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
Be sure you have .... "nopCommerce requires write permissions for the directories and files described below:

For nopCommerce versions 4.00 and above:

\App_Data\
\bin\
\log\
\Plugins\
\Plugins\bin\
\wwwroot\bin\
\wwwroot\bundles\
\wwwroot\db_backups\
\wwwroot\files\exportimport\
\wwwroot\images\
\wwwroot\images\thumbs\
\wwwroot\images\uploaded
\App_Data\Plugins.json (after installation)
\App_Data\dataSettings.json (after installation)
3 years ago
Has it created the database schema?

has it created a dataSettings.json file in App_Data? Is the connection string in there valid? or blank "" ?

I think i've seen this happen when it has created the file but with no connectionString set.

JonQuick wrote:
Does your IIS App Pool have NTFS write permissions to the nopCommerce folder? more specifically these locations



\App_Data\
\bin\
\log\
\Plugins\
\Plugins\bin\
\wwwroot\bin\
\wwwroot\bundles\
\wwwroot\db_backups\
\wwwroot\files\exportimport\
\wwwroot\images\
\wwwroot\images\thumbs\
\wwwroot\images\uploaded
\App_Data\Plugins.json (after installation)
\App_Data\dataSettings.json (after installation)

https://knowledgebase.progress.com/articles/Article/How-to-set-folder-permissions-for-a-site-that-uses-ApplicationPoolIdentity

Tried all this still a blank page database is there when I reload the page it takes me straight back to Installation
3 years ago
The data connection string is null
3 years ago
Ok, - If you have a blank database (no tables created), delete dataSettings.json and try Install again

jamesshannon wrote:
The data connection string is null
3 years ago
The tables are there

I am trying to enter the values manually.
3 years ago
it did not like it so must be putting it in wrong lol
3 years ago

{
"DataProvider": "sqlserver",
  "DataConnectionString": "Data Source=<YOUR-DATABASE-INSTANCE>;Initial Catalog=<YOUR-DATABASE-NAME>;Persist Security Info=False;User ID=<YOUR-DATABASE-USERNAME>;Password=<YOUR-DATABASE-PASSWORD>;MultipleActiveResultSets=True;Connect Timeout=30;Encrypt=True;TrustServerCertificate=True",
  "RawDataSettings": {}
}




You also need 2 back-slashes if for example its SERVERNAME\INSTANCENAME

jamesshannon wrote:
The tables are there

I am trying to enter the values manually.
3 years ago
That worked great but I may have to install again I get the following:

NopException: 'Guest' role could not be loaded
NopException: 'Guests' role could not be loaded
Nop.Services.Customers.CustomerService.InsertGuestCustomer() in CustomerService.cs
Nop.Web.Framework.WebWorkContext.get_CurrentCustomer() in WebWorkContext.cs
Nop.Web.Framework.WebWorkContext.get_WorkingLanguage() in WebWorkContext.cs
Nop.Web.Framework.Globalization.CultureMiddleware.SetWorkingCulture(IWebHelper webHelper, IWorkContext workContext) in CultureMiddleware.cs
Nop.Web.Framework.Globalization.CultureMiddleware.Invoke(HttpContext context, IWebHelper webHelper, IWorkContext workContext) in CultureMiddleware.cs
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+<>c__DisplayClass4_1.<UseMiddleware>b__2(HttpContext context)
Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Nop.Services.Installation.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in InstallUrlMiddleware.cs
Nop.Services.Common.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in KeepAliveMiddleware.cs
Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

So I guess it did not do it right.

Will delete database and start again.
s
3 years ago
Yep. Start with a blank db, delete the datasettings.json.  When it's installing give it plenty of time even if screen goes blank/timeout etc. maybe wait 5-10 mins before refreshing or restarting app pool.  Even after restart, be patient as I think it runs a lot of db creation stuff after the restart which you don't want to interrupt

jamesshannon wrote:
That worked great but I may have to install again I get the following:

NopException: 'Guest' role could not be loaded
NopException: 'Guests' role could not be loaded
Nop.Services.Customers.CustomerService.InsertGuestCustomer() in CustomerService.cs
Nop.Web.Framework.WebWorkContext.get_CurrentCustomer() in WebWorkContext.cs
Nop.Web.Framework.WebWorkContext.get_WorkingLanguage() in WebWorkContext.cs
Nop.Web.Framework.Globalization.CultureMiddleware.SetWorkingCulture(IWebHelper webHelper, IWorkContext workContext) in CultureMiddleware.cs
Nop.Web.Framework.Globalization.CultureMiddleware.Invoke(HttpContext context, IWebHelper webHelper, IWorkContext workContext) in CultureMiddleware.cs
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+<>c__DisplayClass4_1.<UseMiddleware>b__2(HttpContext context)
Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Nop.Services.Installation.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in InstallUrlMiddleware.cs
Nop.Services.Common.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in KeepAliveMiddleware.cs
Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

So I guess it did not do it right.

Will delete database and start again.
s
3 years ago
Thanks for all your help

I will let you kmow how I get on
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.