模拟不在ASP.net中工作 [英] Impersonation not working in ASP.net

查看:64
本文介绍了模拟不在ASP.net中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们正在开发一个生成MS Word文档的应用程序,并在客户端机器中打开,用户可以在同一服务器上编辑和保存假冒。



它在测试环境中工作,但是当它转移到生产时它会产生问题。

当我们登录服务器生成一个word文档通过用户界面,它工作正常,但当我们从服务器注销时,它抛出异常。



Hi,

We are working on an application which generates an MS word document and opens in the client machine where users can edit and save in the same server using Impersonation.

It worked in test environment but when moved to production it is giving problems.
When we logged into server generates a word document through UI and it is working fine but when we logged off from server it is throwing below exception.

Word experienced an error trying to open the file.
Try these suggestions.
* Check the file permissions for the document or drive.
* Make sure there is sufficient free memory and disk space.
* Open the file with the Text Recovery converter.
<filename>









任何人都可以帮忙解决以上问题问题。





Can any one help this how to solve the above issue.

推荐答案

您的模拟用户(以web.config或其他方式注册)在生产服务器的该目录中没有适当的权限。您只需将该目录的适当权限分配给模拟用户。
Your impersonated user(register either web.config or other way) has not proper permission in that directory in your production server. You just assign appropriate permissions to that directory to the impersonate user.


这篇关于模拟不在ASP.net中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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