Developer forum

Forum » Rapido » Update a Rapido 3.4 solution to DW 9.15

Update a Rapido 3.4 solution to DW 9.15

Hans Ravnsfjall
Hans Ravnsfjall

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?



Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
This post has been marked as an answer

Hi Hans


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.

Votes for this answer: 2
Hans Ravnsfjall
Hans Ravnsfjall

Thank you Nicolai 👍 it works



You must be logged in to post in the forum