https://discord.umbraco.com
Join Discord
AmbientContext error when trying to use ConentService within a Hangfire task
w

Wiggy

over 1 year ago
Has anyone come across this error before?
System.AggregateException: One or more errors occurred. (No AmbientContext was found.) ---> System.InvalidOperationException: No AmbientContext was found.    at Umbraco.Cms.Infrastructure.Scoping.AmbientScopeContextStack.Pop()    at Umbraco.Cms.Infrastructure.Scoping.ScopeProvider.PopAmbientScopeContext()    at Umbraco.Cms.Infrastructure.Scoping.Scope.<>c__DisplayClass100_0.<RobustExit>g__HandleScopeContext|2()    at Umbraco.Cms.Infrastructure.Scoping.Scope.TryFinally(Action[] actions)    --- End of inner exception stack trace ---    at Umbraco.Cms.Infrastructure.Scoping.Scope.TryFinally(Action[] actions)    at Umbraco.Cms.Infrastructure.Scoping.Scope.RobustExit(Boolean completed, Boolean onException)    at Umbraco.Cms.Infrastructure.Scoping.Scope.DisposeLastScope()    at Umbraco.Cms.Infrastructure.Scoping.Scope.Dispose()    at Umbraco.Cms.Infrastructure.Examine.ExamineUmbracoIndexingHandler.DeferedReIndexForContent.<>c__DisplayClass6_0.<Execute>b__0(CancellationToken cancellationToken)    at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.BackgroundProcessing(CancellationToken stoppingToken)
Trying to run a Hangfire task to update a node with the ContentService. Have tried a million things regarding scopes etc.
w
s
j
  • 3
  • 41
  • 202
Get CMS Culture
y

Yasein H. Burqan

almost 2 years ago
How can I Get CMS Culture by code? I want to get the current language that is the user work in by C# like : if user work on English get English if user work on French get French ...etc ?
y
r
j
  • 3
  • 8
  • 202
Recommended plugin for cookie managment?
m

Matthew Alexandros

over 1 year ago
I live in the US but am looking to run google adsense ads on my site and my understanding is they require me to be GDPR and CCPA compliant which means I need some way to let users op-in to the google cookies. I don't know much about these things so I was wondering what is a good, free, plugin for Umbraco 13 people are using to handle cookie compliance? Idealy it would work with UmbForms too as I will need to make a contact page some day.
m
d
+3
  • 5
  • 19
  • 201
SQL Timeout's & Locks
i

Ian Houghton

10 months ago
We have both a V8 & V13 website running on Azure appservice which is Plan S1 and Azure SQL Server S0 / 10 DTU's. The site has about 50k+ nodes in the tree. We're seeing a huge amount of SQL timeouts and locks, which we're trying to resolve. What specification of appservice & SQL database's do other people use? The database is setup with DTU based pricing, should we be using a v-core based database? We've followed the recommended Azure setup here: https://docs.umbraco.com/umbraco-cms/13.latest/fundamentals/setup/server-setup/azure-web-apps
i
k
+6
  • 8
  • 33
  • 200
[SOLVED] Need Help with Microsoft Entra ID Authentication for Members in Umbraco 13.5.2
o

Olti

11 months ago
Hi everyone, I’m trying to implement Microsoft Entra ID Authentication for Members in an Umbraco CMS project following this official guide: [Add Microsoft Entra ID Authentication.](https://docs.umbraco.com/umbraco-cms/13.latest/tutorials/add-microsoft-entra-id-authentication?fallback=true) Here’s my setup: - Umbraco Version: 13.5.2 (.NET 8) - uSkinned Site Builder: 6.1.2 (though I believe it shouldn’t matter here). What I’ve done so far:
o
k
+2
  • 4
  • 72
  • 199
v13 Best way to transform External Index properties
h

Hooky

about 1 year ago
Hi all 👋 I'm currently migrating a solution up to v13 from v8. It previously had a custom index for dealing with some products which had some custom values in that index. We're trying to remove this custom index and just rely on the ExternalIndex as is recommended however we would still like to include/transform the custom values. What/how/where is the best place to do this? Can I just create an IndexPopulator and amend the external index that way and if so is this just a composer I'd need to register in order for it to work or should it be attached to a Notification handler for example. How does a custom index populator behave in relation to the default OOTB one (will it run after)? Any help or advice would be great
h
d
j
  • 3
  • 11
  • 198
Skybrud Redirects (Umbraco v13) - static file / media based redirect rules not triggering
n

Nik

over 1 year ago
Has anyone seen static file redirects not triggering with SkyBrud? Working on a site that has been migrated to v13 (originally v7 => v8, now v13). Skyrbud was installed back in the v8 days and has a large amount of redirects in it, however all of the ones that seem to be for static files / media items (i.e. end in a file extension) are not triggering, If the file extension is removed in the redirect rule and from the requested URL they trigger. I'm not really sure where to start my investigation with this, so looking for some pointers.
n
j
a
  • 3
  • 8
  • 197
[Solved] PDF Generator
c

Craig100

over 1 year ago
Is there a decent PDF generator for Umbraco that works with V13? I've tried the WebWonders one but it won't install and looks like it hasn't been updated in a long while.
c
d
+5
  • 7
  • 83
  • 197
How to redirect azurewebsites.net domain when hosting as an Azure Web app?
t

TackleMcClean 🏅

over 1 year ago
Setting up a .NET web app on Azure nets you an automatic `projectname.azurewebsites.net`domain. But you might also opt for setting up a custom domain. Doing so you probably want all your traffic to go to the custom domain, effectively redirecting all requests to the automatically assigned azurewebsites domain to your custom domain. How would you go about setting this up? Years ago one would use the web.config file. Is this possible to use in modern .NET Core contexts? My limited knowledge on this says that web.config is for IIS servers, while newer solutions - inlucing Umbraco - use the Kestrel server.
t
m
+3
  • 5
  • 14
  • 197
How do i authenticate to the Content Delivery API with Swagger or Postman
n

Navorski

over 1 year ago
Can someone help me on my way? I created an API, an UmbracoApiController, with the [UmbracoMemberAuthorize] attribute. I Configured swagger to be able to authorize Everything seems to be in place and to work. But how do i authenticate with Swagger, or with Postman, or whatever? when i go to https://localhost/umbraco/swagger, i can see the swagger api, and when i want to authenticate, i have to fill in a client_id and a client_secret. But i have no idea where to get those? https://cdn.discordapp.com/attachments/1242595241077375058/1242595241219850310/image.png?ex=664e687f&is=664d16ff&hm=725f3c4adc068b9f71b6a1a0688cf566f11aabbd9de24c86de6bb9a52b3f319d&
n
d
+2
  • 4
  • 8
  • 197
Previous121314Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by