473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error encountered while working with FAXCOM.dll

111 100+
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 6468
luch07
2
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.