https://discord.umbraco.com
Join Discord
How to Opt-Out Serilog and Use Azure Monitor OpenTelemetry instead?
k

Khattab

8 months ago
I want to see Umbraco application's logs in Application Insights. I'm using the following packages: Azure.Monitor.OpenTelemetry.AspNetCore Serilog.Sinks.OpenTelemetry
builder.Services.AddOpenTelemetry().UseAzureMonitor()
The issue is with the app inights Serilog Sink I am loosing a lot of telemetry and I have my whole setup built arounf OTEL standards and OTEL exporters, which Azure monitor provides, and with Serilog I think it kills all exporters, On my custom dotnet application I used Serilog flag
writeToProviders
so I'd have both logger in action, but for Umbraco I do not know what is the best way to do so
services.AddSerilog((loggerConfiguration) =>
 {
     loggerConfiguration.MinimalConfiguration(configuration)
                        .ReadFrom.Configuration(configuration);
 }, writeToProviders: true);
k
  • 1
  • 1
  • 176
How to get current culture?
h

Holm76

about 1 year ago
Our site currently has two languages with some parts of the site displaying prices in localized currencies. How to detect if site is domain.com or domain.com/da? And get the current culture of the site?
h
s
+2
  • 4
  • 4
  • 176
v13 Best way to transform External Index properties
h

Hooky

11 months 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
  • 175
Forms Header issue
c

Craig100

over 1 year ago
V13.2.2 + UF V13.1.1 I have an Umbraco Form embedded in a page which itself receives a form post from another page to populate some of it's content. When the form is submitted and the page is reloaded to show the "Thank you" message, I get an exception of : "InvalidOperationException: This request does not have a Content-Type header. Forms are available from requests with bodies like POSTs and a form Content-Type of either application/x-www-form-urlencoded or multipart/form-data." I'm happy to do without the originally posted info, but can't work out how to detect "if(no content-type header){}" and let the rest of the page load. If there is a way to have UF pass on the info or a Content-Type header I'd be very pleased to hear it. I doubt ViewData etc, would work in this instance. Any thought? Thanks.
c
s
  • 2
  • 6
  • 175
Images not displaying in frontend but available in backoffice
p

PascalEugster

about 1 year ago
We've got a problem that the images are not displaying in the frontend but are available in the backoffice so the file is there and you can view it. In the console there is the following error. An unhandled exception has occurred while executing the request. SixLabors.ImageSharp.UnknownImageFormatException: Image cannot be loaded. Available decoders: - TIFF : TiffDecoder - BMP : BmpDecoder - TGA : TgaDecoder - QOI : QoiDecoder - GIF : GifDecoder - PBM : PbmDecoder - Webp : WebpDecoder - JPEG : JpegDecoder - PNG : PngDecoder I think it has something todo with the cache because we usynced these images from staging to localhost
p
d
s
  • 3
  • 17
  • 174
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
  • 172
Upgrade from 12.2 to 13.5.1 ASP.NET Core app failed to start
b

bh

about 1 year ago
I updated an Umbraco site from v12.2 to v13.5.1 On my local machine everything works like it should. I published the database and the projectname.dll to my server and I restarted the app pool and site in IIS and I get the "HTTP Error 500.30 - ASP.NET Core app failed to start". There's nothing in the Umbraco logs. I turned on stdout in the web.config and nothing is produced there. Note: in my server's Event Viewer I see "hit unexpected managed exception, exception code = '0xe0434352'. Please check the stderr logs for more information."
b
r
+3
  • 5
  • 22
  • 171
Skybrud Redirects (Umbraco v13) - static file / media based redirect rules not triggering
n

Nik

about 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
  • 171
[solved]Azure Blob storage ImageSharp 13.0.1
m

Matt Wise

over 1 year ago
I have my connection string and container name set. However with the following in a Composer
builder.AddAzureBlobFileSystem(AzureBlobFileSystemOptions.MediaFileSystemName)
   .AddAzureBlobImageSharpCache();
I get a VirtualPath is required error OptionsValidationException: DataAnnotation validation failed for 'AzureBlobFileSystemOptions' members: 'VirtualPath' with the error: 'The VirtualPath field is required.'. Microsoft.Extensions.Options.OptionsFactory.Create(string name) System.Lazy.ViaFactory(LazyThreadSafetyMode mode) System.Lazy.ExecutionAndPublication(LazyHelper executionAndPublication, bool useDefaultConstructor) System.Lazy.CreateValue() Microsoft.Extensions.Options.OptionsCache.GetOrAdd(string name, Func createOptions, TArg factoryArgument) Microsoft.Extensions.Options.OptionsMonitor.Get(string name) Umbraco.StorageProviders.AzureBlob.ImageSharp.AzureBlobFileSystemImageCache..ctor(IOptionsMonitor options, string name, string containerRootPath) Umbraco.Cms.Core.DependencyInjection.AddAzureBlobImageSharpCacheExtensions+<>c__DisplayClass3_0.b__0(IServiceProvider provider)
m
  • 1
  • 2
  • 171
Programmatically creating block list items, and saving to page
l

Lewis Heaton

over 1 year ago
I have a page in Umbraco 13, i'm trying to create a few block list items, then save this to the page. The page is being generated fine when i comment out the setValue for setting the block list item. I found a our.umbraco post from 2020, which pointed to https://github.com/umbraco/UmbracoDocs/blob/e64ec0e5b28b4e5a37b7865691621e45dd82701f/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Block-List-Editor/index.md which is what i followed. Any docs / suggestions on how to get this working?
l
d
  • 2
  • 7
  • 171
Previous131415Next

Umbraco

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

Powered by