logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
pdsteiner8198692  
#1 Posted : Friday, November 25, 2022 9:33:33 AM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User, HelpDesk
Joined: 12/30/2020(UTC)
Posts: 13

When I want to change the layout for one of widget boards this message is displayed: "This is a marker file generated by the precompilation tool, and should not be deleted!" Our site store is precompiled before deploying to a folder on the hosting server.

Screen Shot 2022-11-25 at 17.25.19.png (58kb) downloaded 0 time(s).

Here is the editboardxcvxcvxcv.compiled content:

<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="2" virtualPath="/Areas/Admin/Views/Website/EditBoard.cshtml" hash="45309f08" filehash="ffffc4a396edb710" flags="110000" assembly="AppCode" type="ASP._Page_Areas_Admin_Views_Website_EditBoard_cshtml">
<filedeps>
<filedep name="/Areas/Admin/Views/Website/EditBoard.cshtml" />
</filedeps>
</preserve>

Is there a way to fix it? What's causing it?

Edited by user Friday, November 25, 2022 9:38:25 AM(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

judy at Web2Market  
#2 Posted : Monday, November 28, 2022 6:23:09 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Can you explain your method of updating your site? We don't use "deploy" on the sites that we do. We build the local solution, upload the AbleCommerce.dll and any changes to other files, like views, js, etc.
pdsteiner8198692  
#3 Posted : Monday, November 28, 2022 7:52:57 AM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User, HelpDesk
Joined: 12/30/2020(UTC)
Posts: 13

Judy, we use publish option of the VS 2019 with the following options enabled: Precompile during publishing (Allow precompiled site to be updatable, Merge all outputs to a single assembly - Treat as library component). We know what the issue is, mainly is the hosting account we have with GoDaddy, they seem to run .NET Framework (4.8.0) with an older C# compiler (5) and in order to fix it AC 9.0.7 needs at least C# 6 due to the string interpolation used in admin pages. As of right now we have four options: move to VPS or dedicated server, switch to another host, change Admin pages to be compliant with C# 5 or GoDaddy changing their .NET Framework to use newer C# compilers.

Edited by user Monday, November 28, 2022 8:28:54 AM(UTC)  | Reason: Not specified

shaharyar  
#4 Posted : Thursday, December 15, 2022 9:35:03 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
The issue is that you have enabled the option Precompile during publishing.
Normally this isn't an issue but good for site performance as the views will be precompiled not compiled on runtime.

But AC Templates are built on cshtml view files and in order to edit them from admin we need to place the non-compiled cshtml view files in the folder.

The issue will be resolved if you publish the site without the precompile view option being enabled.

Please let us know if any further help is needed!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.