473,473 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error encountered while working with FAXCOM.dll

111 New Member
hai all,
I would like to share a small but yet valuable information about FAXCOM.dll to send fax.
We can send FAX using either through modem or using mailserver.
I have used modem to send fax. I have encountered a number of errors while doing this. I would like to share them with u all, because I havent seen much information about this application on the net nor in any forum.

Requirements for sending FAX using FAXCOM.dll (system32 dll)
1) Refer to the FAXCOM.dll in c:\winnt\system32
2) Install Fax Services (FAX drivers)
3) Fax service should be in running/automatic mode.
4) Modem which is used to connect to the internet to send the fax.
(Install modem drivers and make sure that the modem is shown in the device manager).
5) User should have enough permission to send the fax. (Admin privilages)

Example:
------------
Expand|Select|Wrap|Line Numbers
  1. FAXCOMLib.FaxServer fxsrv = new FAXCOMLib.FaxServer();
  2. FAXCOMLib.FaxDoc fxdoc = (FAXCOMLib.FaxDoc)fxsrv.CreateDocument("fbharath.txt");
  3. try
  4. {
  5. fxdoc.FileName = "fbharath.txt";
  6. fxdoc.FaxNumber = "914023391105"; //Main
  7. fxdoc.RecipientName = "Bharath Reddy VasiReddy";
  8. fxdoc.RecipientOffice = "eXensys";
  9. fxdoc.RecipientOfficePhone = "04023000891";
  10. fxdoc.RecipientState="Andhra Pradesh";
  11. fxdoc.RecipientDepartment = "Development";
  12. fxdoc.RecipientCountry="India";
  13. fxdoc.RecipientCity = "Hyderabad";
  14. fxdoc.RecipientAddress = "White Fields Servery No:6";
  15. fxdoc.RecipientCompany = "eXensys Software Solutions Ltd";
  16. fxdoc.SenderAddress="White Fields Servery No:6";
  17. fxdoc.SenderCompany = "eXensys";
  18. fxdoc.SenderDepartment = "Development";
  19. fxdoc.SenderHomePhone ="04023000981";
  20. fxdoc.SenderTitle = "Bharath Reddy";
  21. fxdoc.FileName = "fbharath.txt";
  22. fxdoc.FaxNumber = "914023391105"; //Main
  23. fxdoc.RecipientName = "Bharath Reddy VasiReddy";
  24. fxdoc.RecipientOffice = "eXensys";
  25. fxdoc.RecipientOfficePhone = "04023000891";
  26. fxdoc.RecipientState="Andhra Pradesh";
  27. fxdoc.RecipientDepartment = "Development";
  28. fxdoc.RecipientCountry="India";
  29. fxdoc.RecipientCity = "Hyderabad";
  30. fxdoc.RecipientAddress = "White Fields Servery No:6";
  31. fxdoc.RecipientCompany = "eXensys Software Solutions Ltd";
  32. fxdoc.SenderAddress="White Fields Servery No:6";
  33. fxdoc.SenderCompany = "eXensys";
  34. fxdoc.SenderDepartment = "Development";
  35. fxdoc.SenderHomePhone ="04023000981";
  36. fxdoc.SenderTitle = "Bharath Reddy";
  37.  
  38. fxsrv.Connect(Environment.MachineName);
  39. fxdoc.Send();
  40. fxsrv.Disconnect();

I got an exception called "Unspecified error" at fxsrv.Connect(Environment.MachineName); method call which was System.Runtime.InteropServices.COMException. This exception will be thrown when an unrecognized HRESULT is returned from a COM method call.

If u get the same error:
1) Delete the reference to the dll and add it again.
2) In my case the Fax dirvers where not installed correctly, when I have reinstalled the drivers it worked out.
3) Very likely you have run into permission issues. You have to fix your authentication and authorization for web application.
5) Does your application accesses any file resources in folder other than your web application.
6) Does your application accesses any resources over the network ?.
Is the call related to some network operation.
7) Your application might be running currently logged in user, this user probably is missing admin previleges.
8) Asp.Net running under asp.net user account which is very limited previleges account.
9) Asp.net default user doesnt have rights to activate COM objects we need to add user with sufficient rights and use the identity tag in web.config to set this user.
If we use windows authentication (anonymous not set) and we users go rights to activate COM objects we can see identity tag with impresonate = true attribute.

<%@ Page ASPCOMPAT = "true" language="C#">


Please refer to the previous article posted by me to know the status of the fax operation.Weather it has been sent succesfully or not. at : http://www.thescripts.com/forum/thread650334.html



Thanks & Regs
Bharath Reddy VasiReddy
Jun 26 '07 #1
1 6470
luch07
2 New Member
Hi,
I'm using Win XP and I built a simple application in .NET in order to send fax. I'm using Interop.FAXCOMLib.dll. I don't have a physical modem nor a physical fax, but I have a virtual modem and I've installed the fax service which is running in automatic mode. Well, I can't find the FAXCOM.dll and my problem is when i send a fax by using my application, the fax is not sent, just is enqueued and the error says "line is busy" until number of retries is exceeded.

please, any ideas?
Thanks
Jul 22 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: Alex | last post by:
Hello, I am after one week trying to make working IIS with ASP Net. I am really dissapointed about this situation. I tried every advice, article and so on... . It is not working......
0
by: Suresh | last post by:
I'm using "Faxcom.dll" to send the fax in asp.net. But when connecting to fax server, I'm getting the following error. "System.Runtime.InteropServices.COMException: Unspecified error" I'm...
7
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String...
7
by: Mathew Butler | last post by:
I'm investigating an issue I have when pulling data back from MS access I'm retrieving all rows from a column in a table of 5000 rows - accessing a column of type "memo" ( can be 65353 character...
8
by: =?Utf-8?B?Q2hlc3Rlcg==?= | last post by:
Hi All, We are doing development using remote login to distanced development machines. As our profile is local, when we want to do build in the remote machine, it takes long time. So in .NET 1.1...
3
by: bharathreddy | last post by:
This article will explain you how to find the status of the fax operation. (Using FAXCOM.dll). Author: Bharath Reddy VasiReddy Reference to the FAXCOM.DLL Reference to import FAXCOM...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.