I searched all of my download versions of "ASP.NET Core & Angular". There is NO "Tools" folder.
On version 3.2, I found out a Migrator.exe under aspnet-core/src/migrator/bin/debug/net461. In all other download version, there is NO Migrator.exe.
Can you search it on your side, and give out a FULL path?? It should just take your several seconds.
The link directs me to Development-Guide under "ASP.NET Core MVC & JQuery". I am using " ASP.NET Core & Angular" version, and can't find "Migrator.exe". Can you tell me the full path of this program in " ASP.NET Core & Angular" version?
Thanks! I tried with another existing DB. It connected and created a new tenant with that dedicated database. It looks like just copy all schema from Host database onto that Tenant's database, although some tables are not necessorary (e.g. AbpTenant), I think.
Now the new question, how do I use that tanent's database to add new DbContext? For example, I need to add an entity, and want the table created on that tenant's database. Do you have an instruction or a code example to explain how to do it?
Thanks,
I am trying to create a new tenant with its own dedicated database, but always get "internal error" while saving that tenant. Here is how I did:
I tried to do it without such database (expect to get migration class and automatically generate Tenant1Db). It apparely does not works in that way.
I tried to manually make a blank database and name it as "Tenant1Db", before create the new tenant, but it still throws exception.
From the logs.txt, the ERROR is: System.Data.SqlClient.SqlException (0x80131904); A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
I am stuck here. Where can I get a step-by-step instruction to create a new tenant with its own dedicated database?
Thanks,
I tried it with Edge and Chrome and get different errors as screen shot here:
I checked Web.Public/App_Data/Logs.txt. There is no "ERROR", but some "INFO" looks like error 404. Here are several lines for excample.
INFO 2018-11-05 12:48:42,937 [16 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:45776/lib/fancyBox/source/jquery.fancybox.css
INFO 2018-11-05 12:48:42,940 [12 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:45776/lib/owl.carousel/dist/assets/owl.carousel.css
INFO 2018-11-05 12:48:42,944 [26 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:45776/Common/_Bundles/common-styles.css
INFO 2018-11-05 12:48:42,950 [12 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 13.0063ms 404
INFO 2018-11-05 12:48:42,950 [26 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 6.0922ms 404
INFO 2018-11-05 12:48:42,950 [16 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 13.0096ms 404
Sudenly, I got an exception as following for my verion 6 (both of 6.1.0 and 6.2.1). It was running good yesterday.
Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException
HResult=0x80131500
Message=IDX10223: Lifetime validation failed. The token is expired. ValidTo: '[PII is hidden by default. Set the 'ShowPII' flag in IdentityModelEventSource.cs to true to reveal it.]', Current time: '[PII is hidden by default. Set the 'ShowPII' flag in IdentityModelEventSource.cs to true to reveal it.]'.
Source=Microsoft.IdentityModel.Tokens
StackTrace:
at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable1 notBefore, Nullable
1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateLifetime(Nullable1 notBefore, Nullable
1 expires, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
at SNet.Web.Authentication.JwtBearer.SNetJwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken) in C:\dev\SNet\aspnet-core\src\SNet.Web.Core\Authentication\JwtBearer\SNetJwtSecurityTokenHandler.cs:line 36
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleAuthenticateAsync>d__6.MoveNext()
Please advise.
There is no package.json in * .Web.Public folder. Here is the error while running npm run create-bundles:
npm ERR! path ...Web.Public\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '...Web.Public\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
Understand. Thanks!
My GitHub user is on that page as I just checked. There are two of my usernames there. Anyway, I just tried again and download it succeed.
I have no idea about "create bundles". Can you explain more?
For preiours version (v5.0) I just run public project as I described above.