https://discord.umbraco.com
Join Discord
Umbraco 15, deploy on Ubuntu 24, missing Microsoft.AspNetCore.Server.IIS
b

Blago Culjak

8 months ago
This is error when upgraded site from v14 to v 15 upgrading: > Nov 18 17:08:37 vmi1813232.contaboserver.net systemd[1]: Started greencode.service - Green Code service. > Nov 18 17:08:40 server.net greencode[18474]: Unhandled exception. System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.IISServerOptions' from assembly 'Microsoft.AspNetCore.Server.IIS, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddWebServer(IUmbracoBuilder builder) > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(IUmbracoBuilder builder, Action`1 configureMvc) > Nov 18 17:08:40 server.net greencode[18474]: at Program.$(String[] args) in /home/github-runner/actions-runner/_work/GreenCode/GreenCode/GreenCode/Program.cs:line 17 Program.cs, line 17:
builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddDeliveryApi()
    .AddComposers()
    .Build();
Is there some dependency that is forcing us to use IIS everywhere?
b
s
+2
  • 4
  • 10
  • 116
v13 Best way to transform External Index properties
h

Hooky

8 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
  • 115
Why doesn't mini profiler work?
t

TigerMan

over 1 year ago
Hi I installed a brand new Umbraco 13 and enabled profiling under the profiling tab. Created a basic document type and ran the site. The page displayed and I entered ?umbdebug=true at the end of the URL but nothing is being displayed. I'm expecting some pop up on the right but nothing is shown. I have not installed anything else but was expecting to see a pop up. I also have Hosting, debug= true in my app settings. Have I missed off anything?
t
u
+3
  • 5
  • 6
  • 115
Run initialization at startup
a

Abra

over 1 year ago
I would like to run some code at startup that will update some content nodes. The code only need to run once at startup and then no more. Any best practices on how this could be done?
a
c
j
  • 3
  • 3
  • 114
Umbraco 13.0.3 Models builder not generating models
s

Sian Evans

over 1 year ago
I created a new site yesterday and noticed that I was getting the "CS0234 The type or namespace name 'ErrorPage' does not exist in the namespace 'Umbraco.Cms.Web.Common.PublishedModels' (are you missing an assembly reference?)" message. I identified that template models were no longer generated, yet this morning, the site generated models for compositions I had created. Has anyone experienced this and can point me in the direction of what I need to look at in logs to identify the problem? https://cdn.discordapp.com/attachments/1205511997861527572/1205511998058668062/Screenshot_2024-02-09_134348.png?ex=65d8a389&is=65c62e89&hm=1fabd84ca77ba172a94fdc5c4f97e1839c815d449000c4b7df1ebac9f8a828dd& https://cdn.discordapp.com/attachments/1205511997861527572/1205511998305996880/Screenshot_2024-02-09_134509.png?ex=65d8a389&is=65c62e89&hm=48609da3743e59e405836ccfd4a3803ce224affce522ad6d9201286c0eeca2ba&
s
s
  • 2
  • 15
  • 112
Solved: app.UseStaticFiles( ... ) - where/when to call?
k

kdx-perbol

11 months ago
I need to call
app.UseStaticFiles( ... )
to customize the behavior, but I don't know where/when to put this in
Program.cs
. I'm guessing
.UseUmbraco()
already does this internally? I'm using the Umbraco 13 NuGet project template.
k
d
b
  • 3
  • 9
  • 111
TypeScript generation hey-api 0.47.0
m

Matt Wise

about 1 year ago
Failing to generate TypeScript from Swagger using @hey-api/openapi-ts 0.47.0
m
d
  • 2
  • 4
  • 111
Can only use UmbracoPageResult in the context of an Http POST when using a SurfaceController form
c

Craig100

almost 2 years ago
I have a form which is rendered from a View Component and posts to a Surface Controller. When it's done what it needs to, the Surface Controller tries to do a
return CurrentUmbracoPage();
But fails with the above error. Is there something about it being instigated from a View Component rather than a Razor page directly?
c
d
h
  • 3
  • 14
  • 111
Hide Block Element Property in specific Block List
d

Danine Noble

about 1 year ago
I'm experimenting with the Editior Model Notifications and trying to hide a specific property from a specific element in a particular block list property without affecting everywhere else the element is used. Goal: Swap availability of a treenode selector depending on the area of the page the author is adding it to. For example: the main property is a treenode selector that has no restriction on item type selectable, but then property2 is a treenode with a more limited selection. Only 1 is available at any given time depending on the blocklist property the element is sitting in. The closest I've gotten is hiding the property's value... But can't seem to get at hiding the property itself. I've probably been staring at it too long, lol Snippet:
var rootProperty = notification.Content.Variants.FirstOrDefault()?
    .Tabs.SelectMany(f => f.Properties ?? [])
    .FirstOrDefault(f => f.Alias.InvariantEquals("region"));

if (rootProperty?.Value is not BlockValue blockList) { return; }

foreach (var block in blockList.ContentData.Where(block => block.ContentTypeKey == Constants.RCGuid))
{
    // using block.PropertyValues seems to affect nothing
    // this removes the selected value of the property...
    block.RawPropertyValues.Remove("reuseContent2");

}
d
d
+2
  • 4
  • 9
  • 110
Upgrading from v10 to v13
d

Dean Leigh

over 1 year ago
Is there documentation or any good articles for Upgrading from v10 to v13? Do I need to go through 11 and 12 first? I have already run into this error going from 10 to 11:
Error during installation
The database failed to upgrade. ERROR: The database configuration failed with the following message: The migration plan does not support migrating from state "{83AF7945-DADE-4A02-9041-F3F6EBFAC319}".
d
d
+5
  • 7
  • 24
  • 110
Previous181920Next

Umbraco

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

Powered by