If your system account is a domain based account then the credentials will not work.
A simple solution provided in this blog to create admin user via code
What version of Episerver are you installing, generally if 10+ you should be presented with a create new user screen on first load, ensure bootstrap:execute is set to true in AppSettings.
If pre 7, set the Roles and Membership providers to multiplexing, then locate the Episerver UI and Admin locations and add Everyone group to the allowed users (Web.config).
Thanks Minesh. Its the curent version 11. Yes, when I created an alloy project, it did prompt, but I just put dummy info as I was not planning to use this project. When I installed an empty project, I assumed that it would promt for new credentials for this project. From you description, I guess that as I dont have the credentials, and I dont have a local admin account, I am now locked out.
Is there a way to wipe everthing and start again so I can login to a new empty episerver project?
If you have database acess their is stored procedure to delete users, if that table is empty you should be given the prompt again to create a new user.
if you have code access look at the Register Controller and some quick modifications here should let you create new users programmatically
thanks Minesh. I have sql server and sql server management studio 18 installed, but when I open this, there are no databases. i am guessing that episerver is using some embeded database. Does anyone know how to access this database with some sort of UI based tool? If this was mySQL, I woudl just fire up mysql workbench or heidi sql and enter the port/user/pass, but for sqlserver express or whatever episerver is using, I have no idea how to access it to fix this issue unfortunately.
I got a bit further. I found the DB exporer in visual studio. However, I cant find the user to delete it. I see the following tables:
1) User. This is empty
2) tblSynchedUser. This has one row with the username of my local microsoft login whichi doesnt work.
3) Memberships. Empty
4) Roles. Empty
5) tblUserPermission has one row "Administrators".
6) usersInRoles. Empty
I cant find where the user is I have to delete to be able to move forward?
Also, I cant find the suggested stored procudure to delete users, althoug it wont help if I cant find the name of the user to delete?
This databaes is called EPiServerDB(mytestproj). Presumably this database is for my second project - the blank one. The first project I created was the alloy one, which would have the "lost" admin user details. So How does the mytestproj get the user setup in the alloyproject? This is what I dont get - I expected each project to have its own admin user, and for the new project to promt to create an admin user like the first one did.
Given that there is no solution, I am wondering if my only option is to reinstall windows? The problem is that this has to be done by the IT department, and this takes days. Is there some less drastic solution (e.g. some way to wipe the DBs completely and start again?)
Why don't you try the above link (in my last reply) to Create Episerver admin user by code? That is an easy fix to setup new admin user.
Create a new Empty database in SQL Server, update you connection string and run the Site.
This should now bootstrap with the New User screen.
Below are the steps to solver your problem if you do these exactly your login will work:
If you create a new empty project in visual studio, and hit "localhost:xxxx" you get "Server error in / Application" which is expected as you have not created a page yet. The online guide then tells you to hit: localhost:xxxx/episerver and login with your "Windows credentials". The web page shows "digital experience cloud" and asks for name and password. There is no forgot password option. I have tried my windows login which I use to login to the machine and it doestwork. How do I login?
for "name" i have tried "internal\first.last", "first.last", "first.last@myorg.com" etc. my actual windows login is just "first.last".
The response is always "Login failed"
I also notice that shortly after, it says "iisexpress.exe" has exited with code -1 (see below).
This is a brand new re-imaged machine which I instlaled the lastest VS code, episerver plugin, iis and ms sql server last week. Nothing else has been done to the machine - no other tools or config. Its windows 10 pro (with latest updates).
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Anonymously Hosted DynamicMethods Assembly'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Linq.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IO.Compression\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Browser Link\Microsoft.WebTools.BrowserLink.Tracing.dll'.
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Microsoft.GeneratedCode'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Tracing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Tracing.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Collections.Concurrent\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.Concurrent.dll'.
Exception thrown: 'EPiServer.Licensing.LicenseException' in EPiServer.Licensing.dll
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Microsoft.GeneratedCode'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll'.
Exception thrown: 'System.Web.HttpException' in System.Web.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml.Hosting\v4.0_4.0.0.0__31bf3856ad364e35\System.Xaml.Hosting.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\16e97345\f70c98fd\App_Web_login.aspx.e1633260.zudqi_6e.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\16e97345\f70c98fd\App_Theme_Default.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'.
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Microsoft.GeneratedCode'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll'.
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.SqlServer.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.SqlServer.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'EntityFrameworkDynamicProxies-System.Web.Providers'.
Exception thrown: 'System.Web.HttpException' in System.Web.dll
The thread 0x39a0 has exited with code 0 (0x0).
The thread 0x33ec has exited with code 0 (0x0).
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
The program '[21440] iisexpress.exe' has exited with code -1 (0xffffffff).