-
I have a testsite, lets call it oqtane.test.com release 5.2.3 I fill in this The new database is created but I cant access the new site. It is Blank no log. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 45 replies
-
This sounds like it may be an issue worth reporting. |
Beta Was this translation helpful? Give feedback.
-
@JanOlsmar it looks like this specific scenario (ie. creating a new site in a multi-tenant environment using an isolated database) may have been affected by the recent enhancements in 5.2.2 to support SecurityStamp: Oqtane.Repository.UserRoleRepository.UpdateSecurityStamp(Int32 userId) in C:\Source\Projects\oqtane.framework\Oqtane.Server\Repository\UserRoleRepository.cs:line 168 This method relies on the .NET Identity library - which appears to be throwing the DbContext exception. Perhaps the .NET Identity library is not using DbContextFactory (which is the recommended approach in Blazor). This will require more investigation. |
Beta Was this translation helpful? Give feedback.
-
@JanOlsmar I just tested this locally and I was not able to reproduce the error you encountered. One difference is that I was using LocalDB rather than a full SQL Server instance. However it would be helpful to understand if you encountered the error when running in Visual Studio - or on an IIS instance. |
Beta Was this translation helpful? Give feedback.
-
@thabaum the issue related to Installation on IIS #4667 has been resolved... however the issue of creating an additional Site with a separate Database(Tenant) which @JanOlsmar reported in this Discussion thread is unrelated, and still appears to be an issue (ie. I can reproduce it). I cannot reproduce this issue when running in Visual Studio (on IIS Express) so it is very confusing.
|
Beta Was this translation helpful? Give feedback.
-
I have done a couple of test of my original error IIS and Sql Server. I never use LocalDB on IIS. |
Beta Was this translation helpful? Give feedback.
-
@JanOlsmar are you saying that you got the latest code from the Dev branch (with the latest fix), compiled it, deployed it to an IIS instance, and you are still experiencing the problem? |
Beta Was this translation helpful? Give feedback.
-
FYI, the same also happens when trying to deploy in Azure (Web App + SQL Server) This is with the Install zip from version 5.2.3, so it's not possible to deploy that version in Azure. An urgent 5.2.4 release (that contains the mentioned fix) is required. |
Beta Was this translation helpful? Give feedback.
@JanOlsmar it looks like this specific scenario (ie. creating a new site in a multi-tenant environment using an isolated database) may have been affected by the recent enhancements in 5.2.2 to support SecurityStamp:
Oqtane.Repository.UserRoleRepository.UpdateSecurityStamp(Int32 userId) in C:\Source\Projects\oqtane.framework\Oqtane.Server\Repository\UserRoleRepository.cs:line 168
This method relies on the .NET Identity library - which appears to be throwing the DbContext exception. Perhaps the .NET Identity library is not using DbContextFactory (which is the recommended approach in Blazor). This will require more investigation.