I am using microsoft directX DLL which work if we create 32 bit setup then it is working. But if we try to create a 64 bit setup then it shows error. please let me know there is any 64 bit DLL is available. Thanks a lot in advance.
I developed Windows Service and created Setup in one computer and copy Setup1 Windows Installer Package to a different computer and run there. This Windows Service is supposed to send automated emails daily from the second computer.
It works on the first computer where it is developed but doesn't work on a different computer where the package is installed. There is no error or whatsoever. I can still track its activities on Eventlog but no emails is sent. Why?
I have provided all the necessary email log in credentials, port no and server name.
At a guess I would say you have a problem within your service where there is a missing reference or library on the deployed computer. You need to debug it, but it is in the deployed machine you say, then error trap every method in your service and write the error to a log, redeploy and inspect the log file.
Never underestimate the power of human stupidity
But then there is no error when I build and install on the developing computer (let's say the 1st computer). Can I not assume when I get the setup windows service installation package is complete with all necessary reference or library after building and installation? And can't that package be used as it is on the deployed computer (let's say the 2nd computer)?
The application event log of the first computer (where the program is written) or the application event log of the second computer (where the installation package is installed) ?
Yes there are events logged in application event log in both computers. They are logged at the correct time interval. Then why are not emails sent out from the second computer? I have provided all necessary gmail smtp credentials. Emails are sent out if I run the service on the first computer
Yes via google mail! Yes I configured that correctly. Emails are sent when I run the service from my first computer (where the service is written). They are not sent on my second computer (where the installation package is installed). The 2nd computer is connected to the network.
For starters it appears that this has nothing to do with installation even though you spent a bit of time explaining about installing it.
If the install failed then either the service wouldn't appear at all or the service would not start.
It appears that the service is in fact starting. So that means there is some problem which has nothing to do with the install. If you were missing a dependent dll then the service would be unlikely to work.
What is probably happening is that either your code is not even attempting to send the email or it does and fails. And of course you don't have any code that would even give you a hint as to what that is. The way to solve that is to add logging.
Doing that allows you to solve problems going forward.
The alternative is to
- Build a debug version of the service
- Install it
- Install VS
- Attach to the running service
- Step through it.
As noted in another thread one reason could be permissions. The service ALWAYS runs as a user. So which user does it run on the first computer? Which on the second? It could be the firewall preventing the email code from connecting to the email server. If you were collecting and reporting (logging) errors then this would be obvious immediately.
I have written the below code to capture data from Panasonic PBX(KX-TDE 100/200) and write it to a file. When I try to run the below code, it shows "not responding" in the Task Manager.
Also I tried to debug where might be the problem.The line
Socket socket = listener.Accept(); will be hit while debugging and after that it shows "Not Responding".
The PBX is connected to LAN in my company.Any configurations need to be done on my LAN?
I tried the same code for IP:127.0.0.1 to send a string to client app and it worked.But when I tried to pull data from PBX, its not working.
The LAN wire from my PBX is connected to the switch.
Please let me know what mistake I am doing. Also point me to good samples on capturing data from PBX using C#.
privatevoid btnstartserver_Click(object sender, EventArgs e)
int portno = Convert.ToInt32(txtportnum.Text);
byte receivedBytes = new byte;
IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHostName());
IPAddress ipAddress = ipHost.AddressList;
IPEndPoint ipEndPoint = new IPEndPoint(ipAddress, portno);//2112
txtboxstatus.Text = "Creating socket object...";
Socket listener = new Socket(AddressFamily.InterNetworkV6,
txtboxstatus.AppendText("Listening on " + ipHost.AddressList.ToString() + ":" + portno.ToString() + "\r\n");
Socket socket = listener.Accept();
txtboxstatus.AppendText ( "\n Connected with ..." + ipEndPoint.Port);
string receivedvalue = string.Empty;
receivedvalue = ReadMessage(socket);
txtboxstatus.AppendText("\n Message read.....trying to write to the file...");
//writing the received value from client into a file.try
FileStream fs = new FileStream("E:/Demo/IpData/Call.txt", FileMode.Create);
StreamWriter sw = new StreamWriter(fs);
catch (Exception ex)
Even I tried to use BeginAccept(.....), but in vain.
Last Visit: 31-Dec-99 18:00 Last Update: 24-Sep-23 4:38