Converting WFFM from 8.0 to 8.1, using MVC and came across an error after my build and deploy to my local environment. Error appearing is one of our Views has the below in lines 1 & 2 which causes errors.
@using Sitecore.Forms.Mvc.Data.Analytics
@using Sitecore.Forms.Mvc.Extensions
When running, receive this:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Analytics' does not exist in the namespace 'Sitecore.Forms.Mvc.Data' (are you missing an assembly reference?)
Source Error:
Line 1: @using Sitecore.Forms.Mvc.Data.Analytics Line 2: @using Sitecore.Forms.Mvc.Extensions
I looked into the Release Notes for 8.1 and did not see any references to this namespace being broken.
I also opened up Sitecore.Forms.Mvc.dll file for 8.0 and compared with 8.1 in ILspy. I did not see the namespace Sitecore.Forms.Mvc.Data.Analytics in the 8.1 version as it was in the 8.0 dll file
Any help greatly appreciated to resolve this issue.
using
statements are not in the default index.cshtml file. I would double check you have not made customizations.