473,385 Members | 2,004 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,385 software developers and data experts.

Fax operation using asp.net application.

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.t xt");

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

May 14 '07 #1
1 1857
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bharath Reddy VasiReddy" <va**************@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
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.t xt");

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

May 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sebastian | last post by:
Dear members, I'am thinking about the "best" way to connect to my sql-server via ADO.Net (if there is a best way). My application uses the sql-server very intensively. At the moment every...
4
by: Hardy Wang | last post by:
Hi, I have a win form application, when a button is clicked, a lengthy operation will be triggered. During the time program is still running, this application seems not to be able to response to...
0
by: CTDev Team | last post by:
Hi, We are using Exchange Server 5.5, and have applications written in VB6 and C# that read and process emails. We are experiencing intermittent errors similar to C# Application ...
0
by: Matt | last post by:
(can't find any of my previous post for same issue. please CC to my email address as well. Thanks!) Hi all, What is the possible reason that HttpWebRequest.GetRequestStream() may hang there...
4
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading...
6
by: Cerebrus99 | last post by:
Hi all, I'm making a Windows application that does some lengthy retrieval operations from a database and possibly from a internet resource. I want to show that the operation is going on, by...
7
by: Lisa | last post by:
I have an Access 2000 application that uses the following function to re-link my tables when I switch from my Current back end to a Dummy back end. I also use it to refresh my links. Function...
0
by: arvinds | last post by:
I have an application in which I have 2 forms. 1.Review Form 2. FilmForm. Review Form is used for Loading some images and we can transfer the Images from Review From to FilmForm by Drag-Drop...
1
by: adcomjbrown | last post by:
I am new to AzMan, but it seems as though what I am looking for is not possible, but I wanted to get some feedback. I have a set of Service Methods which I want to secure each method with a single...
1
by: =?Utf-8?B?U3VzYW4=?= | last post by:
Our application is written in C# with Visual Studio 2005 using Oracle Data Access Component (ODAC) 10.2.0.2.21 and Oracle Client 10.2.0.1.0 for connection to the Oracle database. Specifically, the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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...

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.