When trying to Update a Rapido 3.4 solution to Dynamicweb 9.15, the grid/column templates fail.
These are standard Rapidop templates
I have made a screenshot of the error message here
Anyone know how to fix this?
The problem is related to this line in the exception:
'Services' is an ambigous reference between 'Dynamicweb.Content.Services' and 'Dynamicweb.Services'
The problem comes from Dynamicweb 9.15 which contains changes to the API that instructs where they will be when upgrading to Dynamicweb 10 - causing the Razor compiler to be confused wether to use the new or the old Services class (9.15 contains both locations). Usually not a problem.
In Rapido though, this happens because some templates contains both of the namespaces where these services are:
@using Dynamicweb @using Dynamicweb.Content
This comes from the includes.
The easy fix to this (untested as of now) is to add this in the top of templates causing the issue:
@using Services = Dynamicweb.Content.Services;
@using Services = Dynamicweb.Services;
From your exception I can see you need to add it here:
Sorry about the inconvenience.
Thank you Nicolai 👍 it works
You must be logged in to post in the forum