Differences in Behaviour between Admins and Users

  • Thread starter Thread starter John M. Collinson
  • Start date Start date
J

John M. Collinson

We have written a small command line tool for our legacy application that
allows the legacy application to pass an XML document to the .NET command
line code (C#) and then it will fax the formatted XML to the intended
recipient using FAXCOMLib. The code works great with one significant
problem. If the code is run under the context of an Adminstrator everything
works fine, I can send multiple faxes one after the other and they all
appear in the Windows 2000 fax queue and are eventually sent. If I perform
the same task as a regular user, only the first fax is placed in the queue
and sent. The remainder of the faxes appear as deadlocked processes in the
task manager but never complete the faxing process and never appear in the
Fax queue. I did find an article regarding setting the permission on the
MSFax directory for the Users group which allows the first job to fax
successfully but we need to be able to add faxes to the queue concurrently
without causing deadlock within the application. Once the deadlock has
occurred no one, including the adminstrator is able to fax until all of the
faxing processes are killed in the task manager.

Here is the Fax method it if helps.

public void Fax(FaxNode faxNode)
{
if (faxNode.FaxNumber!="")
{
FAXCOMLib.FaxServer faxServer = new
FAXCOMLib.FaxServerClass();
faxServer.Connect(this.faxServerName);
FAXCOMLib.FaxDoc faxDoc;

faxDoc =
(FAXCOMLib.FaxDoc)faxServer.CreateDocument(this.faxFileName);
faxDoc.FaxNumber = faxNode.FaxNumber;
faxDoc.DisplayName = faxNode.DisplayName;
faxDoc.RecipientName = faxNode.RecipientName;
faxDoc.DiscountSend = faxNode.DiscountSend;
faxDoc.SendCoverpage = faxNode.SendCoverPage;
faxDoc.Send();
}
}

Any help would be appreciated.

Thanks
John
 
Could you please clarify the following questions:-

1. What do you mean by " The remainder of the faxes appear as deadlocked
processes in the task manager". Is you application spawning different
processes and each trying to send a fax??
2. Is there any event being logged into the event logger? If yes can you
please send the details of the event.
3. Have you given print permissions for the user in the printer using which
you are printing the faxes?

--
'Chandrasekar R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
please do not sent email directly to this alias. This alias is for newsgroup
purposes only.'
 
Back
Top