您的位置:程序门 -> .net技术 -> c#



microsoft posservice 用于clickonce, full trust 问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


microsoft posservice 用于clickonce, full trust 问题
发表于:2007-09-21 16:24:03 楼主

程序调用microsoft.posofservice.操作pos打印机,不用clickonce部署时工作正常,用了clickonce之后就出现如下错误,估计基本是clickonce的security设置问题,posexplorer读注册表时失败,但是我们已将主程序文件设为fulltrust的,各dll也都是fulltrust了,应该有操作注册表的权限,不知原因为何.有谁见过类似问题?

message:
the   type   initializer   for   'microsoft.pointofservice.management.explorer '   threw   an   exception.
stacktrace:
      at   microsoft.pointofservice.management.explorer.createexplorer()
      at   microsoft.pointofservice.posexplorer.loadexplorer()
      at   microsoft.pointofservice.posexplorer..ctor()
      at   avteam.sps.woc.ss.managers.printermanager.start()

innerexception
message:
attempt   to   access   the   method   failed.
stacktrace:
      at   system.runtimetypehandle.createinstance(runtimetype   type,   boolean   publiconly,   boolean   nocheck,   boolean&   canbecached,   runtimemethodhandle&   ctor,   boolean&   bneedsecuritycheck)
      at   system.runtimetype.createinstanceslow(boolean   publiconly,   boolean   fillcache)
      at   system.runtimetype.createinstanceimpl(boolean   publiconly,   boolean   skipvisibilitychecks,   boolean   fillcache)
      at   system.activator.createinstance(type   type,   boolean   nonpublic)
      at   system.runtimetype.createinstanceimpl(bindingflags   bindingattr,   binder   binder,   object[]   args,   cultureinfo   culture,   object[]   activationattributes)
      at   system.activator.createinstance(type   type,   bindingflags   bindingattr,   binder   binder,   object[]   args,   cultureinfo   culture,   object[]   activationattributes)
      at   system.activator.createinstance(string   assemblyname,   string   typename,   boolean   ignorecase,   bindingflags   bindingattr,   binder   binder,   object[]   args,   cultureinfo   culture,   object[]   activationattributes,   evidence   securityinfo,   stackcrawlmark&   stackmark)
      at   system.activator.createinstance(string   assemblyname,   string   typename)
      at   system.appdomain.createinstance(string   assemblyname,   string   typename)
      at   system.appdomain.createinstanceandunwrap(string   assemblyname,   string   typename)
      at   system.appdomain.createinstanceandunwrap(string   assemblyname,   string   typename)
      at   microsoft.pointofservice.management.explorer.scanforsoassemblies()
      at   microsoft.pointofservice.management.explorer.refresh()
      at   microsoft.pointofservice.management.explorer..ctor()
      at   microsoft.pointofservice.management.explorer..cctor()
发表于:2007-09-21 17:32:571楼 得分:0
不懂   帮顶
发表于:2007-09-21 17:53:382楼 得分:0
学习中~~

友情up

偶还差7分,请搂住帮忙


快速检索

最新资讯
热门点击