Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my code -

public int FaxDocument(string filename,string faxnumber)
{


FaxServerClass FaxServerClass = new FaxServerClass();
FaxDoc FaxDocClass = null;
//FaxServerClass.Connect(Environment.MachineName);
FaxServerClass.Connect("");
FaxDocClass = (FaxDoc)FaxServerClass.CreateDocument(filename);
FaxDocClass.FaxNumber = faxnumber;
FaxDocClass.SenderName = "pidex";
FaxDocClass.DisplayName = "This is fax Document";
FaxDocClass.RecipientName = "pidex";
int Response=FaxDocClass.Send();
FaxServerClass.Disconnect();

return Response;


}
this code give expection-The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)
i have install fax services ,what i else need

please help me
Posted

This is indicating that the 3rd party lib that you are using to send the fax cannot be started because:

1. It isn't resigered / installed on your system.
2. Some other component the third party lib uses is not installed.

There are a whole raft of app that will help you find what dependencies the lib requires...

Take a look here for some useful utils...

SysInternals

'listdlls' and 'procexp' may be useful...
========================================================================================================================

you need to ensure that the component has been registered on the system. Using regsvr32 with the lib will register it.

Do a google search for regsvr32....
=========================================================================================================================
steps follow it

first off I don't know what the executable name is of your library so you'll have to fill that bit in yourself...

1. Open a cmmand window
2. Go to the directory where the library exe is.
3. Run regsvr32.exe e.g. regsvr32 /i

this will pop up a messagebox indicating whether this has succeeded or not.. If it hasn't succeeded then I suggest you going back to the vendor of the library and get proper installation instructions...
 
Share this answer
 
v2
Comments
kailash solanki 20-May-11 4:05am    
i have got sucess messagebox but now i am getting Com Expection on my First Line of code-Retrieving the COM class factory for component with CLSID {D73733C8-CC80-11D0-B225-00C04FB6C2F5} failed due to the following error: 80040154.

what can i do
kailash solanki 20-May-11 5:13am    
hi i have register dll got sucesfully message but still i have getting same comexpection like-The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)
kailash solanki 20-May-11 6:55am    
i have got sucess sending fax but send method return integer value how can we check that confirm fax is send or not mean while fax status
gowthammanju 21-May-11 3:09am    
just post ur source code in zip files i will try to solve it
for more details log on to following

Please refer the links.

http://www.interfax.net/en/dev/asp
http://www.interfax.net/en/dev/webservice/samples/fax_asp_net_sendcharfax
http://www.java4less.com/fax_dotnet.htm



u wil, get some ideas


happy coding! cheers............
 
Share this answer
 
ceck out this link this might help u

http://forums.asp.net/t/1619757.aspx/1?obtuse+COM+errors+when+trying+to+deploy+a+windows+service
 
Share this answer
 
Comments
Sandeep Mewara 20-May-11 11:08am    
No need to post 3 answers. You can edit your answer and update it any given timne. Use 'Improve solution' link.
gowthammanju 21-May-11 3:08am    
hmmm sorry dude here after i will!
Sandeep Mewara 21-May-11 8:58am    
:thumbsup:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900