Hello! I'm using version 13.3.1 and I run my umbraco sites via a publish through devops and then into Octopus. Usually ones it's built, the websites are then visible and work as expected. This is my first Umbraco 13 site and I'm receiving errors when trying to view the pages, though the backoffice seems to work perfectly.
An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.
Generated Code
Invalid name for a preprocessing symbol; '$(BUILDCONFIGURATION)' is not a valid identifier
+
#pragma checksum "D:\Octopus\Applications\Development\Digital.Golfcare\1.0.24225.02-develop\Views\Home.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "57218c316b6921e2cd61027a2387edc31a2d9471"
Show compilation source
#pragma checksum "D:\Octopus\Applications\Development\Digital.Golfcare\1.0.24225.02-develop\Views\Home.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "57218c316b6921e2cd61027a2387edc31a2d9471"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home), @"mvc.1.0.view", @"/Views/Home.cshtml")]
namespace AspNetCore
{
#line hidden
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "D:\Octopus\Applications\Development\Digital.Golfcare\1.0.24225.02-develop\Views\_ViewImports.cshtml"
using Umbraco.Extensions;
Has anyone experienced this before? I tried emptying out /Views/Home.cshtml to see if this made a difference but nothing changes. Here is my csproj if this is helpful for seeing where I'm going wrong:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Our.Umbraco.ConditionalDisplayers" Version="3.4.0" />
<PackageReference Include="Umbraco.Cms" Version="13.3.1" />
</ItemGroup>
<ItemGroup>
<!-- Opt-in to app-local ICU to ensure consistent globalization APIs across different platforms -->
<PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="72.1.0.3" />
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="72.1.0.3" Condition="$(RuntimeIdentifier.StartsWith('linux')) or $(RuntimeIdentifier.StartsWith('win')) or ('$(RuntimeIdentifier)' == '' and !$([MSBuild]::IsOSPlatform('osx')))" />
</ItemGroup>
<PropertyGroup>
<!-- Razor files are needed for the backoffice to work correctly -->
<CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
</PropertyGroup>
<PropertyGroup>
<!-- Remove RazorCompileOnBuild and RazorCompileOnPublish when not using ModelsMode InMemoryAuto -->
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>
</PropertyGroup>
</Project>
Errors after publishing to remote server
Hello! I'm using version 13.3.1 and I run my umbraco sites via a publish through devops and then into Octopus. Usually ones it's built, the websites are then visible and work as expected. This is my first Umbraco 13 site and I'm receiving errors when trying to view the pages, though the backoffice seems to work perfectly.
An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately. Generated Code
Has anyone experienced this before? I tried emptying out /Views/Home.cshtml to see if this made a difference but nothing changes. Here is my csproj if this is helpful for seeing where I'm going wrong:
Any help would be fantastic!
is working on a reply...