Ah ok makes sense, thanks.
I also noticed errors relating to missing code-behind files for aspx pages in
\App_Plugins\NewsletterStudio\Pages, but as all I have is what I've been handed I'm unsure if these should actually be here, any comment on that?
Modern versions of the package (Umbraco 8 and above) should not have any aspx files - maybe the site was upgraded from an earlier version of Umbraco? Sounds like it was and that any old legacy files for the package was left and not cleaned up during the migration/upgrade.
If you are on 3.0.9 it should be safe to remove these aspx-files.
They are all related to NewsletterStudio views.
I have updated the Newsletter packages to 3.0.18 and have the up-to-date
Microsoft.Aspnet.Mvc and Microsoft.Aspnet.razor packages for the version on .NET it's running.
All other errors I had before are gone so I'm hoping this is the last hurdle, any info you have appreciated.
Issue with NewsletterStudio.Api in the NewsletterStudioSubscribe.cshtml, in an Umbraco 8 site
I have just inherited on old Umbraco 8 site which uses NewsletterStudio and has the following nuget packages installed:
NewsletterStudio 3.0.9
NewsletterStudio.Core 3.0.9 NewsletterStudio.Web 3.0.9
On trying to get the site to build, the 1st issue I have is with the NewsletterStudioSubscribe.cshtml, any line using, NewsletterStudio.Api, eg
show a red line under it with the error,
As far as I can tell this view is provided as a template and hasn't been touched. Am I missing something else I need to install?
Hi!
It looks like some kind of old macro, this method existed in v2 but was removed and moved into the
INewsletterStudioService
in v3 and above.// Markus
Ah ok makes sense, thanks. I also noticed errors relating to missing code-behind files for aspx pages in \App_Plugins\NewsletterStudio\Pages, but as all I have is what I've been handed I'm unsure if these should actually be here, any comment on that?
Thanks again
Hi!
Modern versions of the package (Umbraco 8 and above) should not have any aspx files - maybe the site was upgraded from an earlier version of Umbraco? Sounds like it was and that any old legacy files for the package was left and not cleaned up during the migration/upgrade.
If you are on 3.0.9 it should be safe to remove these aspx-files.
// Markus
Thanks again, most helpful!
Hi!
More than happy to help, always feel free to reach out if you have questions, issues or feedback.
Cheers!
One last thing if you don't mind me asking, when building the site now I get a load of these errors
BeginContext("~/App_Plugins/NewsletterStudio/Themes/Default/Views/Controls/Button.cshtml", 259, 4, true);
WriteLiteral("\r\n\r\n");
EndContext("~/App_Plugins/NewsletterStudio/Themes/Default/Views/Controls/Button.cshtml", 259, 4, true);
They are all related to NewsletterStudio views. I have updated the Newsletter packages to 3.0.18 and have the up-to-date Microsoft.Aspnet.Mvc and Microsoft.Aspnet.razor packages for the version on .NET it's running. All other errors I had before are gone so I'm hoping this is the last hurdle, any info you have appreciated.
Thanks again.
is working on a reply...