|
ys I tried alot bt I didn't find any 64 bit "DirectX 64-bit redistributable". Some say that now microsoft doesnt support 64 bit MDX but I hope it should be there...
|
|
|
|
|
I hope, by MDX, you mean Managed DirectX, because that's been dead for quite a while now.
|
|
|
|
|
MDX has been dead for a long time now. Can you switch to something like SlimDX (IIRC it has a 64bit version) or are you not in a position to do that?
|
|
|
|
|
hi,
i have created c# project with backend mysql.and i created installer .ok fine.
but my question is: how to include database tables created along with installer.
|
|
|
|
|
You have to include the database and the configuration as redistributable files and install it with the installer.
Veni, vidi, caecus
|
|
|
|
|
plz give me in detail .i don't know how to do
|
|
|
|
|
|
Hi,
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.
Hope someone can help! Thanks in advance!
|
|
|
|
|
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
RAH
|
|
|
|
|
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)?
|
|
|
|
|
Check if you have the service running under right permissions.
|
|
|
|
|
May I ask how do I check? Sorry I'm totally new to all these. Thanks!
|
|
|
|
|
Did you look in the Application Eventlog?? Any exceptions will show up in there.
|
|
|
|
|
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
STS
|
|
|
|
|
Member 10400691 wrote: 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) ?
You're kidding me, right?? Why would you look for bad log entries on the machine where it works??
Alter the code in your service to write everything it's doing to the Application Eventlog, from OnStart on.
|
|
|
|
|
Dave Kreskowiak wrote: You're kidding me, right??
Exactly my thought when I read that.
|
|
|
|
|
Member 10400691 wrote: but no emails is sent How do you send emails? Via an external mail provider like google mail? Did you configure that mail account correctly? Has your service access to the network?
|
|
|
|
|
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.
STS
|
|
|
|
|
For the purpose of diagnosis, also try running the service with a different Windows account - an account which can send email via common email clients.
|
|
|
|
|
Member 10400691 wrote: Hope someone can help!
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#.
private void btnstartserver_Click(object sender, EventArgs e)
{
int portno = Convert.ToInt32(txtportnum.Text);
byte[] receivedBytes = new byte[1024];
IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHostName());
IPAddress ipAddress = ipHost.AddressList[0];
IPEndPoint ipEndPoint = new IPEndPoint(ipAddress, portno);
txtboxstatus.Text = "Creating socket object...";
Socket listener = new Socket(AddressFamily.InterNetworkV6,
SocketType.Stream,
ProtocolType.Tcp);
listener.Bind(ipEndPoint);
listener.Listen(10);
txtboxstatus.AppendText("Listening on " + ipHost.AddressList[0].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...");
try
{
FileStream fs = new FileStream("E:/Demo/IpData/Call.txt", FileMode.Create);
StreamWriter sw = new StreamWriter(fs);
sw.Write(receivedvalue);
sw.Dispose();
fs.Dispose();
}
catch (Exception ex)
{
txtclient.AppendText(ex.Message);
}
}
Even I tried to use BeginAccept(.....), but in vain.
Thanks,
DotNetTide
|
|
|
|
|
I have a feeling that you are doing this the wrong way round. Are you sure the PBX is trying to do a connect to your server code?
Veni, vidi, abiit domum
|
|
|
|
|
No the PBX is not trying to make a connect. Even I am new to this socket programming, this is what I got as basic info from my peers in my company who are already working on sockets and PBX.
Please point me to a link or provide me a sample for connecting to PBX as client and fetching data from it. I also tried to connect to PBX by writing a client app and considering PBX as server.Even then I was unable to connect.
|
|
|
|
|
Arjun Mourya wrote: I got as basic info from my peers in my company who are already working on sockets and PBX. Then you need to talk to them and find out what address and port you need to connect to, and what special protocol exchange you need to use.
And your code needs to be written as a client application, not a server. Sample code for this can easily be found via Google.
Veni, vidi, abiit domum
|
|
|
|
|
I know the port number,address and protocol. I was able to make connection to the PBX by writing client application. But I did not receive any data apart from "\r-'. Any idea on how to proceed further?
|
|
|
|