hi,
I'm trying to populate a ASP.NET DropDownList with SQL Server data using C#.
I can do this just by using VS2008 Drag 'n Drop features but i would like to accomplish this just by using C#...
Type: Posts; User: IndioDoido
hi,
I'm trying to populate a ASP.NET DropDownList with SQL Server data using C#.
I can do this just by using VS2008 Drag 'n Drop features but i would like to accomplish this just by using C#...
hey everyone!
My problem is finally solved :)
The problem was with my anti-virus software...yes, it's true. I wasn't able to connect to my virtual machine because i had bit defender installed,...
hi guys!
i resolved the problem...
it's all about authentication.
i have to insert my windows admin authentication in the service properties of my server application so that it can run the...
sorry...copy&past failure :S
strcpy_s(buffer, sizeof(buffer), "cmd /C \"net localgroup > C:\\gList.txt\"");
the cmd will read:
something really strange is happening...
i'm having no problems using createProcess() to execute commands like:
but then run this simple command:
DAMMM VISTA!!! :mad:
Tomorrow i'm going to test my app between two winXP OS, and see the results.
By the way...isn't it strange i can run the client and server app both under vista without...
i already spoken with my professor, and he said that i need to have admin privileges in both host and virtual machines. And for the pipes to work i have to activate file and printer sharing in both...
Sorry about my last this comment, i was wrong, it "triggered" the same checking:
if (hPipe==INVALID_HANDLE_VALUE)
I called the DisplayError function in that checking, and it showed me this...
hi BobS0327
i've changed the error checking code to:
if (hPipe==INVALID_HANDLE_VALUE)
I still get the same error in the event viewer when i send a command to the server :(
But, in the...
i've managed to run the script like this:
CreateProcess(NULL, "cmd /C echo test > c:\test.txt", NULL, NULL, 0, 0, NULL, NULL, &si, &pi))
What are the differences?
hey everyone!
My client and server apps are working nicely on the same machine. I can send command lines from the client app to the server via pipe and the server runs 's the commands. How can...
your right!
i changed it back to:
char *pszPipe="\\\\192.168.1.82\\pipe\\ServNT";
and it "works"...
really strange :S
oh! i thought that userid was different from user name, sorry :S
ok, i will humor you...
after changing:
char *pszPipe="\\\\192.168.1.82\\pipe\\ServNT";
to this
When you say to add my userid to that group, do you mean the userid i use in the host machine? If so, how can i get my userid? :S
I think the problem is really in the authentication :S
This project uses windows authentication between the client and server.
If i'm in a specific account sending a message through a named pipe...
lol, no offense taken ;)
Yes. Every time i make changes to the server code i remove the old one and then install the newer version, then run it from windows services.
sorry tabstop, i pasted the wrong thing :(
My previous post is now correct
okay...
this is what i did:
char *pszPipe="\\\\192.168.1.80\\pipe\\ServNT";
if (!WaitNamedPipe(pszPipe, NMPWAIT_WAIT_FOREVER))
{
DisplayError(pszPipe);
return 1;
BobS0327:
where do i add the function? On the server app or client app?
and were in the code do you want me to call it?
hi matsp.
It can't be the firewall, because i turned it off on both machines (local and virtual).
BobS0327: I'm going to try that and tell you what happened.
If it is a security issue on the...
hi BobS0327, thanks for the reply :)
i changed the the ip of the target machine to it's computer name, and it didn't work either :(
char *pszPipe="\\\\TSCII03CLT1\\pipe\\ServNT";
What...
lol :D
know i get it ;)
thanks, going to try it...
sorry Salem, but you lost me :(
Here is my transactNamedPipe() function i use to send a string to the pipe and receive a string from it:
TransactNamedPipe(hPipe, str, lstrlen(str)+1, str,...
Salem: i'm using named pipes to send the scripts in a string to the server. How do i send a file through a named pipe?
hi nucleon: i tried your method (/C and /K) with these CreateProcess(), but...
Hi...
I'm trying to send a message to a server using a named pipe. I managed to send a message from the client application to the server application in the same machine. But when i try sending the...