简体   繁体   English

通过IIS上托管的应用程序进行RightFax

[英]RightFax Via Application Hosted on IIS

I'm having an issue getting connected to our RightFax server. 连接到RightFax服务器时出现问题。 If I create a sample project in C# and use the code below I can connect just fine. 如果我使用C#创建一个示例项目并使用下面的代码,则可以正常连接。 The problem is I need the same code in an application that is on my local IIS. 问题是我在本地IIS上的应用程序中需要相同的代码。 When it gets to OpenServer(), I get an Access Denied error. 当它到达OpenServer()时,出现“拒绝访问”错误。 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();

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. 更改运行应用程序池的用户,我确定您会有不同的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM