I hope that will help me with this issue.
我希望这能帮助我解决这个问题。
I have a problem with a application (winforms) build with .net framework 4.5
and ReportViewer 11 (Reporv Viewer 2012). Ago few weeks I deploy using Windows Azure and install to clients, but when i run a report show me an exception.
我在使用.net framework 4.5和ReportViewer 11(Reporv Viewer 2012)构建应用程序(winforms)时遇到问题。几周后我使用Windows Azure进行部署并安装到客户端,但是当我运行报告时显示异常。
**An error occurred during local report processing.
Failed to load expression host assembly. Details: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)**
When I deploy in network (LAN) was working fine, but when I deploy via internet i get this error, this error only occurs when i start the application via shortcut .appref-ms, but if I start application executing .exe file show report correctly.
当我部署在网络(局域网)工作正常,但当我通过互联网部署我得到此错误,此错误只发生在我通过快捷方式.appref-ms启动应用程序,但如果我启动应用程序执行.exe文件显示报告正确。
Some else have this problem and how solve?
有些人有这个问题,如何解决?
Thanks.
谢谢。
1 个解决方案
#1
0
I found my problem.
我发现了我的问题。
I solve this only comment this line, because i dont use ngen ;). i just comment attribute [LoaderOptimization(LoaderOptimization.MultiDomainHost)] in Main method. This works fine for me, check if you have and comment ;).
我解决这个问题只是评论这一行,因为我不使用ngen;)。我只是在Main方法中注释属性[LoaderOptimization(LoaderOptimization.MultiDomainHost)]。这对我来说很好,检查你是否有评论;)。
#1
0
I found my problem.
我发现了我的问题。
I solve this only comment this line, because i dont use ngen ;). i just comment attribute [LoaderOptimization(LoaderOptimization.MultiDomainHost)] in Main method. This works fine for me, check if you have and comment ;).
我解决这个问题只是评论这一行,因为我不使用ngen;)。我只是在Main方法中注释属性[LoaderOptimization(LoaderOptimization.MultiDomainHost)]。这对我来说很好,检查你是否有评论;)。