Sebastiaan
03/14/2025, 11:47 AMSerhiy Sydorchuk
03/14/2025, 8:31 AMLoden
03/13/2025, 8:55 PMDann
03/13/2025, 4:53 PMALX
03/13/2025, 2:01 PMRedMonkeyMakers
03/13/2025, 1:51 PMYogi
03/13/2025, 11:48 AMKoen
03/13/2025, 11:37 AMnd
03/13/2025, 8:26 AMmadzen
03/13/2025, 7:50 AMmadzen
03/13/2025, 7:49 AMKrystian
03/13/2025, 7:02 AMBlago Culjak
03/12/2025, 7:56 PMNeuro
03/12/2025, 9:46 AMMikkel Johansen
03/12/2025, 9:22 AMSteffen Nielsen
03/12/2025, 7:44 AMRich G
03/11/2025, 3:26 PMOlti
03/11/2025, 12:09 PMivodepivo
03/11/2025, 11:38 AMReptilia
03/11/2025, 10:58 AMTackleMcClean š
03/11/2025, 10:18 AMbuilder.CreateUmbracoBuilder()
.AddBackOffice()
.AddWebsite()
.AddDeliveryApi()
.AddComposers()
.Build();
Let's say I want to conditionally add Azure blob storage, how would I do this?
This won't work:
if (shouldUseBlobStorage)
{
builder.AddAzureBlobMediaFileSystem()
.AddAzureBlobImageSharpCache();
}
since 'WebApplicationBuilder' does not contain a definition for 'AddAzureBlobMediaFileSystem'.
Should I hold off with calling Build()
until everything conditional has been sorted, and store the umbracoBuilder?
var umbracoBuilder = builder.CreateUmbracoBuilder()
.AddBackOffice()
.AddWebsite()
.AddDeliveryApi()
.AddComposers();
// do conditional stuff
umbracoBuilder.Build();
?
What then happens with my previous builder
variable? Magic methods like Build()
in ASP.NET confuse me šTigerMan
03/11/2025, 9:14 AMmarcusjmsweden
03/11/2025, 12:42 AMnoel
03/10/2025, 2:31 PMplain
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/umbraco/backoffice/umbracoapi/media/PostAddFile","fields":{"currentFolder":"1324","contentTypeAlias":"umbracoAutoSelect","propertyAlias":"umbracoFile"},"file":{"key":"8cd4722b-0127-4cae-a5a3-e5da31386fbe","messages":[]},"_isDigested":true,"_chunkSize":null,"headers":{"Accept":"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest","X-UMB-SEGMENT":null,"X-UMB-XSRF-TOKEN":"CfDJ8NmAoZtxGFBMmfT2L703U5tz5MfwPyG7y3DOdSdQGyQa-ZxkJ2UQLhhuSQoRHY154oG6cLiKc078eEeFr6LoLBzOXjsTy4RkHVMRT3HTR6bRFZ5zRPTMAPFKq7eK7o-Ajr5nRvD7iSES-YLNYswPvEza3VFno3OUI15M6Ev7cKUFvk1DuOGJlfqC2SPg7Dferg"},"_deferred":{"promise":{}}},"statusText":"","xhrStatus":"error"}
Furthermore, the post request get rejected with "NS_ERROR_CONNETION_REFUSED" after the upload "has finished" . I thought the problem might be the file size limitations but I adjusted both in the appsettings json and the web.config just to be sure.
xml
<requestLimits maxAllowedContentLength="2000000000" />
json
"Runtime": {
"MaxQueryStringLength": 90,
"MaxRequestLength": 2000000000
When trying to upload the file in a local dev environment (using iis not kestrel) I get this error in the backoffice:
https://pastebin.com/1TXKyZcp <- was too long for pasting
Appriciate any help, thanks!
https://cdn.discordapp.com/attachments/1348664582763446460/1348664583560364112/message.txt?ex=67d04945&is=67cef7c5&hm=30a44dcecf33e37c9900c24674ca61e28f309f770cfa008af7815e9d7bf1d3b6&Pekdon
03/10/2025, 12:32 PMjonroberts
03/10/2025, 10:02 AMBishal Tim
03/10/2025, 9:38 AMivodepivo
03/09/2025, 7:59 PMCONNECTIONSTRINGS__UMBRACODBDSN_PROVIDERNAME="Microsoft.Data.SqlClient"
CONNECTIONSTRINGS__UMBRACODBDSN="Server=xxxxxx.database.windows.net;Database=xxxxxx;User ID=xxxxxxx;Password=xxxxxxxxxxx"
it works.
However, in my container I get a 'login failed for user xxx'. The environment variables should be exactly the same. Anyone has experience with this?Vexxuh
03/07/2025, 5:13 PMInvalidOperationException: No UmbracoRouteValues feature was found in the HttpContext
Umbraco.Cms.Web.Website.Controllers.SurfaceController.get_CurrentPage()
Umbraco.Forms.Web.Controllers.UmbracoFormsController.ApplyUmbracoPageId(Record record)
Umbraco.Forms.Web.Controllers.UmbracoFormsController.SubmitForm(Form form, FormViewModel model, IDictionary<Guid, string> formFieldValuesForConditions, IDictionary<string, string> additionalData)
Umbraco.Forms.Web.Controllers.UmbracoFormsController.UpdateFormStep(Form form, FormViewModel model, IDictionary<Guid, string> formFieldValuesForConditions, IDictionary<string, string> additionalData, int direction)
Umbraco.Forms.Web.Controllers.UmbracoFormsController.GoForward(Form form, FormViewModel model, IDictionary<Guid, string> formFieldValues, IDictionary<string, string> additionalData)
Umbraco.Forms.Web.Controllers.UmbracoFormsController.HandleForm(FormViewModel model)
Steps Taken So Far:
+ Verified that Umbraco Forms is installed and running.
+ Checked all necessary migrations were applied during the upgrade.
+ Ensured forms are being rendered correctly in views.
Has anyone encountered this issue before when upgrading?
Any insights or troubleshooting tips would be greatly appreciated!
Thanks in advance! šSandy
03/07/2025, 4:23 PMcsharp
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockListItem>;
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels;
@using Umbraco.Cms.Core.DependencyInjection;
@{
var content = (ContentModels.InsightsCarouselBase)Model.Content;
var settings = (ContentModels.InsightsCarouselBase)Model.Settings;
}
@if (content != null)
{
...
}
InsightCarouselLatest
csharp
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockListItem>;
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels;
@{
var content = (ContentModels.InsightsCarouselLatest)Model.Content;
var settings = (ContentModels.InsightsCarouselLatest)Model.Settings;
}
@{
Html.RenderPartial("~/Views/Partials/blocklist/components/InsightsCarouselBase.cshtml", content);
}
InsightCarouselPicked
csharp
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockListItem>;
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels;
@{
var content = (ContentModels.InsightsCarouselPicked)Model.Content;
//var settings = (ContentModels.InsightsCarouselPicked)Model.Settings;
content.Insights = content.PickedInsights.Cast<InsightsPage>().ToList();
}
@await Html.PartialAsync("~/Views/Partials/blocklist/components/InsightsCarouselBase.cshtml", content)