|
atulah wrote: but when any of the client disconnects,
CPU usage on the machine which runs the server reaches to 99%...which never falls after taht..
and server application crashes after some time...
It seems that the thread which is assigned for the particular client is still running on the server machine and trying to get communicated with the client,. This is making the processor utilization high. One solution could be sending one quit message to server when client is going to close. When server gets the message, release the threads and all other resources allocated for this client. I think this will solve problem.
|
|
|
|
|
thanks man....
i will try it..and let u know what happens....
atul hirve
|
|
|
|
|
-I have made an application in c#.net,window application.
-Now to install it on other computers, i want to make its setup.
-I have already made setup of the application using d below link :
http://www.codersource.net/csharp_installer_projects.html[^]
- I have made my database in sqlserver2000,
-I have copied its 2 (database file and log file) from its actual path (C:\Program Files\Microsoft SQL Server\MSSQL\Data) and pasted it in my dotnet application folder.
-While making setup of application i just included those 2 database files with the application(from >bin>debug) of project (as instructed in above link)
Setup is build without errors, but when i run i get errors,they r related to sqlserver.
-Do i need to make database setup separately?How?
I would be grateful,if any help is offered.
Thank you.
Regards nekshan.
|
|
|
|
|
the only error facing by all users is of .net framework. if the target machine doesn't have .net framework then not able to run setup. check this is facing error.
or
my friend is on lunch once he came then i ask him & then replay u the exact error which u faced.
bye.
|
|
|
|
|
I created setup(as instructed in that link) just included 1 application of my proj(from >bin>debug)and my 2 sqlserver (database files) in the application setup(as instructed in that given link).
(In that link they used access,i have used sqlserver.)
It is build successfully, but
M getting this error after running the created setup (application):
System.InvalidOperationException: The ConnectionString property has not been initialized.
at System.Data.SqlClient.SqlConnection.PermissionDemand()
at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at WindowsApplication1.login.login1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
plz chk n tell
thanks.
wen r u coming??
tc cu soon.
|
|
|
|
|
You said you're using SQL Server, and copied the database files on the client machine, but is SQL Server actually installed on that machine? If not, you're out of luck.
You will either have to install SQL Server on the machine where you install the database files, or you will have to go for some other data source, like MS Access.
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Yes, SQL Server is installed on that machine.
Even if i run that setup on my own pc(which has sqlserver), it is giving this error
|
|
|
|
|
I've read the article that tells u how to make a setup... and the database it was talking abt was a MS Access Database which they copied in the application folder but in case of MSSQL, I think this will not suffice coz you need to restore that Database in the SQL Server on the end user machine. or whatever ur network configurations are. So just install the application on the end user and restore the Database on the End user machine so that it can work properly.
hope it helps
Rocky
|
|
|
|
|
does anyone know how to query an excel file then writing the results of the query into a new excel file?
is this possible?
|
|
|
|
|
|
I am developing a small program for Window Mobile 5. I wonder how I can reload the parent window after closing a child window. I have a variable that needs to be refreshed in the parent window. (its a configuration variable that needs to be updated)
|
|
|
|
|
Hi All,
I am new to this forum....
I am working on simple Voice\Video Chat Application.
i have implemented it using TcpListener and TcpClient classes in C#.
Everything works fine(control message passing and communication) but
when any of the client disconnects, the CPU usage on the machine where server
runs reaches to 99%. which never comes down...
Anybody faced similar problem here? is there any problem with
TcpListner,Client or streams?
I have tried closing them after use...but of no use....
Please Guid....
Waiting for reply....
atul hirve
|
|
|
|
|
Hi every one,
I just started to make an MDI aplication in C# and I was tryin to split the MDI parent window showing a treeView to manage a few links. and I was trying to open a new form when we click on a tree Node so I coded some thing like this in the after select Event
void treeView1_AfterSelect()...<br />
{<br />
myForm1 f = new myForm1();<br />
f.Show();<br />
}
but the prblem is that the new window doesnt show up. So what should I do here??
thanks in advance
Rocky
|
|
|
|
|
make a break point and
be sure that it enter this handler in debug mode
if it does not enter this handler then try to code another handler to the treeview control in order to display the form
also make form.MDIParent= this ; this mean the parent window
Amr Abdel-Mohsen Hafez
Software engineer
Cairo
E g y p t
|
|
|
|
|
I coded somethin like this and its definately goin in that event handler
void tV1_NodeMouseClick()..
{
if(e.Node.Name == "Node0")
{
Form1 m = new Form1();
m.MdiParent = this;
m.Text = "Trial";
m.Show();
}
}
It works if I remove the splitcontainer from the MDI parent form but it doesnt show up at all when I have this splitContainer on. What I was tryint to do is to show the new window in the other half of the screen while keeping the treeView on the leftside of the screen
if there's an alternative in ur mind on how to appcomlish this idea
|
|
|
|
|
make the panel2 of the split container collapsed
panel2Collapsed=true from the properties window
and resize the panel1 as you want..
then try your code , it will work well..
Myform frm=new Myform();
frm.MDIParent=this;
frm.show();
and good luck to complete ur project
Amr Abdel-Mohsen Hafez
Software engineer
Cairo
E g y p t
|
|
|
|
|
sir I still havent been able to pull it off.
I did as u told me but it still the new window is not showing up in the other half of the screen.
|
|
|
|
|
hi all,
can any one point out a component to convert ppt to video... Google shows me me several applications to do so...Not a single component
thanking you in advance
jaz
-- modified at 0:57 Thursday 26th April, 2007
|
|
|
|
|
plzzzzzzzzzz
|
|
|
|
|
hi.. guys.. currently i'm doing a project in C#.. i gt some prob..
can anyone be able to help me.. please.. thanks! can u reply to my email:a_cole23@yahoo.com
-- modified at 3:06 Wednesday 25th April, 2007
|
|
|
|
|
Mate, do *not* repost, esp. within a day.
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
You do realise that you have to tell us what your problem is in order for us to help you?
|
|
|
|
|
Hey, Colin, did you notice how my post's subject is different from the OP's? I do it myself in the Lounge very often, but I swear I didn't do it here.
Is this a more virulent variant of the bug that screws up where replies end up?
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
hi colin.. i need someone to check my codings, coz there r some errors and also i'm new to C#, i dun really understand how to explain the prob. if u are willing to help me,can i have ur email so dat i can send u my prog or u can also email me a_cole23@yahoo.com.. thanks!!!
|
|
|
|
|
cole23 wrote: can i have ur email so dat i can send u my prog or u can also email me a_cole23@yahoo.com..
I don't give out my email. I used to, but it just got abused by people who thought I was there to solve their every problem.
If you want private help then can I suggest you log a support call with Microsoft or any one of a number of other support companies that will be very willing to help.
Also, I find it very difficult to understand text speak. #
cole23 wrote: i dun really understand how to explain the prob.
If you can't explain it here, then how do you expect to explain it in an email?
|
|
|
|