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
  • 200
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
  • 199
[Solved] UmbracoApplicationUrl
o

Owain Jones

almost 2 years ago
After reading the 24 days article https://24days.in/umbraco-cms/2023/runtime-modes/, I decided to go through our client environments and implement the runtime modes, which necessitates setting the `UmbracoApplicationUrl `app setting. But I have a question, if I have a load balanced setup (1 backoffice edit app which is locked behind Azure AD, and 2 public frontend apps which sit under Azure Application Gateway), what URL do I set `UmbracoApplicationUrl `to? Would it be the public domain, or the domain of the backoffice edit app? (Note: /Umbraco is redirected to a 404 on the public domain)
o
k
m
  • 3
  • 5
  • 198
[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 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
  • 196
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
  • 195
Retrieving multiple content types with the delivery api (newbie question)
u

_tommadden

about 1 year ago
TLDR; is there a content delivery api cheatsheet (not the docs) like Seb did back in the Razor days? I'm struggling how to find the best way to get a page and it's children (for a listing page) in a single api call. I can see how to get the children on their own. In my case I have a content type for the listing page and one for the child types, so I thought I'd try that way, but I can't figure out how to pass in multiple types. I've tried reading the docs and tried several ways to do this in Swagger, but with no success. My last resort will be to get all content and restrict the fields I return, but I thought I'd check for a 'better' way of doing this. Thanks
u
s
b
  • 3
  • 3
  • 194
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
  • 194
Examine - Field $facets was not indexed with SortedSetDocValues
b

Bram

over 1 year ago
I'm currently using the newest beta version of Examine to use faceting in an Umbraco13 site. After adding a new language (added Dutch to the already existing English) I get the error: 'field "$facets" was not indexed with SortedSetDocValues' Is anyone familiair with this? It seems to be something going on withing Examine since I do not specify a field called '$facets"
b
n
r
  • 3
  • 17
  • 193
Not sure how to use umb-table
m

mz10ah

almost 2 years ago
Hi, I am wondering how to get the select all box working as by default, its marked and I can't even get it unchecked. Also the sorting/unsorting isn't working either. Now I am sure I need more code than what I have copied from the API doc but if anyone could guide me a bit here, that would be appreciated. Here is my code:
html
<umb-table
                  ng-if="vm.items"
                  items="vm.items"
                  item-properties="vm.options.includeProperties"
                  allow-select-all="vm.allowSelectAll"
                  on-select="vm.onSelect"
                  on-click="vm.onClick"
                  on-select-all="vm.selectAll"
                  on-selected-all="vm.onSelectedAll"
                  on-sorting-direction="vm.onSortDirection"
                  on-sort="vm.onSort"
               >
               </umb-table>
js
vm.onSelect = onSelect;
      vm.onClick = onClick;
      vm.selectAll = selectAll;
      vm.onSelectedAll = onSelectedAll;
      vm.onSortDirection = onSortDirection;
      vm.allowSelectAll = true;
      vm.onSort = onSort;

      function selectAll($event) {
         alert('select all');
      }

      function onSelectedAll() {
         return true;
      }

      function onClick(item) {
         console.log('clicked', item);
         alert('click node');
      }

      function onSelect(selectedItem, $index, $event) {
         alert('select node');
      }

      function onSortDirection(col, direction) {}

      function onSort(field, allow, isSystem) {}
https://cdn.discordapp.com/attachments/1194969651894026330/1194969652032454696/0.png?ex=65b24936&is=659fd436&hm=94008e1a22d39aaa6f174c0e44d1e42cb625daacaafafae0e336b475fc233165&
m
j
  • 2
  • 8
  • 193
Previous121314Next

Umbraco

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

Powered by