RightFax 通过 IIS 上托管的应用程序
我在连接到 RightFax 服务器时遇到问题。如果我用 C# 创建一个示例项目并使用下面的代码,我可以很好地连接。问题是我需要在本地 IIS 上的应用程序中使用相同的代码。当访问 OpenServer() 时,我收到“拒绝访问”错误。以前有人经历过这种情况吗?这是我正在使用的非常简单的代码......
RFCOMAPILib.User selectedUser;
RFCOMAPILib.FaxServer fxServer; ;
fxServer = new RFCOMAPILib.FaxServer();
fxServer.ServerName = "TESTServer";
fxServer.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;
fxServer.AuthorizationUserID = "Axxxxxx";
fxServer.AuthorizationUserPassword = "";
fxServer.UseNTAuthentication = RFCOMAPILib.BoolType.False;
fxServer.OpenServer();
I'm having an issue getting connected to our RightFax server. If I create a sample project in C# and use the code below I can connect just fine. The problem is I need the same code in an application that is on my local IIS. When it gets to OpenServer(), I get an Access Denied error. Has anybody ever experienced this before? Here is the very simple code I am using...
RFCOMAPILib.User selectedUser;
RFCOMAPILib.FaxServer fxServer; ;
fxServer = new RFCOMAPILib.FaxServer();
fxServer.ServerName = "TESTServer";
fxServer.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;
fxServer.AuthorizationUserID = "Axxxxxx";
fxServer.AuthorizationUserPassword = "";
fxServer.UseNTAuthentication = RFCOMAPILib.BoolType.False;
fxServer.OpenServer();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过使进程以经过域身份验证的用户身份运行来解决这个问题。更改应用程序池运行的用户,我相信您会得到不同的结果。
I solved this problem by making the process run as a domain authenticated user. Change the user that the application pool is running as and I'm sure you'll have different results.