部署步骤“添加解决方案”中发生错误:找不到属性集方法 [英] Error occurred in deployment step 'Add Solution': Property set method not found

查看:167
本文介绍了部署步骤“添加解决方案”中发生错误:找不到属性集方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在事件接收器中读取Excel文件时,我收到了权限错误。如此浏览并在以下URL中做同样的事情











而不是Visual Web part1我已经给出了Features \ MyEventReceiver1,因为它是事件接收器

现在得到以下错误







部署步骤出现错误''添加解决方案'':未找到属性集方法http://www .dotnetmafia.com /博客/ dotnettipoftheday /存档/ 2009/11/20 /部署-A-web的部分与码存取安全功能于视觉工作室-2010-sp2010.aspx [< a href =http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/11/20/deploying-a-web-part-with-code-access-security-in-visual-studio-2010- sp2010.aspxtarget =_ blanktitle =新窗口> ^ ]

When I am Trying to Read an Excel file in the Event Receiver, I was getting Permission Error. so browsed and did the same given in the following URL





instead of Visual Web part1 I have given Features\MyEventReceiver1 since it is event receiver
and now getting the below error



Error occurred in deployment step ''Add Solution'': Property set method not foundhttp://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/11/20/deploying-a-web-part-with-code-access-security-in-visual-studio-2010-sp2010.aspx[^]

推荐答案

嗨解决了自己......

将引用的程序集添加到GAC中,现在我没有收到权限错误
Hi Solved myself...
Added the referenced assembly into GAC and now I''m not getting the permission error itself


这篇关于部署步骤“添加解决方案”中发生错误:找不到属性集方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆