使用自定义成员资格提供程序发布时出错 [英] Error publishing with Custom Membership Provider
问题描述
尝试使用自定义成员资格提供程序进行发布时出现错误.该错误发生在引用自定义成员资格提供程序的web.config中,表明找不到该文件.我已包括我的会员资格提供者 ServerGenerated项目中的.dll,并确保将本地复制"设置为true.
我看到了一个与此类似的较旧的文章,但是它只是提到了在ServerGenerated项目中引用成员资格提供程序dll的过程,该工作已经完成.另外,我看过一篇文章,解释说应将.dll添加为项目发布 文件.尽管我不确定为什么能解决此问题,但我也没有运气尝试过.
对此有任何帮助,将不胜感激.
我只是将.dll手动放入已发布的LightSwitch应用程序的bin中. /blockquote>
I am getting an error when I try to publish using a custom membership provider. The error occurs in the web.config where the custom membership provider is referenced saying that the file cannot be found. I have included my membership provider .dll in the ServerGenerated project and ensured that Copy Local is set to true.
I have seen an older post similar to this but it simply mentions referencing the membership provider dll in the ServerGenerated project which I have already done. Also, I have seen a post explaining that one should add the .dll as a project publish file. I have tried this with no luck as well although I am not sure why this would fix the issue.
Any help with this would be appreciated.
解决方案I would just manually put the .dll in the bin of the published LightSwitch application.
这篇关于使用自定义成员资格提供程序发布时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!