简体   繁体   中英

RightFax Via Application Hosted on IIS

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();

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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