Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
This is probably a very basic question and there may be a very simple solution, but I cannot seem to be able to use SurfaceController on V9, I get the following error
"Severity Code Description Project File Line Suppression State
Error CS7036 There is no argument given that corresponds to the required formal parameter 'umbracoContextAccessor' of 'SurfaceController.SurfaceController(IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, IProfilingLogger, IPublishedUrlProvider)'
Thank you so much in advance.
How does your constructor look? A new thing in V9 is that you need to call the constructor of the base class with the parameters it wants, your constructor should look something like:
public class MyController : SurfaceController
: base(umbracoContextAccessor, databaseFactory, services, appCaches, profilingLogger, publishedUrlProvider)
Thank you so much Nikolaj, that solved the issue.
No problem, glad it helped 😀
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted