SharePoint Designer encountered an error generating the task form - JackHu88/Comm GitHub Wiki

SharePoint Designer encountered an error generating the task form. Server was unable to process request.. Could not load file or assembly 'Microsoft.Office.Infopath

http://cache.baiducontent.com/c?m=9d78d513d9921ce806bb837e7c4a8a200e54f13d618486027fa5c713cd334c41363ba3ac27534345929223375fe45e5c9be73603200250e8c099c8179ce6c66e38895723706b9140628e4dfb901772d621e04de9d80ee6caab6ec7f39080990e478d135b75dab6cd181715b972ed5174a6b1993f440340e4b06524e8590078c27c5de01ab8b06f251ac3ebdb5d4dc229db660697d86ff6614c&p=8e769a47cd9b03b908e2977e07528f&newp=8949c64ad48703ff57ee94744d0e95231610db2151ddc44324b9d71fd325001c1b69e7bd22271303d7c17c610bac495ce9f03672301766dada9fca458ae7c46c6d&user=baidu&fm=sc&query=could+not+load+file+or+assembly+%A1%AEMicrosoft%2EOffice%2EInfoPath&qid=c8422efa000178c2&p1=4

现在我们找到原因了!好像是GAC的某个设置把14.00重定向到15.000,但是这个DLL又不支持SharePoint 2010,呵呵。

我们在运行当中打开如下的目录:

C:\Windows\assembly\GAC_MSIL

我发现如下的文件夹:Policy.14.0.Microsoft.Office.InfoPath 有一个子文件夹 “15.0.0.0__71e9bce111e9429c”.

我继续查看web.config文件中的设置,设置中有这么一段:

哈哈找到问题了!

3.解决方案

  1. 打开“开始-运行” ,输入: C:\Windows\Assembly\GAC_MSIL

2.删除掉如下的文件夹:

Policy.14.0.Microsoft.Office.InfoPath

Policy.14.0.Microsoft.Office.InfoPath.Client.Internal.Host

Policy.14.0.Microsoft.Office.InfoPath.FormControl

  1. 运行“ IISRESET /noforce” 重启IIS
⚠️ **GitHub.com Fallback** ⚠️