在win10上与非管理员用户打印问题

时间:2017-11-01 15:34:02

标签: c# windows-10 administrator

我们正在迁移到win10并面临一个问题,即我们的c#打印应用程序无法与非管理员用户一起使用。 错误讯息:

  

操作成功完成

错误堆栈跟踪:

Server stack trace: 
   at System.Drawing.Printing.StandardPrintController.OnEndPrint(PrintDocument document, PrintEventArgs e)
   at System.Windows.Forms.PrintControllerWithStatusDialog.OnEndPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at MyApp.MyApp.<>c__DisplayClass101_0.<CallAndWait>b__0()
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at MyApp.MyApp.PrintingMethod.EndInvoke(IAsyncResult result)
   at MyApp.MyApp.CallAndWait(MethodWithoutArgs action, Int32 timeout)

任何想法如何解决这个问题?我认为应该给我的用户一些访问权限?但为了什么?

0 个答案:

没有答案