Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "Astech"

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? ASP.NET Zero v10.4.0
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? . NET Core

If issue related with ABP Framework

  • What is ABP Framework version? 7.3.0

<br> Hi,

We are experiencing an issue with the Recent Notifications box whereby clicking "Set all as read" does not set notifications to read.

In this example, there are 47 notifications as you can see:-

The code in question is contained in the following folder/file: "Web.Mvc\wwwroot\view-resources\Areas\App\Views\Layout\_Header.js".  When the code is debugged and "Set all as read" is clicked, the execution stops at the breakpoint here:-

Stepping the execution on using F11, the code from line 142 onwards is never executed and consequently the notifications are never set to read.

We haven't modified the original code.

Could you advise please?

Many thanks,

Roger

Having just upgraded to ABP 7.3.0 running Zero version 10.4.0 getting the following error when trying to run tests on the solution. Anyone any ideas?:

We are using the UserFriendlyException to notify users that they have reached the user limit for their edition:

throw new UserFriendlyException(L("MaximumUserCount_Error_Message"), L("MaximumUserCount_Error_Detail", maxUserCount));

This results in the following:

We would like to add a second button next to OK that takes the user to the Upgrade page. How can we customise this functionality?

Many thanks

Running Zero version 10.4.0 MVC Core and getting the following error on every page. It is coming out of view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js Has anyone any ideas? Thanks

V10.4.0 - MVC - NET CORE

node v16.14.2 yarn v.2.4.0 npm v8.5.5

running npm run create-bundles generates the following error:

C:\Repos\Congresso\src\Congresso.Web.Mvc>npm run create-bundles

[email protected] create-bundles yarn && gulp buildDev

npm ERR! code ENOENT npm ERR! syscall spawn bash npm ERR! path C:\Repos\Congresso\src\Congresso.Web.Mvc npm ERR! errno -4058 npm ERR! enoent spawn bash ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\JRadu\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log

LOG:

0 verbose cli [ 0 verbose cli 'C:\Program Files\nodejs\node.exe', 0 verbose cli 'C:\Users\\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js', 0 verbose cli 'run', 0 verbose cli 'create-bundles' 0 verbose cli ] 1 info using [email protected] 2 info using [email protected] 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:C:\Users*\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 1ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:C:\Repos\Congresso\src\Congresso.Web.Mvc.npmrc Completed in 0ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:C:\Users*.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users*\AppData\Roaming\npm\etc\npmrc Completed in 0ms 14 timing config:load:global Completed in 1ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 1ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 12ms 19 timing npm:load:configload Completed in 12ms 20 timing npm:load:setTitle Completed in 0ms 21 timing config:load:flatten Completed in 2ms 22 timing npm:load:display Completed in 4ms 23 verbose logfile C:\Users*\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log 24 timing npm:load:logFile Completed in 51ms 25 timing npm:load:timers Completed in 0ms 26 timing npm:load:configScope Completed in 1ms 27 timing npm:load Completed in 70ms 28 silly logfile start cleaning logs, removing 2 files 29 timing command:run Completed in 13ms 30 verbose stack Error: spawn bash ENOENT 30 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) 30 verbose stack at onErrorNT (node:internal/child_process:478:16) 30 verbose stack at processTicksAndRejections (node:internal/process/task_queues:83:21) 31 verbose pkgid [email protected] 32 verbose cwd C:\Repos\Congresso\src\Congresso.Web.Mvc 33 verbose Windows_NT 10.0.19042 34 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "create-bundles" 35 verbose node v16.14.2 36 verbose npm v8.5.5 37 error code ENOENT 38 error syscall spawn bash 39 error path C:\Repos\Congresso\src\Congresso.Web.Mvc 40 error errno -4058 41 error enoent spawn bash ENOENT 42 error enoent This is related to npm not being able to find a file. 42 error enoent 43 verbose exit -4058 44 timing npm Completed in 463ms 45 verbose code -4058 46 error A complete log of this run can be found in: 46 error C:\Users***\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log

The mvc bundles.json:

https://pastebin.com/nngCz8s7

V10.4.0 - MVC - NET CORE

File: {.Core Project}/Notifications/AppNotifier.cs

Whenever any of the calls to PublishAsync are being run in this class (including the out of the box ones like NewTenantRegisteredAsync), we are getting the following error in the browser console:

Anyone any ideas? Thanks

Prerequisites

  • What is your product version? 10.4.0
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .Net Core

Hi,

I am having trouble getting the Xamarin Signalr hub connection working. Please find all the details below:

SplashActivity.cs StartApplication:

DebugServerIpAddresses.Current = "192.168.0.22";

App.xaml.cs OnStart:

HubConnection = new HubConnectionBuilder() .WithUrl("http://" + DebugServerIpAddresses.Current + ":44301/signalr-document-conversion", (opts) => { opts.HttpMessageHandlerFactory = (message) => { if (message is HttpClientHandler clientHandler) // bypass SSL certificate clientHandler.ServerCertificateCustomValidationCallback += (sender, certificate, chain, sslPolicyErrors) => { return true; }; return message; };

}).ConfigureLogging(logging => { logging.SetMinimumLevel(LogLevel.Debug); logging.AddConsole(); logging.AddDebug(); }).Build();

MVC Startup:

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapHub&lt;AbpCommonHub&gt;("/signalr");
            endpoints.MapHub&lt;ChatHub&gt;("/signalr-chat");
            endpoints.MapHub&lt;AgendaHub&gt;("/signalr-agenda");
            endpoints.MapHub&lt;MinuteHub&gt;("/signalr-minute");
            endpoints.MapHub&lt;DocumentHub&gt;("/signalr-document-conversion");

            endpoints.MapControllerRoute("defaultWithArea", "{area}/{controller=Home}/{action=Index}/{id?}");
            endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");

            if (bool.Parse(_appConfiguration["HealthChecks:HealthChecksEnabled"]))
            {
                endpoints.MapHealthChecks("/health", new HealthCheckOptions()
                {
                    Predicate = _ => true,
                    ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
                });
            }
			
			app.ApplicationServices.GetRequiredService&lt;IAbpAspNetCoreConfiguration&gt;().EndpointConfiguration.ConfigureAllEndpoints(endpoints);
        });

Exception:

09-14 15:12:00.069 I/mono-stdout( 3758): dbug: Microsoft.AspNetCore.SignalR.Client.HubConnection[40] 09-14 15:12:00.069 I/mono-stdout( 3758): Registering handler for client method 'DocumentReordered'. 09-14 15:12:00.072 I/mono-stdout( 3758): dbug: Microsoft.AspNetCore.SignalR.Client.HubConnection[40] 09-14 15:12:00.072 I/mono-stdout( 3758): Registering handler for client method 'DocumentStatusChanged'. 09-14 15:12:00.076 I/mono-stdout( 3758): dbug: Microsoft.AspNetCore.SignalR.Client.HubConnection[41] 09-14 15:12:00.076 I/mono-stdout( 3758): Starting HubConnection. 09-14 15:12:00.081 I/mono-stdout( 3758): dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[1] 09-14 15:12:00.081 I/mono-stdout( 3758): Starting HttpConnection. 09-14 15:12:00.084 I/mono-stdout( 3758): dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[8] 09-14 15:12:00.084 I/mono-stdout( 3758): Establishing connection with server at 'http://192.168.0.22:44301/signalr-document-conversion'. 09-14 15:12:00.094 V/ViewRootImpl( 3758): The specified message queue synchronization barrier token has not been posted or has already been removed 09-14 15:12:00.108 D/DecorView( 3758): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@7c425ad[MainActivity] 09-14 15:12:00.123 D/OnePlusJankManager( 3758): Chor uploadMDM JANK_TYPE_ONCE mViewTitle = com.Congresso.Mobile/crc64fd27f5768c743714.MainActivity--- jank level = 2 09-14 15:12:00.129 I/mono-stdout( 3758): fail: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[10] 09-14 15:12:00.129 I/mono-stdout( 3758): Failed to start connection. Error getting negotiation response from 'http://192.168.0.22:44301/signalr-document-conversion'. 09-14 15:12:00.129 I/mono-stdout( 3758): System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.IO.IOException: The server returned an invalid or unrecognized response. 09-14 15:12:00.129 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.FillAsync () [0x0016e] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:1360 09-14 15:12:00.129 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (System.Boolean foldedHeadersAllowed) [0x00259] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:1307 09-14 15:12:00.129 I/mono-stdout( 3758): at System.Threading.Tasks.ValueTask1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.SendAsyncCore (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00d54] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:568 09-14 15:12:00.130 I/mono-stdout( 3758): --- End of inner exception stack trace --- 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.SendAsyncCore (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x012d9] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:743 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync (System.Net.Http.HttpConnection connection, System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x000e6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:330 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00101] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:296 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:32 09-14 15:12:00.130 I/mono-stdout( 3758): at Microsoft.AspNetCore.Http.Connections.Client.Internal.AccessTokenHttpMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ff] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 09-14 15:12:00.130 I/mono-stdout( 3758): at Microsoft.AspNetCore.Http.Connections.Client.Internal.LoggingHttpMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00095] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:531 09-14 15:12:00.130 I/mono-stdout( 3758): at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync (System.Uri url, System.Net.Http.HttpClient httpClient, Microsoft.Extensions.Logging.ILogger logger, System.Threading.CancellationToken cancellationToken) [0x0014a] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 09-14 15:12:00.142 I/mono-stdout( 3758): dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[5] 09-14 15:12:00.142 I/mono-stdout( 3758): Skipping dispose, connection is already disposed. 09-14 15:12:00.162 I/mono-stdout( 3758): dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[5] 09-14 15:12:00.162 I/mono-stdout( 3758): Skipping dispose, connection is already disposed.

Hi,

I'm trying to get a Signalr Client Hubconnection working on Xamarin but only receiving timeouts.

The Hubconnection works fine on the web application:

Information: Normalizing '/signalr-document-conversion' to 'https://localhost:44302/signalr-document-conversion'. WebSocket connected to wss://localhost:44302/signalr-document-conversion?id=b8_kizi_mCESajbklz7pyQ.

The Xamarin code:

` try { HubConnection = new HubConnectionBuilder() .WithUrl("https://192.168.0.22:44302/signalr-document-conversion" ).ConfigureLogging(logging => { logging.SetMinimumLevel(LogLevel.Debug); logging.AddConsole(); logging.AddDebug(); }) .Build();

            HubConnection.On<int, int>("DocumentReordered", (documentId, newOrderIndex) =>
            {
                Console.WriteLine("TEST");
            });

            HubConnection.On<int, string, string, string>("DocumentStatusChanged", (documentId, status, fileName, fileTypeImageName) =>
            {
                Console.WriteLine("TEST");
            });

            await HubConnection.StartAsync();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex);
        }

`

The log

` 08-03 12:46:59.476 I/mono-stdout(13938): Starting HubConnection. dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[1] Starting HttpConnection. 08-03 12:46:59.481 I/mono-stdout(13938): dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[1] 08-03 12:46:59.481 I/mono-stdout(13938): Starting HttpConnection. [0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Debug: Starting HttpConnection. dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[8] 08-03 12:46:59.493 I/mono-stdout(13938): dbug: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[8] Establishing connection with server at 'https://192.168.0.22:44302/signalr-document-conversion'. 08-03 12:46:59.493 I/mono-stdout(13938): Establishing connection with server at 'https://192.168.0.22:44302/signalr-document-conversion'. [0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Debug: Establishing connection with server at 'https://192.168.0.22:44302/signalr-document-conversion'. 08-03 12:46:59.537 V/ViewRootImpl(13938): The specified message queue synchronization barrier token has not been posted or has already been removed 08-03 12:46:59.565 D/DecorView(13938): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@5231d85[MainActivity] fail: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[10] Failed to start connection. Error getting negotiation response from 'https://192.168.0.22:44302/signalr-document-conversion'. System.Net.Http.HttpRequestException: Connection timed out ---> System.Net.Sockets.SocketException: Connection timed out at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x000c8] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:65 --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00180] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/Sock 08-03 12:47:24.563 I/mono-stdout(13938): fail: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[10]etsHttpHandler/ConnectHelper.cs:84 at System.Threading.Tasks.ValueTask1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ea] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:385 at System.Threading.Tasks.ValueTask1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask1[TResult] creationTask) [0x000a2] in /Users/builder/jenkins/w

08-03 12:47:24.563 I/mono-stdout(13938): Failed to start connection. Error getting negotiation response from 'https://192.168.0.22:44302/signalr-document-conversion'.orkspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:543 at System.Threading.Tasks.ValueTask1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x0003f] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:284 at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net

`

The Xamarin app is being run from a phone and the webhost is on a pc. I'm able to connect to all the other services from the phone just fine.

Prerequisites What is your product version? - v10.0.0 What is your product type (Angular or MVC)? - MVC What is product framework type (.net framework or .net core)? - Core

Hi,

We are using string format to join two or more localisations together. For example:

<?xml version="1.0" encoding="utf-8" ?> <localizationDictionary culture="en"> <texts> <text name="CreateNewSomething">Create new {0}</text> <text name="Role">Role</text> <text name="OrganisationUnit">Organisation Unit</text> </texts> </localizationDictionary>

We are then using it these in our views like so: string.Format(@L("CreateNewSomething"),@L("Role").ToLower())

This works great. However, we have now run into a problem trying to set the text for permissions in AppAuthorizationProvider.cs: roles.CreateChildPermission(AppPermissions.Pages_Administration_Roles_Create, L("CreatingNewRole"));

The second parameter here expects ILocalizableString and not String. Therefore we cannot do a string format in the same way as above.

Is there a way to do this please?

Thanks,

Prerequisites

  • What is your product version? - v10.0.0
  • What is your product type (Angular or MVC)? - MVC JQuery
  • What is product framework type (.net framework or .net core)? - Core

We have the following background job:

class BuildAgendaJob : ITransientDependency
{
	private readonly IAppNotifier _appNotifier;
	private readonly IAgendasAppService _agendasAppService;
	private readonly IDocumentsAppService _documentsAppService;
	private readonly IHubContext<BuildProgressHub> _buildProgressHub;
	private readonly IAbpSession _session;
	private readonly IRepository<Agenda> _agendaRepository;
	private readonly IUnitOfWorkManager _unitOfWorkManager;

	public BuildAgendaJob(IAppNotifier appNotifier,
							IAgendasAppService agendasAppService,
							IHubContext<BuildProgressHub> buildProgressHub,
							IAbpSession session,
							IRepository<Agenda> agendaRepository,
							IDocumentsAppService documentsAppService,
							IUnitOfWorkManager unitOfWorkManager)
	{
		_appNotifier = appNotifier;
		_agendasAppService = agendasAppService;
		_buildProgressHub = buildProgressHub;
		_session = session;
		_agendaRepository = agendaRepository;
		_documentsAppService = documentsAppService;
		_unitOfWorkManager = unitOfWorkManager;
	}

	public async Task BuildAgenda(BuildAgendaJobArgs args, CancellationToken token)
	{
		using (var uow = _unitOfWorkManager.Begin())
		{
			// Set tenant Id
			_unitOfWorkManager.Current.SetTenantId(args.TenantId);

			// Run the job with the same permissions as the person that started it
			using (_session.Use(args.TenantId, args.UserId))
			{
				try
				{
					await _agendasAppService.AddAgendaDocument(
						new AddAgendaDocumentDto
						{
							AgendaId = args.AgendaId,
							FileName = "Agenda.docx",
						});

					//Notify the UI
					await _buildProgressHub.Clients.All.SendAsync("AgendaBuildFinished" + args.AgendaId);

					// Notify the user
					AsyncHelper.RunSync(() => _appNotifier.AgendaBuiltAsync(args));
				}
				catch (OperationCanceledException)
				{
					await _buildProgressHub.Clients.All.SendAsync("AgendaBuildFinished" + args.AgendaId);
					return;
				}
				catch (Exception ex)
				{
					//TODO
				}
			}
		}
	}
}

<br> As you can see above, it calls:

_agendasAppService.AddAgendaDocument

Which inserts the new record into the database. It appears to be working as in that method it returns the next available id in the database after its insert. However, the database does not get updated. Is as if the code has inserted the record but it has not pushed the changes to EF/database.

I have attempted to add: <br>

await _unitOfWorkManager.Current.SaveChangesAsync();

at the end of the background job however the record does still not get pushed to the database.

Am I missing something? Usually the app service will push any changes to the dbcontext automatically. Why is this not the case here?

Thanks

Showing 11 to 20 of 26 entries