.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
ASPEvil
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Post New Web Links

Using a Port for WCF chat application

Posted By:      Posted Date: September 05, 2010    Points: 0   Category :WCF
 
Hi All. I have a chat project using WCF over the internet. I will user TCPbinding for it. I will choose a port for connect from client. Anybody suggest me choose  the best port for me  ? Thanks so much!  


View Complete Post


More Related Resource Links

Chat Application

  
Serial Communication

Figure 11: A chat application using the SerialPort class.
In .NET Compact Framework 1.1, accessing the serial ports on the device involves performing a Platform Invoke (P/Invoke) operation, which is often an arduous and error-prone process. With .NET Compact Framework 2.0, you can access serial ports using the SerialPort class.

Need Help in creating chat application using jquery.

  


Hello Friends

             I have to develope Jquery chat application Like Gmail  in My Web application. For this i spend My lots of hours in Googling. AT THE time of searching I got one script. which is very helpful.  But in the script author has used all the members who has logged will be appeared in the chat box. instead of this i have to put only the members who's are in the friendlist. i have to show only these members.

Following is the project from where i get script.

As well as in the code author has passed dynamic userid to session but i have to pass actuall userid from database.

http://aspnetjquerychat.codeplex.com/


from Here I download the code. but the code is in the 3.5 framework. i m using 2.0 framwork. so most of the code I have changed but not getting how to make changes for list.

Please help me to solve the Problem.


Thanks In Advance

Omkar


know the port No. Of my web application at Runtime

  
I have many application in my solution. I have to move from a application to another. At the localhost, port no of different appliction is different. i want to know the port no for other application at run time so that i make a url to move another application.  

Windows Chat Application

  
hi i want to build one-to -one chat via server .what is best method to trasfer message using webservice or sockets. there are many users with simentanously have 1-to-1 chat please reply

Need of Chat application using wcf

  

Hi Everybody,

                I am new to this WCF and WCF forum. I need to develop a peer to peer chat application using wcf. I have gone through many chat application using wcf, it works fine for me in my LAN. But while i am trying to connect a Wan IP, i am getting some exception. so i need a chat application that works for me in wan ip also. Please provide any solution for this.

                                                                                                                   Rrgards

                                     

Need of Chat application using wcf

  

Hi Everybody,

                I am new to this WCF and WCF forum. I need to develop a peer to peer chat application using wcf. I have gone through many chat application using wcf, it works fine for me in my LAN. But while i am trying to connect a Wan IP, i am getting some exception. so i need a chat application that works for me in wan ip also. Please provide any solution for this.

                                                                                                                   Rrgards

                                     

While trying to connect a WAN IP, i am getting some error(WCF Chat Application)

  

Hi Everybody 

I am new to this WCF and WCF forum. I want to develop a chat application using wcf , so  i  have downloaded a chat application from "http://www.codeproject.com/KB/WCF/Chat_application_using_WC.aspx ". It works fine in my "LAN" but if i am trying to connect to a wan ip i am getting err ors. I have used "Port forwarding" also in that applicatiion. But still i am getting this error. I have mentioned the error code below. Please provide any solution for this. 

Error code:

System.InvalidOperationException: Could not find endpoint element with name 'ChatEndPoint' and Contract 'ChatClient.ICharService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element. at System.servieModel.Description.ConfigLoader.LoadChannelBehaviours(ServiceEndPoint serviceEndpoints, String ConfigurationName)

at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)

at System.ServiceModel.ChannelFactory.InitializeEndpoint(String confgurationName, Endpoint Address address)

at System.ServiceModel.DuplexChannelFactory '

chat application in asp.net

  

 I want to create small chat application between two users.

Users should Login if they are not logged in they should be registered.


plz tell the code

thanq


Serial Port Application Leaks Handle After Exit Forcing Reboot to Clear

  

The application (C# .Net 3.5) available at www.redondowa.com/porttest demonstrates a problem encountered with a Sony VAIO multimedia laptop related to use of its serial modem port.  A discussion with MS support is included in a doc with the VS solution.

If the base stream or port is not closed before nulling the port, the port cannot be recreated and the application leaves the port inaccessible.  The machine requires a reboot to clear the error.  Other machines clear the error without requiring a reboot.

<!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:1 135135232 16 0 262144 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:"\@SimSun"; panose-1:0 0 0 0 0 0 0 0 0 0; mso-font-charset:134; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch

High performance chat application

  

Hi there. I want to create high-perfomance chat application compatible with mobile platforms.  (It is not actually chat, but architecture is pretty similar)

My biggest concerns are: I need to update messages for everybody every 1 second. Also I need to insert very often to database.

I'm just wondering whether there is a better way than doing trips every second to database?

And also, what are the best practices on creating this kind of applications?



Sample P2P Chat application using WCF which works over Internet

  
Hi,

Can anyone please provide me a sample WCF Application for PeerToPeer Chat which works over Internet.

Thanks in advance,
KDesai

Save MVC Chat Room Data in Application variable or DB, where is better ?

  

My application is MVC Web App Chat Room , it supports following features:

1.Create/Join/Close room
2.Send message in room (just live message, offline message might be supported in future)

I have done logic for application, but I'm considering where to save chat room data (message,room information, and users in room) ? I see there are 2 options:

1. Application variable
2. Using file or database

-What if I saved in Application variable:
In case of there are 2000 rooms and 10000 users online, mean I have to persistence in Application variable (actually in RAM memory) information of 2000 rooms, more than 10000 message (text), these numbers might be increased by second if there are more users online in real time. and what's next ? I don't know what will happen to server, crash ? or my web app will be terminated ? whatever I don't want both results !

-What if I saved in file or DB (i.e: SQL Server DB)
Because of web application, clients have to send request every 1 second to fetch data (messages and user list in room). So in case of there are 2000 rooms and 10000 users online, means they will make 10000 requests every 1 second to DB. I don't know what will happen to DB, there are a lot of connections and in EVERY 1 second, can

ASP.NET chat application using Reverse Ajax or MSMQ?

  


Hi,

I wan to integrate any one-to-one chat web application in Microsoft CRM 4.0. Searched for few samples over the ent but all are of room chat functionality with no private/one-to-one chat option.

Can we use socket programming for web based cahts?

Moreover, is it possible using reverse ajax/comet technology to push back the content to the concerned person's browser client only? or it will send back the content to all browsers? If so, what choices we have to achieve the private/one-to-one chat functionality in web based chat apps? (like MSMQ).

If you have any sample regarding this in your knowlege please provide the link.

Thank you.

Regards,

Ali


.NET bug or my fault?: Serial port fail to open from C# because spoolsv.exe and my application try t

  
Dear all,
after browsing around I could not find any answer to my issue.

I'm writing a program in C# to access a serial device. The serial device comes with a legacy DLL probably written in C++ that provides an OpenDevice (which I call via DLLImport). The device is connected to a USB port via a Prolific USB to serial converter.
My problem is that 1 out of 5 times, the OpenDevice fails when I run my application. I have workaround to call it until it succeeds and it never goes beyond 3 or 4 tries.
By monitoring the serial port with Portmon I noticed that:
1) when running the application in debug mode from Visual studio the Com port is open from my process (MyApplication.EXE)
2) when running from windows the Com port communication belongs to windows print spooler service (spoolsv.exe) but Portmon also tracks an open command from MyApplication.EXE and here the collision happens: I'm suprised to see that the main communication from MyApplication is managed by spoolsv.exe so it is not just spoolsv.exe running in the background: I'm calling it!
3) the demo software from the supplier uses the same DLL but it is written in C++ and when I run it, spoolsv.exe does not show up (and open port never fails!)

I do not understand what is the trigger that makes the calls going through spoolsv.exe or directly to the port and

Serial port open fails because application and spoolsv.exe both try to access: Is this a .NET bug or

  
Dear all,
after browsing around I could not find any answer to my issue.

I'm writing a program in C# to access a serial device. The serial device comes with a legacy DLL probably written in C++ that provides an OpenDevice (which I call via DLLImport). The device is connected to a USB port via a Prolific USB to serial converter.
My problem is that 1 out of 5 times, the OpenDevice fails when I run my application. I have workaround to call it until it succeeds and it never goes beyond 3 or 4 tries.
By monitoring the serial port with Portmon I noticed that:
1) when running the application in debug mode from Visual studio the Com port is open from my process (MyApplication.EXE)
2) when running from command line the Com port communication belongs to windows print spooler service (spoolsv.exe) but Portmon also tracks an open command from MyApplication.EXE and here the collision happens: I'm suprised to see that the main communication is managed by spoolsv.exe so it is not just spoolsv.exe running in the background: I'm calling it!
3) the demo software from the supplier uses the same DLL but it is written in C++ and when I run it spoolsv.exe does not show up

Does anybody have an insight on serial port handling in .NET when a legacy DLL and a serial to USB converter are on the path? I would like to connect directly

Duplex workflow service, chat, IM application

  

I need to create service that can handle clients connections and administrator connection.The clients that connects to service are handled by Durable duplex, so the service can send commands to clients in any time when client is connected. When some client connects, the service should add its callback to clients collection. Then when administrator connects to service he should be able to send some commands to clients. I have created a workflow that is on the image below. In that workflow there is a problem because any time when the new connection is initialized the client variable is reseted to its default value. How to create static/global variable, or solve a problem in some other way?

http://img820.imageshack.us/img820/2346/workflowservice.jpg



C# Application DynDNS support without router setup (port forwarding)

  

Hi to all!

I'm not too experienced with networking and I have a request for my application that i'm not sure how to implement.

My client want's to be able to connect to his office machine from his home using the remote desktop. Now, that wouldn't be a problem if it was one machine connected directly to the internet. But it's most often a LAN in the office and he wants to be able to connect to the one where my application is installed on. Now, I know about port forwarding on the router to dispatch connections to specific machine but I was wondering if there is some way to circumvent router setup?

I was wondering how MSN or Skype work? For example, i have MSN&Skype installed on several machines on my LAN and all of them work properly without any router setup so there must be some way of doing this.

Obviously, i would program a little server routine that my application would notice every so often about its current IP address (but that's routers IP address, not the specific machines one).

Any ideas would be highly appreciated.

thanks!



Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend