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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

MSMQ TCP determine sender ip

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :WCF
 
Hello to pros from MSMQ newbie. We are trying to use client-server scenario with MSMQ (using FormatName:Direct=TCP:[ip]/private$/queName syntax).  Right now [ip] component is hardcoded into server since we don't know the machine from which the client application sends messages.  For now we assigned a particular computer for the purpose, hardcoded its ip into server's code of a running client app and that is obviously quite a handicapped solution.  What we would like to see is to maintain a database of authorized ip addresses that the server can accept messages from, then have a server determine ip of message's sender and reply to that machine . Any suggestions?  It seems I can determine machine Guid that sent the message.  Is that possible to retreive that machine's ip in our LAN (we don't expect to carry application outside)? P.S.: Our server runs as a Windows service.


View Complete Post


More Related Resource Links

MSMQ TCP determine sender ip

  
Hello to pros from MSMQ newbie. We are trying to use client-server scenario with MSMQ (using FormatName:Direct=TCP:[ip]/private$/queName syntax).  Right now [ip] component is hardcoded into server since we don't know the machine from which the client application sends messages.  For now we assigned a particular computer for the purpose, hardcoded its ip into server's code of a running client app and that is obviously quite a handicapped solution.  What we would like to see is to maintain a database of authorized ip addresses that the server can accept messages from, then have a server determine ip of message's sender and reply to that machine . Any suggestions?  It seems I can determine machine Guid that sent the message.  Is that possible to retreive that machine's ip in our LAN (we don't expect to carry application outside)? P.S.: Our server runs as a Windows service. I also am unable to add reference to Microsoft Message Queue com in add reference dialog, beacuse it's not there.

Determine whether Forms Server is installed on a server

  
Check whether the Microsoft.Office.InfoPath.Server.dll and FormServer.aspx files are installed on the server.

Image processing, determine white space and crop

  

Hi,


I have created a image upload for our ID card system to allow users to upload new images, edit them and submit for approval.  This is all working well with a combination of asp.net (c#) and jquery to give a seemless editor etc.

We have had a few users who I cannot believe have scanned a photo of themself and then just submitted it with the A4 page of white and little photo.


I am wondering if anyone can help with a suggestion on how I could possibly reduce the load of these coming through (I can't believe they can be this stupid), it stipulates UK passport standards.


Would my only option be to check for a single continues colour that occurs and if it reaches a certain percentage point say 60% then to just send back an error stating they need to crop the image.

Can anyone help with providing sample or that I can use to move this one on.


I am still in disbelief on this one.  the other one is they take a photo of whole body and other in it and cut straight down middle chopping the people out but supplying a photo that no use for an id photo card....but that I can't imagine being solved programatically as I need to determine where their face dimensions are and what percentage of the actual photo is taken up by it and if it below a threshold reject it.




Design Patterns: Simplify Distributed System Design Using the Command Pattern, MSMQ, and .NET

  

Service-oriented architecture is a great framework when you need to perform distributed computing tasks over the Internet. But when you want to perform processing inside your local network, a different solution may provide a better fit. That solution, based on the Command pattern, uses Windows services and Microsoft Message Queuing to implement a queued system that meets your needs better than a service-oriented solution. This article explains how to build it.

Brad King

MSDN Magazine September 2004


MSMQ and .NET: Send MSMQ Messages Securely Across the Internet with HTTP and SOAP

  

When creating a distributed system you frequently need to provide for communication between two entities that are not in sync. Microsoft Message Queue Server (MSMQ) provides the kind of store-and-forward messaging in a pre-built infrastructure that can help you address these kinds of messaging needs. In the past, MSMQ was accessed using a COM wrapper. Now there's a .NET wrapper that lets you accomplish your messaging goals easily from your Framework-based code. To illustrate the use of the wrapper, the author builds a messaging application, sends MSMQ messages over the Web, and discusses messaging security.

David S. Platt

MSDN Magazine December 2003


Pocket PC: MSMQ for Windows CE Brings Advanced Windows Messaging to Embedded Devices

  

Handheld devices are becoming increasingly important nodes on wireless networks, allowing their users to connect to data stores and other central server applications over the network. But wireless network connections can be unreliable, requiring the use of store-and-forward messaging that does not need to maintain a continuous connection. Microsoft Message Queue (MSMQ) has supplied these features to desktop machines, and there is now a version for handheld devices. MSMQ for Windows CE allows users of embedded devices to perform tasks such as remote order processing and inventory update without worrying about the state of their connection. The benefits of MSMQ for Windows CE and how to install and run the service is covered here.

Bob Hartman

MSDN Magazine December 2001


determine the best way to refresh a gridview when textchanged event occurs

  

Good afternoon.

I have the following gridview inside an updatepanel that makes the bind from a datatable:

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Button ID="ButtonAdd" runat="server" OnClick="ButtonAdd_Click" Text="Novo Artigo" />
                <asp:GridView ID="Dados" runat="server" AutoGenerateColumns="False" 
                    CssClass="Grid" Width="100%" CellPadding="4" ForeColor="#333333" 
                    GridLines="None">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                    <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="AbrirModal" runat="server" Text="->" /> 
                                <asp:PopupControlExtender ID="PopupControlExtender1" runat="server"
                                TargetControlID="AbrirModal"
                                PopupControlID="PanelArtigos"
                                >
                                &l

Asp.net ajax+ Jquery: EndRequestHandler(sender, args), how to specify sender and args

  

Hi,

I am working on asp.net, addon with JQuery.

After registering endRequest inside ready() function of Jquery.

determine the screen height within javascript and set a property on an iframe

  

I have a webform  that has a header and iframe,  what I need to do is on load detemine the users screen height and then  set the height on the iframe. Can someone explain  or show me an example of how to do this.


Thanks in advance.


How to determine if current SQL User is admin or owner?

  
I wish to determine, from my C# application, if the current user has admin or owner rights to the database they are connected to. I beleive I have all the information required: Servername Database name Windows/Database auth username (If database auth) password (if database auth) I'm trying to find a way that using the smo objects (smo.user), but as of yet I cant quite work it out: - How to get the appropriate user - How to determine if that user is an admin/owner. Any tips would be appreciated. If I have posted to the wrong forum, let me know - I couldnt find one that was obviously more appropriate. Thanks.

MSMQ Remote Queueing

  
Hi All, My application is about message queuing. I have a problem checking the existence of a queue in the public/private queue in the remote server (win2003), my client is running Vista Business. I already set full control to everyone,etc in the message queueing in the server. Client is in the server's domain. Here's the code public MessageQueue(string queuePath, bool transactional)         {             try             {                 this.queuePath = queuePath;                 queue = new System.Messaging.MessageQueue(queuePath);  //UnsupportedFormatNameException in this line                 if (!(System.Messaging.MessageQueue.Exists(queue.Path)))                     System.Messaging.MessageQueue.Create(queue.Path, transactional);                               &nbs

How to determine when the cube refresh has completed?

  
I'm trying run code after a cube refresh is completed, but I can't seem to figure out how to write code to determine when the cube refresh has been completed. If it were a simple calculation, I could use the code below to determine the "calculation state", but there doesn't seem to be "refresh state" that I'm aware of. Any help will be GREATLY appreciated!! Application.CalculationState = xlDone

AttachedPropertiesService determine if property already added

  
Hi, Is there any way to tell whether a property has previously been added to the AttachedPropertiesService, other than keeping track oneself in some external data structure ?  Thanks, Notre

How do I determine null with ADO reader?

  
I am using ADO reader to read rows in a table with matching values in two columns.  But when the reader has rows and one of the columns in a row is null instead of a long number, I get an error when I attempt to access the value.  In C# language, I have a statement that says "if (reader["Example"] != null) ExampleID = (long)reader["Example"];".  Unfortunately, the "if" statement does not detect the null value in the column and it attempts to store null in the "ExampleID" long variable and an error states "Specified cast is not valid.  When casting from a number, the value must be a number less than infinity."  What should I do to prevent accessing a null value?   Maurice

Cannot create user: server cannot determine if it is member of a domain

  
Hi, An instance of our 2008 SP1 SQL Server is running on a computer that was removed from it's domain and then re-added. Now, when I want to create a new login in Management Studio via the nodes Security/Logins, selecting "New Login", entering DOMAIN_NAME\USER_NAME as login name and then click "Search", I get an error message (in German) "Das Programm kann das erforderliche Dialogfeld nicht öffnen, da nicht ermittelt werden kann, ob Computer "COMPUTER_NAME" einer Domäne zugeordnet ist. Schließen Sie dieses Dialogfeld, und wiederholen Sie den Vorgang". Translation: "The program cannot open the required dialog, as it cannot be determined if computer "COMPUTER_NAME" is assigned to a domain. Close this dialog, and repeat the process." But closing the dialog and repeating as suggested does not help. Even restarting the SQL Server service and re-connecting in Management Studio did not help. I keep getting this message. I found, however, that just entering the domain and user name and then clicking Ok seems to add the user. Anyway, it is irritating to get this error message when clicking "Search". How can I tell the engine that the computer is really member of the domain again? Frank
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