https://discord.umbraco.com
Join Discord
An exception was thrown while deserializing the token.
n

nl_05

over 1 year ago
Does anyone know why I'm getting this error in the back office log viewer ? how can i fix this ? Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted. ---> System.Security.Cryptography.CryptographicException: The key {a773867b-d0d3-4648-8378-2042cd1895c7} was not found in the key ring. For more information go to http://aka.ms/dataprotectionwarning at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status) at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData) at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken) --- End of inner exception stack trace --- at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken) at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)
n
o
  • 2
  • 1
  • 33
Adding UmbracoNaviHide to Baseline project. How to ensure all children republish their indexes?
t

Tom Chance

over 1 year ago
Hey all, We have an Umbraco Cloud baseline project which is a parent to roughly 25 other projects. This morning i've added the umbracoNaviHide property to all of the pages and have updated the various listings to use the Visible() method for displaying. Ive also updated our examine based listings to include:
csharp
 query.And().Field("umbracoNaviHide", 0.ToString());
to filter the various examine based lists we have before returning the results to the view. Ofcourse this means the examine index (In this case the external one) needs rebuilding with this new property everywhere. Is there anyway to force all child projects of a baseline to perform a republish/rebuild of that index on push?
t
l
s
  • 3
  • 9
  • 33
Error getting dashboard content from "https://dashboard.umbraco.com/cms?
j

jonroberts

almost 2 years ago
Hi - on our DEV site which is on Azure and the CMS is IP restricted we are getting this error: Error getting dashboard content from "https://dashboard.umbraco.com/cms?section=content&allowed=content,forms,media,member,packages,settings,translation,users&lang=en-GB&version=13.0.3&admin=True&siteid=44dfaa5bXXXXXXX System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream. at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) Is this because we are IP restricting the CMS or is there a different issue here? Thanks
j
s
a
  • 3
  • 5
  • 33
Preview and redirect Umbraco Cloud URL
b

Bjarne Fyrstenborg

almost 2 years ago
It is possible to redirect the default Umbraco Cloud URL to the actual domain, while ignoring redirect on
/umbraco
backoffice URL. https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud However in a multi-site with several domains it cause issues with preview from within backoffice, because in preview frontend in backoffice and the frontend is redirected. This is fine on the actual domain, e.g. mydomain.com and logged in on mydomain.com/umbraco However if logged in on https://project-alias.euwest01.umbraco.io/umbraco and preview it will cause the following error:
Refused to display 'https://www.mydomain.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
https://github.com/umbraco/UmbracoDocs/pull/5662 I think .NET Core by default is configured to only allow same origin but it is possible to setup CORS to render content from other domains. It is of course possible to log into backoffice from actual domain, but often content editors have access to edit 10 different sites, so I understand it is simpler to content editors to work from one preferred domain, e.g. the Umbraco Cloud URL or the main domain or just one or the site domains. Are the any recommended way to handle this? Maybe something like this? https://stackoverflow.com/a/31942128 https://www.bytehide.com/blog/cors-aspnet-core
b
  • 1
  • 2
  • 33
Umbraco 13 documentation use deprecated AddUmbracoEFCoreContext
h

hasan_15229

almost 2 years ago
https://docs.umbraco.com/umbraco-cms/tutorials/getting-started-with-entity-framework-core AddUmbracoEFCoreContext is supported Umbraco 12.0.0 I updated the project to Umbraco 12.3.5 because of a recent security patch update now this function keeps giving an error during the add-migration command. So I tried to use AddUmbracoDbContext and started getting the following error message. The DbContext of type 'MyContext' cannot be pooled because it does not have a public constructor accepting a single parameter of type DbContextOptions or has more than one constructor. Could someone direct me on how to use AddUmbracoDbContext in Umbraco 12.3.5 Thanks
h
i
a
  • 3
  • 4
  • 33
[SOLVED]Switching from SQLite to MS SQL causing uSync problem
g

Güven

about 2 years ago
I'm encountering the following error while setting up my Umbraco project with uSync. I was working with SQLite locally, but I want to use MS SQL in the production environment. I started experiencing these errors after switching to MS SQL. Can you please assist me?
g
j
k
  • 3
  • 10
  • 33
Hi Everyone
d

Deepak.aggrawal

25 days ago
Hi Everyone I have forked the Umbraco repo to do contribution. I use Visual Studio 2022. I run the Umbraco.Web.UI and it is running fine at the first time but when I run again it throw an error like as below :
System.InvalidOperationException: 'All calls to HybridCache with the same key should use the same data type; the same key is being used for 'Umbraco.Cms.Infrastructure.HybridCache.ContentCacheNode' and 'Umbraco.Cms.Infrastructure.HybridCache.ContentCacheNode' data'
If I use new Database then it will work fine but it is not working with same database. Please advise me on this
d
s
l
  • 3
  • 9
  • 32
Umbraco CMS with S3 & CloudFront Help
t

TheCultOfRa

9 months ago
I am setting up Umbraco on AWS and as a result, I wanted to use S3 for my media files. In order to do so, I am using (this package)[https://github.com/adam-werner/Our.Umbraco.StorageProviders.AWSS3]. However, I am curious if it is possible to use S3 as my storage provider while also serving the media through a CDN like CloudFront rather than through the S3 bucket directly. I cannot seem to find any documentation on doing this specifically, only ones that use a CDN as a storage provider
t
g
  • 2
  • 2
  • 32
Fallback in the Content Delivery API
s

Sebastian Pierre

9 months ago
Is it possible to get fallback values in the content delivery api? For instance we have English (master) and Swedish. On the English site we have a privacy policy page, and on the Swedish page we do not. The only content on the page is a culture specific blockgrid. The issue right now is that they pick this privacy policy site from site settings with a normal picker / multinode picker, but when doing so, in the picker modal, it shows the swedish tree with the privacy policy greyed out because its not created. It can still be picked, but it's not delivered through the content delivery api. Not sure exactly how it's supposed to work with fallback in the delivery api? Normally I guess you create the page, but the content it shows is fallback if no content is present on the language page.
s
b
m
  • 3
  • 5
  • 32
Umbraco 15 Block List Label to display an image or file name
f

firthy

8 months ago
Hi, I hope this is possible in Umbraco 15. Is it possible a for the Block List items to display a label either of the file name or the selected image for a single image media picker? The best I can do is add a ‘title’ field to the element doc type and use {umbValue: title} in the label field. An image would be the preferred result. Cheers Mark
f
w
  • 2
  • 2
  • 32
Previous636465Next

Umbraco

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

Powered by