Fax operation using asp.net application.

  • Thread starter Bharath Reddy VasiReddy
  • 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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top