|
ya u are right but the thing is I dont want the webservice to be called by the client but server should send the file to client by itself provided that the internet ip of the client is known..
I think i missed this point hope you are clear with the senario.
I dont want PULL mechanism at client side but PUSH at server side.
|
|
|
|
|
First you should ask yourself if you really need the PUSH - mechanic.
I'm not an Webservice expert but I think you can't handle this with it.
No matter what you will have to provide the client with some kind of software - so why not provide with a polling client app?
(Do you really want your server to PUSH several hundred files over the internet when you are not sure if the client still listens or even wants this?)
|
|
|
|
|
ok..let me tell you real senario.
in my case client is connected with the server whole 24*7, i.e., server will be having the internet Ip of the client all the time(so client will be ready to take the data every time the server is sending the data).
and as i said there may be 500-600 different client accross the internet network for the server to send the data and server will map the data to the correct client will send the data.
any other solution??
Thanks in advance.
|
|
|
|
|
Dear All.....
I am using .Net Remoting with C#.
I want to access windows Form, from the Client. Means on calling some function from the client windows form at server end should be invoked (activated).
So accessing Form's object as singleton object in client side and trying to activate that form.
Now the problem is, That form (Form1) becomes activated but hangs also. Message Box which is in Form1's Load Event is visible but still Form1 is hanged. Server Form and Client Form is not hanged, and are workable.
Application not throwing any exception. So suggest me, what to do. Or how i can access form on Server Side using .Net Remoting.
Thx 4 Reading...
Enjoy Programming!
Sid
|
|
|
|
|
Well if a modal MessageBox is open (that is shown in form_load) will of course hang the parent form (yeah the dialog is *modal*).
And if I get you right you are publishing your form-object via remoting? You should not do something like this! Better use a static class and event with remoting.
|
|
|
|
|
I develop a mobile telephone program using c#,I need to test if the mobile signal is working or in good state,how to deal with it?
|
|
|
|
|
|
hi all
can any one help me how to disable all buttons in a form except few using a method.
I coded to disable all buttons as:
private void disable_buttons()<br />
{<br />
foreach (Control ctrl in this.Controls)<br />
{<br />
if (ctrl.GetType() == typeof(Button))<br />
{<br />
ctrl.Enabled = false;<br />
}<br />
}<br />
<br />
}
but when called from same class load event it doesnt works?
pls suggest me for this problem?
<br />
private void UserMaster_Load(object sender, EventArgs e)<br />
{<br />
disable_buttons();<br />
}<br />
thank u
Kssk
|
|
|
|
|
Are you calling it before the initialize method which creates the controls and also enables them ? It should work, it will disable all buttons, you need to reenable the ones you don't want to disable.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
this might have the problem that buttons inside panels or frames are not disabled (just use a recursive walker).
Concerning your question: as was said before: disable all and then enable the ones you like or give every button a describing Tag (for example a groupname or whatever) and check for this Tag in you foreach-loop to only disable the ones in the given group.
|
|
|
|
|
if you replace if (ctrl.GetType() == typeof(Button)) by if (ctrl is Button)
you get simpler code, that recognizes Buttons as well as controls that inherit from Button.
|
|
|
|
|
Hi guys..,
I want to Create Document Library in SharePoint Programmatically using Web Service
from my C# / ASP.NET Application .
I'm using SharePoint 2007, Visual Studio 2005.
Can u please help me ? It's very urgent.
Thanks
Mohamed Nazeem
Software Engineer
Bangalore
|
|
|
|
|
|
Hi,
I hope every one is aware of google chat and yahoo messenger ...
so when ever we login at two different systems using same id (in yahoo) the previous one gets logged off ...n.. in google we can do this n both the connections are alive and whenever a message is send both the messengers get the message....My question is that how the google server recognises which system is connected with the same id ..in clear words how it manages the messaging ..is it based on the ip address or what plz do reply..................regards sindhu tiwari
its me sid
|
|
|
|
|
It obviously keeps a list of IP addresses instead of taking the last one it saw, and just throwing the one it had away.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks for the reply..will u plz tell me how to get the ip address of the client.....
regards
sindhu tiwari
its me sid
|
|
|
|
|
Are you using a socket for communication ? If yes check Socket.RemoteEndPoint
|
|
|
|
|
sindhutiwari wrote: I hope every one is aware of google chat and yahoo messenger ...
Yeah, I wasn't like born yesterday
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
We have a windows application developed using c#. We have a process in this application where excel objects are created some data is populated and some calcualtions are done too (used various excel objects like workbook, sheet, range). The required tasks are being executed fine but there are instances where the same tasks fail. An error is being thrown at that time and it is "THERE IS NOT ENOUGH MEMORY TO RUN MICROSOFT EXCEL. PLEASE CLOSE OTHER APPLICATION AND TRY AGAIN" The error is pointed to Excel object creation and it shows - "An unhandled exception of type System.Runtime.InteropServices.COMException occurred in application_name.exe"
What could be the cause for the error? Please provide some suggestions.
Thanks
gauthee
|
|
|
|
|
Hi!
With this degree of information it's really hard to give you the exact reason for your problem, but I think most likely it's due to resource leaks.
Does it work again after restarting your application (and Excel)?
Does it fail on first run or after a while?
Do you release all the COM objects your app creates?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
mav,
Thanks for the reply!
Sorry, if the info provided was unclear, what else you would require to analyze further?
The other details are as follows:
1.When the error occurs we no longer can open an excel file.
2.After the system restart the excel application work.
3.Strangely the error(not enough memory) willnot occur when the number of processes running in my machine are minimal, when i run more applications/processes in my system this exce memory error occurs.
4.all COM objects related to excel are being released(not 100% sure though). we are searching for any excel processes running and then doing the kill process too!
Thanks!
gauthee
|
|
|
|
|
Hello everyone,
I need some help. I have been working on it for some time but havent been able to think of any solution. Even had thought of making do without it, even though it was a major part of my project. To be honest, I am a beginner and hence unawares about many of the stuff. So here is my problem:
I am working on a "PUBLIC TRANSPORT INFORMATION SYSTEM" (In India we dont have one yet for most cities). Most of the stuff I have been able to do, but I am stuck at one point. I want to display the selected route between two places on the map. I want the map to be drag and move (like we have for pdf files). This is since the map of the city is extremely large (3 feet * 2 feet on paper, which I plan to scan. I may reduce the size a little, but not by much as I want the lanes and small roads to be visible with their names).
So, I want the following things to be done (in order of their priority). Please help me out, I really need it.
1> Firstly, I want the large image to be shown in a small viewport using drag and move so as to allow the user to wander through the whole map of the city.
A pic of what I mean is shown here:
http://www.geocities.com/this_is_shailesh/index.html
2> Secondly, I want to be able to move the viewport to a specific area of the map. For e.g., when the user selects a particular place on the map in a drop down list, I want the viewport to move to that part of my map which shows that location.
Currently, the only way I thought it could be done is by mapping the pixel positions for all the places in the drop down list and then moving the viewport such that the corresponding pixel position is the center of the viewport. But I admit, I really dont know how to implement this.
3> Finally, if its posible, is there any way by which I can highlight the selected paths.
My map will be static. So I was thinking on the lines of placing markers on all the stations (overlapping exactly on top), whose visibility can be adjusted on/off. When they are a part of the route, their visibility will be ON, and when not they will be OFF. The markers could be plain coloured circles, so that a series of dots (or circles) will indicate all the stops/stations along the selected path.
But this also I dont know how to implement in code. I have no clue how I can make these markers overlap the stations, esp coz the map will never be shows in its entirety at any time. I mean how do I do the pixel positioning with respect to the image rather than the viewport, which is what is generally done in case of pictureboxes etc.
So if anyone can help, I did be deeply indebted. In anyone knows of any precoded stuff or libraries i can make use of, please do inform. Or else, if you have any alternate suggestions for me, it would be great as I am anyways not making much progress right now.
Thanks a lot in advance. Waiting anxiously
|
|
|
|
|
Where is the map coming from ? Showing a scrolling image and jumping to parts of it is trivial, so long as the image is in your control.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
yes yes the image is totally mine. i will have total control over it. SO what do i need to do........... also please give me some links to stuff that you feel i could learn from or make use of. Thanks a lot..........
|
|
|
|
|
Hi all ,
I have to acess some function just after every statement, so do i need to make one more class that will contain all frequently used functions and global variables. or is there any other way to do them..
as an example..
class abc{
public int a;
public void XYZ();
}
void XYZ()
{
//do something
abc();
//do something
abc();
//do something
//abc();
}
and abc internally calling someother function...
so what need to do for this abc ....
T@SU
|
|
|
|