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
Reply

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

https://www.screencast.com/t/ATX6x3ne5N

Anyone know how to fix this?

/Hans


Replies

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

Hi Hans

Yes.

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;

or

@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
Reply

Thank you Nicolai 👍 it works

/Hans

 

You must be logged in to post in the forum