Fax operation using asp.net application.

  • Thread starter Thread starter Bharath Reddy VasiReddy
  • Start date Start date
B

Bharath Reddy VasiReddy

hai all,

I am using FAXCOM.dll for fax operation in my application. Here i am
getting an "Unspecified error" exception. Can anyone say me whats
wrong in my code.

Thanks in advance....


Here is the Code:
--------------------------

FAXCOMLib.FaxServer fxsrv = new FAXCOMLib.FaxServer();
FAXCOMLib.FaxDoc fxdoc =
(FAXCOMLib.FaxDoc)fxsrv.CreateDocument("fbharath.txt");

try
{
fxsrv.Connect(Environment.MachineName);
}
catch(Exception ex)
{
String str=ex.Message;
}

fxdoc.FileName = "fbharath.txt";
fxdoc.FaxNumber = "914023391105";
fxdoc.RecipientName = "Bharath Reddy VasiReddy";

try
{
fxdoc.Send();
}
catch(Exception ex)
{
string str= ex.Message;
}
finally
{
fxsrv.Disconnect();
}




Thanks and Regs
Bharath Reddy VasiReddy
eXensys
 
Is "Unspecified error" the contents of the Message property on the
exception that is thrown? What kind of exception is thrown? It's
impossible to tell from this code segment (which is for something that isn't
part of the .NET base classes) and the error provided what is going on.
 
Back
Top