Hi,
Thank you for the link. Seems like all the action happens on Github.
I managed to log in on FireFox which is quite interesting. Ill clear all my cookies etc on chrome and have a look.
Another issue I encountered now is in the editions. The config for Paid side does not save at all.
Is the paid side functionality supposed to be default for the template or is it a self-implementation item? (from what I understand it should be included but would just like to confirm?)
Hi, Download works fine now.
The project, however, does give this error in 5.0.2 when trying to update-database which did not occur in 5.0.1:
System.Exception: Could not find content root folder! at BMS.Web.WebContentDirectoryFinder.CalculateContentRootFolder() at BMS.EntityFrameworkCore.BMSDbContextFactory.CreateDbContext(String[] args) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContextFromFactory(Type factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.<>c__DisplayClass14_0.<FindContextFactory>b__1() at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func`1 factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType) at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabaseImpl(String targetMigration, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) Could not find content root folder!
Hi,
I don't want to hijack the thread but are you guys still on schedule with the release this week. I have quite a few clients interested in this release but the delays are making them a bit edgy.
I know it is a lot of work that you guys need to do, so just an update now and then would be cool.
Thank you!
Hi,
Any update on this error by chance?
Regards Gideon Badenhorst
Thanks,
Will do so. thought it might be the way the template structure works or something in that line.
Hi,
The import of the following worked for me including the suggested DataTabbleModule:
main.module.ts: import { DataTableModule } from 'primeng/primeng'; import { PaginatorModule } from 'primeng/primeng';
and the adding it to the ngmodule imports.
Thank you!
Regards, Gideon Badenhorst
Good morning,
Apologies for the late reply.
We use standard IIS hosting.
I will be at my client again during this week and will share the details as soon as i can.
Is there a way to use these templates without CORS?
Regards, Gideon Badenhorst
Hi,
It seems like i was wrong.
PublicIP:22742//api/services/app/OrganizationUnit/DeleteOrganizationUnit?Id=2&:1 DELETE <a class="postlink" href="http://PublicIP:22742//api/services/app/OrganizationUnit/DeleteOrganizationUnit?Id=2&">http://PublicIP:22742//api/services/app ... Unit?Id=2&</a> 405 (Method Not Allowed) organization-units:1 XMLHttpRequest cannot load
<a class="postlink" href="http://PublicIP:22742//api/services/app/OrganizationUnit/DeleteOrganizationUnit?Id=2&">http://PublicIP:22742//api/services/app ... Unit?Id=2&</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://PublicIP:4200' is therefore not allowed access. The response had HTTP status code 405.
I tried to do an updated and the CORS still gives problems.
Regards, Gideon Badenhorst
Hi,
Sorry for only getting back now.
The SQL version is: SQL Server R2 2008. I have found out however that some features are not supported by the 2008 such as Take and Skip. This was what caused the 500 Error.
I moved the database to a hosting company instead of at the client self.
By the looks of it the CORS problem has been solved also. it was something with the IP config and slashes as you mention.
Now that i have the hosting sorted with a base template i will be moving my content to it and hopefully not encounter more issues xD
Thank you very much for all the assistance.
Regards, Gideon Badenhorst.
Hi,
Yes i am currently having a problem with the Angular connection to the API.
I have read through the posts on the site and most of the CORS related posts are mainly focused on the way the addresses are posted in the config.
Attached there are 2 different types of issues i get only on deployed version and not when i debug.
CORS issue is one of the big ones as it blocks me from deleting. I can however still do a GET on most things but there are some that give 500 errors as shown in the second attachment.
I can create documents and get those documents that i created also without and issue. So far only my one process Stock movements and some standard things that comes with the template are giving the 500 error. technically there should not be any 500 errors from only certain items of the base template.
I also hosted a standard blank template without any changes on it and still receive the 500 errors. on the audit log it links up this as the error is this something that is incorrect on template as i am yet to change anything:
System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near 'OFFSET'.
Invalid usage of the option NEXT in the FETCH statement.
at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__174_0(Task1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask
2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.<ExecuteAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.<BufferlessMoveNext>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.<ExecuteAsync>d__6`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.
Is there something that i might be doing wrong as the application should already be CORS enabled and should not require further config for that except for the addresses specified in config?
Below is my address config in appconfig.json and appsettings. json: appsettings.json: "Abp": { "RedisCache": { "ConnectionString": "localhost", "DatabaseId": -1 } }, "App": { "ServerRootAddress": "https://127.0.0.1:22742", "ClientRootAddress": "https://127.0.0.1:4200/", "CorsOrigins": "https://127.0.0.1:4200/,https://127.0.0.1:22742" }, AppConfig.json { "remoteServiceBaseUrl": "https://127.0.0.1:22742", "appBaseUrl": "https://127.0.0.1:4200/" }
Is there another part of unmentioned config that might need to be done on the server or is it maybe something that is beign done wrong app related?
My hosting is done on a Windows 10 PC and the publicIP:Port routes everything to that pc relating to the above ports.
Thank you.