|
i tried it but its not working
can u please elaborate your answer
|
|
|
|
|
So... You have a Windows Service... You've added an installer (creating two components in design view) and you've added a setup project to your solution...
You've added the project output to the setup
Did I mention to add the project's output in the actions window aswell?
Right-click the setup project and open the custom actions window. Add the service's project output to the Install and Uninstall folder as well.. You should now be OK.
|
|
|
|
|
thanks for ur very valuable response
just want to know only one thing i have to add service output in custom action if i read ur response right because i have two project output one from window application and one from windows service
modified on Tuesday, November 17, 2009 8:56 AM
|
|
|
|
|
hey eduard
with the help of ur response i have installed my application n service both, but when i start my service it is givinf following message and stops
"the service on local computer started and stopped. Some services stop automatically if they have no work to do for example the performance logs and alert services"
can u help me with this
thanks for responses
regards
narendra singh
|
|
|
|
|
When sending data with BeginWrite async operation, how much time is passed until it fails to deliver data to client?
Server with TcpListener send data to TcpClient, and TcpClient application is not responding, e.g. it is being debugged from VS, thus until code execution is stopped, it can not read data from server.
Thus TcpListener application will accumulate much of the data to be sent, in case data volumes are large it will lead to out of mem soon?
Чесноков
|
|
|
|
|
This is something the server should handle gracefully regardless of whether or not network packets time out. As a rule of thumb we use 45 seconds as a timeout value; when we call BeginSend we wait that long and if the the async callback hasn't been called after the timeout value then we assume the client is down and close the socket. When the server closes the socket it can then flush the buffer of data that has been queued to be sent to it.
|
|
|
|
|
Hi All
I am going though this course for the 70-536 .net intro exam, and there is this suggested practice at the end of chapter 3
“Write a console application that processes your WindowsUpdate.log and displays the time, date, and exit code for any rows that list an exit code”
I am putting this string into input to test it out, the regular expression
should extract first the date, then the time, then the exit code, and inbetween these 3 groups it will match any number of white space or none white space characters with [\S\s*] to account for the the rest of the gobledegook in the log file.
The problem I am having is im getting is its returning just one match and not all the matches in the log file, there are some 30 odd exit codes in the log file, it seems to just extract the first date, the time from somewhere in the middle, and then the very last Exit code! I want to get every single one, The string input is testing it before I try the actual log file. The date time and exit code are in groups 1, 2, and 3.
input = @"1111-11-11 11:11:11:1111 Exit code = 212121
3333-33-33 33:33:33:3333 Exit code = 898989898";
Match test;
Regex rtest;
rtest = new Regex(@"(?<1>\d{4}\-\d{2}\-\d{2})[\S\s]*(?<2>\d{2}\:\d{2}\:\d{2}\:\d{3})[\S\s]*Exit code\s*=\s*(?<3>\S+)",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
if (Regex.IsMatch(input, regularExpression))
{
Console.WriteLine("Input matches regular expression\n");
for (test = rtest.Match(input); test.Success; test = test.NextMatch())
{
Console.WriteLine(test.Groups[1]);
Console.WriteLine(test.Groups[2]);
Console.WriteLine(test.Groups[3]);
}
}
else
Console.WriteLine("Input DOES NOT match regular expression\n");
|
|
|
|
|
Hi all,
Can any one advice me on how to implement webservices in Copying one database tables in to the another one?The source and destination databases have the same table structures but different data.The also run within the same network on diffrent server.
Any ideas will be much appreciated.
Many thanks
|
|
|
|
|
Just pass the data in through a webservice method and copy it into the DB.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you Chris much appreciated.
I have identity columns that are Unique for each table will that not be a problem in kepping the relationships that exist between tables on the destanation database.
How can i copy keeping the identity keys in order between various tables.
Many thanks
|
|
|
|
|
It would run faster if you just make the webservice initiate the copy, and perform the actual data transfer within a stored procedure using linked servers.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
Sorry Chris ,IT sounds a great idea , Can you please elaborate that with an example?
Thanks so much.
|
|
|
|
|
Hello m8 i have done this as a part of my program last year in school... My Solution is to First convert all the data from the first database into XML then You can either transfer the XML file to the other Web Service, Parse the XML create the schema and insert the data in the other database.
You have the option to also maybe encrypt the XML for security purposes. And what i think that is one of the advantages for this solutions is that XML is a standard that is read by many objects so this will make transfer easier. Hope this helps reply if this help you and take care
|
|
|
|
|
Hello,
i wrote sample program for speech recognition with vista engine, some command in my dictionary,for example "start" is similar windows command.
i want to know how can i disable windows dictionary.
thanks
|
|
|
|
|
Hi,
I am implementing c#.net application. Where since form last week i am facing problem with photo effects. My requirement is, i am capturing photos using web cam then captured photos can be modified like they can change the effects like (photo shop Filter options) watercolor, oil painting, comic,Soft focus, Sketch and etc.
Now i need to apply those effects to the photos can any one please suggest me how i can solve this problem.
Regards,
Y.JeevanRao
|
|
|
|
|
This is a complex task, and requires a lot of work. I'd say, forget it. If you don't know how to start, your best bet is to buy a library, you're not going to be able to write this.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
There is a free .NET framework you can use for imaging and many other things called AForge.NET
Here's a link
http://code.google.com/p/aforge/[^]
Here we rest... So why not make the best of it?
|
|
|
|
|
hi
i want to know that how can i connect webcam to c# program specialy how to connect several webcams to it and please answer with full explanation because i am new in c#
thanks in advance
|
|
|
|
|
mehrdad333 wrote: because i am new in c#
thanks in advance
If you're new, how come you previously asked this:
at first excuse me because of my poor english i have written a program for sending an image or for video conference via internet with sockets and i am using tcp protocols my problem is that when i test program on my computer it works fine but when i test it over internet with between two pcs the reciver cant recieve image correctly minwhile i am using dial up
If you're really new, why are you working on such complex things ? Either way, why did you ask twice ? And how come you didn't just search the site or google in general for the many examples that exist ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi christian
at first abaut program that u think i asked twice:
i download a project that could connect to one webcam but i want to connect to several webcams i searched but i didnt find any example
and second abaut knowlegment:
i know c# as i created several programs but i write this down because im afraid of complex answers and i want them to answer me in a simple way .
|
|
|
|
|
hello
i am new in c# i would like to know that how can i connect to an ip camera and how to stream image or video from it please answer completely and consider that i dont know anything abaut ip camera and c#
thanks in advance
|
|
|
|
|
mehrdad333 wrote: please answer completely and consider that i dont know anything abaut ip camera and c#
If this is true, then this is a dumb task for you to attempt. Try learning some C# first before you worry about more complex tasks like this. Otherwise, you're doomed to failure, no matter what you do, you'll run against your lack of basic knowledge in trying to impliment it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i need to connect with ip camera and nvr can u give any project in c# to connect with camera. If u dont have idea about nvr lets leave, if u have ip camera project alone also send me. My mail id is r.lawrence@omeonsolutions.com
|
|
|
|
|
Hi,
I am trying to insert/update/delete a field from sql server table using dataadapter in c# windows application.
Here insert and update are happening,but 'delete' is not working
I will show my delete part :
public int UpdateAllUserDetails(DataSet dsUsers)
{
private SqlConnection connection;
private SqlCommand command;
private SqlDataAdapter dataAdapter;
connection = new SqlConnection(ConfigurationManager.AppSettings.Get("conString"));
connection.Open();
dataAdapter = new SqlDataAdapter(command);
dataAdapter.DeleteCommand = new SqlCommand("DELETE FROM UserDetails WHERE vUserName=@vUserName", connection);
dataAdapter.DeleteCommand.Parameters.Add("@vUserName", SqlDbType.VarChar, 50, "vUserName");
int ret = dataAdapter.Update(dsUsers);
return ret;
}
can somebody say what is missing here?
|
|
|
|
|
Try and run the same sql statement in your DBMS as it will tell you what if anything is wrong with your statement. My guess is that you may have some dependencies in your tables, that prevent you from deleting.
|
|
|
|