Sitecore 8.2自定义WFFM字段遇难题:找不到Sitecore.WFFM.MVC程序集
Fixing Missing
Sitecore.WFFM.Mvc Assembly & SingleLineTextField Class in Sitecore 8.2 Hey there, I’ve worked through similar WFFM setup headaches with Sitecore 8.2 before—let’s break down how to get this sorted for you:
1. First: Confirm Web Forms for Marketers (WFFM) is Installed
Sitecore 8.2 does not include WFFM by default—it’s a separate module you need to install manually. If you skipped this step, that’s almost certainly why you can’t locate the assemblies:
- Download the WFFM module version that exactly matches your Sitecore 8.2 update (e.g., if you’re on Sitecore 8.2 Update 5, grab the WFFM 8.2 Update 5 package).
- Run the Sitecore Installation Wizard to install the module. This will automatically add all required WFFM assemblies to your site’s
binfolder.
2. Locate the Correct Assemblies
Once WFFM is installed, you’ll find these critical files in your Sitecore website’s bin directory:
Sitecore.Forms.Mvc.dll: This is where theSitecore.Forms.Mvc.Models.Fields.SingleLineTextFieldclass lives (the exact one you’re missing).Sitecore.WFFM.Mvc.dll: The assembly your tutorial references—this is also added during the WFFM installation process.
3. Add References to Your Visual Studio Project
To resolve the missing class error in your code:
- Right-click your project in Visual Studio → Add Reference.
- Browse to your Sitecore website’s
binfolder, selectSitecore.Forms.Mvc.dllandSitecore.WFFM.Mvc.dll, then click OK. - Double-check that the reference’s Copy Local property is set to
False—these assemblies should stay in the Sitecore bin folder, not be copied to your project’s output.
4. Verify Version Compatibility
Mismatched versions between Sitecore and WFFM can cause missing assemblies or classes:
- Ensure your WFFM module version is fully compatible with your Sitecore 8.2 update. You can cross-check this using the release notes included with your Sitecore download.
- If you installed the wrong WFFM version, uninstall it via the Sitecore Installation Wizard and reinstall the correct matching version.
Quick Troubleshooting Tip
If you still can’t find the assemblies after installation:
- Check the
App_Config/Include/Formsfolder—you should see WFFM-related config files there. If not, the installation didn’t complete successfully. - Restart your Sitecore instance and clear the Sitecore cache to ensure the new assemblies are loaded properly.
内容的提问来源于stack exchange,提问作者Matthew
相关产品推荐
相关产品推荐

