Connect to existing site with DreamweaverMX 2004 (Was: DreamweaverMX 2004)

How do I connect to my exisiting website with the DreamweaverMX 2004?  I just got a new computer and the people who did my website no longer work on website designing.  They have left me on my own!

MX 2004 is a mighty old relic. It's probably not going to run right if at all on a modern operating system. 
If you download a 30 day trial of CS6 or CC, you might have better luck.
http://www.adobe.com/products/creativecloud/free-trial.html
The first step is to define your Local Site folder.   Go to Site > New site. 
Tell DW where you would like to keep site files on your local hard drive.  See screenshots.
Then click on Servers & tell DW what your remote site log-in details are:
Root Directory is what your web host told you to use for your HTML files.  This varies by host and could be public_html or www or htdocs or none.  If unsure, check with your hosting provider.
More options:  check the settings recommended by your hosting provider.
Hit Test button to connect.  If all is good, hit Save.
In the DW Files Panel (F8), click on Remote Server.  Click the green DOWN arrow to GET  files from the server.
Switch to Local View, and edit your site pages...
Nancy O.

Similar Messages

  • Edit Existing Site With Dreamweaver

    Im sure this question has been asked 100 times but how do I edit an existing site (published and on the web) with Dreamweaver CS5.5? I took over as webmaster last month at a company and would like to edit the companys website. How do I download the files off the web? I can do it with Contribute but not Dreamweaver.

    Create a local site folder in DW.  Site > Manage Sites > New.
    Go to Advanced > Remote info and enter your log in-details (FTP, host URL, username, password).
    Test connection to server.
    Then GET files from server.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Connect to FTP site with Apache commons net FTP client through Proxy

    Hello,
    I am trying to run this simple code to connect to FTP site through a proxy.
    import org.apache.commons.net.ftp.FTP;
    import org.apache.commons.net.ftp.FTPClient;
    public class MyTest {
    public static void main(String[] args) {
    String ftpHostName = "ftp.xxx.com";
    int ftpPort = 21;
    String ftpUserName = "myUserName";
    String ftpPassword = "myPassword";
    System.setProperty("socksProxyHost" ,"10.148.0.131");
    System.setProperty("socksProxyPort", "1080");
    FTPClient ftpClient = new FTPClient();
    try {
    System.out.println("connecting");
    ftpClient.connect(ftpHostName, ftpPort);
    System.out.println("connected");
    System.out.println("loging in");
    boolean successLogin = ftpClient.login(ftpUserName, ftpPassword);
    if(successLogin)
    System.out.println("success login");
    else
    System.out.println("fail login");
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    System.out.println("loging out");
    ftpClient.logout();
    System.out.println("disconecting");
    ftpClient.disconnect();
    catch (Exception e) {
    e.printStackTrace();
    I am getting the following error:
    C:\temp\ftp\test>java.exe -cp ./commons-net-ftp-2.0.jar;. MyTest connecting
    java.net.SocketException: Malformed reply from SOCKS server
    at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:87)
    at java.net.SocksSocketImpl.connectV4(SocksSocketImpl.java:265)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:437)
    at java.net.Socket.connect(Socket.java:519)
    at org.apache.commons.net.SocketClient.connect(SocketClient.java:176)
    at MyTest.main(MyTest.java:23)
    loging out
    java.lang.NullPointerException
    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:471<ftp://FTP.java:471>)
    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534<ftp://FTP.java:534>)
    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:583<ftp://FTP.java:583>)
    at org.apache.commons.net.ftp.FTP.quit(FTP.java:794<ftp://FTP.java:794>)
    at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:697)
    at MyTest.main(MyTest.java:39)
    I am able to do this using a different FTP client library, ftp4j-1.5.1<ftp://ftp4j-1.5.1> using the following code:
    import it.sauronsoftware.ftp4j.FTPClient;
    import it.sauronsoftware.ftp4j.connectors.SOCKS4Connector;
    public class MyTestFtp4J {
    public static void main(String[] args) {
    String ftpHostName = "ftp.xxx.com";
    int ftpPort = 21;
    String ftpUserName = "myUserName";
    String ftpPassword = "myPassword";
    FTPClient ftpClient = new FTPClient();
    ftpClient.setConnector(new SOCKS4Connector("10.148.0.131", 1080));
    try {
    System.out.println("connecting");
    ftpClient.connect(ftpHostName, ftpPort);
    System.out.println("connected");
    System.out.println("loging in");
    ftpClient.login(ftpUserName, ftpPassword);
    System.out.println("success login");
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    System.out.println("disconecting");
    ftpClient.disconnect(true);
    catch (Exception e) {
    e.printStackTrace();
    So I know the proxy settings are correct.
    The java version I used to compile and run my apps is 1.6.0_06 Does anyone can help figure out what is wrong when I use the Apache commons net FTP client?
    Thank you
    Jon

    Is the old AirPort Extreme base station (AEBS)
    configured so that the option to distribute IP
    addresses is DISABLED? If so, configure the new AEBS
    to act as a bridge.
    Are you suggesting I use a set-up with TWO AEBSs? Set up a bridge (not sure how) and then use the old AEBS to connect to the DSL modem and broadcast to the new Extreme which will then be the router to the other computers on the network?
    Do you have any port mapping or default host enabled
    on the old AEBS?
    I do not understand, not do I see these options in the Base Station utitlity; perhaps they are in the FTP options--but that, I'm sorry to say, is not obvious to my inspection.
    Duane, can you give me a few more basic instructions? Thanks
    iMac 17    

  • Deploying unity connection at remote site with CUCM at central site

    I am planning to deploy Unity connection at remote site while the CUCM is at central site only. Will appreciate of someone can shd some light on this, has anyone already deplyed same scenario , any specific requirements to take care of please ?
    Thanks in advnace,
    AB

    AB,
    Yes, having your Unity Connection server at a different location than your CUCM is supported.  
    I cannot really help you with specifc requirements as it largely depends on exactly how you intend to deploy it and what features you intend to enable.  Clustering, Digital Networking, Unified Inbox, etc.. all have their own additional requirements the whole of which would not fit into a message board post.
    However, specific bandwidth and latency requirements are listed in the "System Requirements for Cisco Unity Connection Release 8.X.   http://www.cisco.com/en/US/partner/docs/voice_ip_comm/connection/8x/requirements/8xcucsysreqs.html
    The SRND and the System Requirements should get you on the  right  track.  I would encourage you to read both documents fully and  then  come back with any specific design questions you may have.
    -Steven

  • Connecting Multiple Remote Sites with VPN Passthrough

    I have several Win2003SBS sites requiring VPN passthrough from remote clients some using the VPN Connectoid supplied with the SBS (on the RWW - "Download Connection Manager". The requirement is for an DSL modem router with at least 10 tunnels which also supports GRE. The device should support ADSL2 as a minimum and SDSL is preferred.
    A more detailed diagram is attached. Access to the Web Server will be required from both the LAN and WAN sides later.
    Any suggestions please?

    3700 Series multiservice access routers supports GRE, SDSL, ADSL.Refer the following URL for more information
    http://cisco.com/en/US/products/hw/routers/ps282/products_data_sheet09186a00800921f0.html

  • Midnight Commander - connecting an ftp site with @ in username

    How would I have to write the needed parameters if the host needs to have login name in the form of [email protected]? This  - [email protected]:[email protected] - did not work in MC.

    Try %40 instead of @.
    eg. username%[email protected]
    That works in Firefox.

  • Cannot connect to web site or get podcast

    Around Xmas, I noticed that one of the podcasts I subscribe to through itunes had stopped updating. I then tried going to the source site with Safari, and it too wouldn't load. I chalked it up to a server being down, and tried again a couple days later. Turns out the site seems fine. I can get to it from work (on an XP machine), I can ping it from my emac just fine, but trying to get to it through Safari or Camino returns nothing. The connection doesn't time out (I let the page request run overnight once just to see what happens). I have flushed the lookupd, rebooted the router and emac. I have checked the router logs, and it doesn't appear to even log the request for the site. I can get to the site using one of the browsing anonymizer systems. Frankly I'm stumped. I hadn't made any changes at that time. I have since loaded the latest 10.4 update, and run the update permissions, reset Safari. Still nothing.
    Any thoughts? The site I am referring to is www.wdwinfo.com. I posted something on one of their other sites, and got a response from another Mac user that he/she was also having this problem, but no solutions.
    Any suggestions would be appreciated.
    John.

    Thanks for the suggestions. I tried it with another account on the same computer. I also tried your suggestion on the dns servers as well. Your suggestions also had me try something else. I have an ibook, so I pulled it up, using airport to connect to the same dsl router via wifi. I tried to connect to the site with the ibook, with the same result. No connection, it just sits and spins when I try to connect.
    Could it be the router somehow?

  • Can I replace a published muse site with one I have been working on?

    I have published a muse site as a holding page on a webasics plan, and while that has been live I have started a new muse file an built a website which I intended
    to replace the holding page with.
    I am having trouble figuring out how to replace a already published site with a new muse file?
    Hope that makes sense!
    Thanks heaps

    Hello,
    You simply need to select the same site from the list of sites in the dropdown, while publishing it from Muse. This will replace the existing site with the one you have built in Muse now.
    Hope this helps.
    Cheers
    Parikshit

  • Unable To Connect To Some Sites

    I am unable to connect to some sites, with the error message "Safari can’t connect to the server." I cannot connect to the site with Firefox either.
    Example sites are: www.bostonpizza.com and www.airmiles.ca
    However, I am able to connect to these sites when I boot into WinXP.
    I have tried pinging the sites in question, getting the following error message: "ping: sendto: No route to host"
    It looks like something is bonked with my OS X settings. I have tried the following without any luck:
    1. Reseting the computer
    2. Clearing Safari's cache
    3. Reseting PRAM settings using OptCmd+pr key commands on startup
    4. Using OpenDNS in the network DNS settings
    I am connected directly to a Linksys ADSL Ethernet modem, and my firewall is set to allow all incoming connections. I'm not running PeerGuardian, and as far as I know I'm not running anything in the background that would bork my network.
    Any help or suggestions would be greatly appreciated.
    Thanks,
    Orest
    I have tried doing a traceroute when running in WinXP, with the following information:
    racing route to www.bostonpizza.com [64.40.107.95]
    over a maximum of 30 hops:
    1 8 ms 8 ms 8 ms d75-152-160-1.abhsia.telus.net [75.152.160.1]
    2 7 ms 7 ms 7 ms 154.11.184.193
    3 9 ms 8 ms 7 ms peer.clgrab21gr02.bb.telus.com [154.11.3.42]
    4 20 ms 20 ms 20 ms rc2wh-pos0-0-2-0.vc.shawcable.net [66.163.77.197]
    5 20 ms 20 ms 20 ms ra2wh-tge2-1.vc.shawcable.net [66.163.69.186]
    6 22 ms 21 ms 21 ms rx0wh-net-nation.vc.bigpipeinc.com [64.251.87.170]
    7 21 ms 21 ms 21 ms www.bostonpizza.com [64.40.107.95]
    Trace complete.

    Thanks for the replies, unfortunately I still haven't resolved the issue. I would say 99% of the sites I visit work fine, but for some reason the odd site won't work.
    This is the results for the ping on my Mac OS X system:
    PING www.bostonpizza.com (64.40.107.95): 56 data bytes
    ping: sendto: No route to host
    I can access the site running WinXP in Parallels, and I can access the site in question when I use bootcamp to boot into WinXP, using the same network hardware and same connections.
    It looks like from the ping, DNS is working and able to translate the site name, but for some reason cannot access the site.
    This is the results of a traceroute that I ran while booted in WinXP:
    Tracing route to www.bostonpizza.com [64.40.107.95]
    over a maximum of 30 hops:
    1 8 ms 8 ms 8 ms d75-152-160-1.abhsia.telus.net [75.152.160.1]
    2 7 ms 7 ms 7 ms 154.11.184.193
    3 9 ms 8 ms 7 ms peer.clgrab21gr02.bb.telus.com [154.11.3.42]
    4 20 ms 20 ms 20 ms rc2wh-pos0-0-2-0.vc.shawcable.net [66.163.77.197]
    5 20 ms 20 ms 20 ms ra2wh-tge2-1.vc.shawcable.net [66.163.69.186]
    6 22 ms 21 ms 21 ms rx0wh-net-nation.vc.bigpipeinc.com [64.251.87.170]
    7 21 ms 21 ms 21 ms www.bostonpizza.com [64.40.107.95]
    Trace complete.
    When booted in Mac OS X, I am able to ping every listed IP address in the WinXP traceroute, except for the last one, 64.40.107.95.
    Still no idea what is going on, my network troubleshooting toolbox consists of pretty much ping, and googling error messages.
    Thanks,
    Orest

  • Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database

    I am having trouble establishing a database connection.  I can  connect with test databases but am having trouble using dreamweaver wtih  my existing wordpress website.  Am I able to use dreamweaver to edit  and live view my changes before uploading the changed files to my live  site?  Am I able to access my existing wordpress database with  dreaweaver?  I have imported it to my testing server/database but still  seem to be having trouble establishing a connection with it (think maybe  my folder hierarchy might be off).
    macintosh HD/Applications/MAMP/htdocs/nwm/wp/index.php
    "nwm" is the name of the folder that I have copied all of my site  files to and the folder I have dreamweaver pointing to.  "wp" is what I  have all of the wordpress files in (the ones I copied from my yahoo  server - including all my current theme files etc.)
    I am trying to put the info into the mysql connection dialog box:
    Connection Name: Testing (i am assuming this name is for my benefit only and doesn't actually matter)
    MySQL Server: mysql
    User Name: *****
    Password: *****
    Database: wp
    and am getting this message
    MySQL Error#: 2013
    Lost connection to MySQL server at 'reading initial communication packet', system error 61
    did some google seaches of the error.  Tried turning off the  firewall, and the advance tab allow mysql incoming  (there were 2 one  was allow one was not allow.  I changed both to allow)
    Cant really find anything on yahoo to help me out.  Looked in  phpmyadmin database named wp: wp_users to get the username and password  (which due to previous look for help - I think the password was  encrypted cuz it looked like a bunch of mumbo jumbo and am fairly  certain I know the correct password).
    Any help would be greatly appreciated!! I spent $50 on live chat  last night trying to resolve the issue only to find out at the end that  the guy really didn't understand my problem and doesn't have  dreamweaver.  I have also watched countless videos on Lynda.com and have  been thru forum after forum.  While this problem is only a couple weeks  old since I just got CS5.  I have been having trouble making any  headway learning php since I cant seem to make it past the set up  parts.  I have done the php / mysql essential training on lynda.com with  relative success except that I really dont want to work with any more  exercise files so I didn't go on to the beyond the basics. I recently  went thru most of the Dreamweaver CS5 and Wordpress 3. Also did the  first 4 chapters of Dreamweaver CS5 with PHP and MySQL. I need to start  integrating things into my live sites.  I am also trying to work my way  thru the learning php, mysql, javascript book by o'reily media by robin  nixon (as fun as reading a math text book) can't get thru it since I  can't relate any of it to my current sites/needs
    I am on MacBookPro OSX 10.6.6
    Installed MAMP to specification on all 20 tutorials I have tried including lynda.com
    Tested the testing server and is working
    Just installed dreamweaver cs5
    have been using wordpress online to create and edit posts (recently  upgraded to 3.? whatever the latest update was online which I believe  update the files on my yahoo server?)
    Have also installed wordpress on my computer (several times thru each tutorial trying to get this right.)
    Am I expecting the impossible?

    If wordpress controls it's own connection why am I unable to use the live view. I have synced the remote site to my local computer so all the files should be just as they are online with the exception of the DB which contains most of the content.
    I have done all of those steps.  I have even exported the database from inside internet phpmyadmin and imported into computer phpmyadmin.  When I hit live view I get one of couple of errors.
    1.  "One is that the dynamic related files could not be displayed due to an internal server error"
    At some point I was able to view some sample files inside dreamweaver.  But I would like to be able to view my real site files.  I was able to "connect" to the local databases (not the copy of my real one - I think that maybe that was because it is somehow nested inside another db an am going try to reimport to new location).  And then I changed the host/username/password trying to deal with the internal server error. Now instead I get the cannot connect to the database Error 2016 or whatever from the origianl post. Also, I am using yahoo if that matters and all I can find about what their server name is: mysql - is that correct?
    I have been thru this so many times with so many different tutorials I am losing track of what is what.
    2.  Can I access my remote database within dreamweaver? I do not want to create dummy files (seems to be a waste of time).  And while if it had worked exporting/importing a duplicate on to my computer would have satisfied me for a little while it also seems some what counter productive.  Since every post and page is different if I were doing a daily updates etc how would I be able to change the formating or design of them if I can't access the remote files.  Would I re- import everytime I want to work on it to get current database?
    I am trying to be clear.  I listed all the specs I could think as listed  in your "how to get help fast post" (yes I read that at least twice  too) of all of the steps and possible reasons for my problems.  I also  thought that the forum was on a seperate site so I didn't think it would  count as a duplicate.  I am frustrated to tears and am feeling  incredibly stupid that after all this time and all these tutorials yes  you are right I obviously am not understanding what is going on which is  why I am on this forum.

  • I am unable to connect to the Web with Firefox, the firefox site displays on screen, yet I can connect on the same desktop computer to Internet explorer and Opera, what is preventing me from opening the firefox browser

    I am unable to connect to the web on my desktop with Firefox 8, the program displays but will not connect to the Internet, Other browsers Internet Explorer and Opera do connect on the same machine. McAfee is not blocking it, virus checks detect no virus yet yesterday it worked perfectly

    I tried what was suggested by starting in Safe Mode but the problem still exists. I am frustrated as I cannot connect to my Verizon Fios page. I can connect to the Internet with the Firefox Browser and can go to any web site except finding my Verizon Home page.

  • Cannot connect to HP ePRINT Web site with LaserJet Pro 400 colour MFP M475dw

    LaserJet Pro 400 color MFP m475dw- Just installed. Scan, print ,copy ,fax all working fine! using WiFi 
    Using IMAC  OS 10.8.2 with all updates
    Using Netgear router  DGN2200v3
    Printer will not connect to HP  ePrint Website
    Printer connects to the Hp Support and Profile for fax set up etc.  But the  "HP Web Services"  Section when entered and hit the Enable Button-- It does not connect to the site --- it just seems to just refresh.
    if i try to connect thro the printer not the imac  and try enable web services it says" Connecting " on the screen BUT after a few minutes of trying --------  then says " CONNECTION ERROR-- the printer is unable to connect to the service. Check the internet connection 
    ANY IDEAS-- AM I MISSING SOMETHING ???
    MANY THANKS
    This question was solved.
    View Solution.

    I would try pulling up the embedded web server (EWS) by entering the IP address for the printer in to a browser and set a static IP address & DNS. 
    The information for the default gateway, subnet mask and that IP address can be accessed from the Setup menu on the front panel,  go to Setup>> Reports>> Network summary  and that will print it off.
    Once you have entered the IP in to a Browser and have the EWS pulled up, navigate to the tab at the top labeled “Networking”. Then click on IPv4 in the left column; that will bring up the Address configuration page.  Set the radio button to manual and fill out the IP address, Default gateway and Subnet mask with the information from the report. Do not worry about filling out the portion titled WINS server, that can be left alone.
    You will then want to fill out the DNS portion of the page, The Preferred should be set to 8.8.8.8 and the alternative/secondary should be set to 8.8.4.4. Then click “apply”
    Power cycle the printer. Turn it off, wait 30 seconds and then turn it back on. Once it is completely up and running reattempt to connect to web services. 
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE).

    I have a 3 node cluster that has replica setup to replicate to another cluster off-site.
    Suddenly one of the servers is not replicating with the error:
    Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE). (Virtual Machine ID CC0FD4CC-F9B7-4C68-ABE8-B7D52A87899F)
    All other servers are replicating fine so there cannot be a permissions or connectivity issue between the 2 clusters.
    This server has 2TB of data so I'd rather not have to start the replication again.
    Does anyone have any pointers?
    Thanks.

    Hi drensta,
    Based on my knowledge , "hyper-v replica broker " is needed for failover cluster replica .
    Here is a link for "Why is the "Hyper-V Replica Broker" required?"
    http://blogs.technet.com/b/virtualization/archive/2012/03/27/why-is-the-quot-hyper-v-replica-broker-quot-required.aspx
    Hope this hleps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • (err= -3253) connection with the server was reset. (Windows XP)

    I purchased a full album and am having trouble downloading three songs off this album from the iTunes store for Windows XP. The album is Draconian - Turning Season Within. Three of the nine songs off this album will not complete the downloads. It will get almost completely finished, for example: 11.1 MB of 11.3 MB, then it will start downloading the song again from the beginning before
    reading: stopped (err= -3253). Then a dialog box pops up saying "connection with the server was reset. I wrote an email to support and tried all the suggested fixes, with no desireable results, including making sure my firewall allows access to iTunes and the iTunes store, changing the startup procedure in "msconfig", and running diagnostics on iTunes to check for connectivity, whick it says I have full connectivity to the internet. This is probably my last hope, that someone else has encountered the (err= -3253) message and can help me with it. This is also the third album I've purchased from the iTunes store and the first time I've had any kind of error message. Please help!

    Seems to be a scam/rogue software.
    http://site-press.com/antivirus/antivirus-news/the-shield-deluxe-how-to-remove-the-shield-deluxe-pop...
    http://www.remove-malware.com/forums/viewtopic.php?f=47&t=4288
    http://www.microsoft.com/security/antivirus/rogue.aspx
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • TcpListener not working on Azure: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

    Hi Everybody,
    i'm playing a little bit with Windows Azure and I'm blocked with a really simple issue (or maybe not).
    I've created a Cloud Service containing one simple Worker Role. I've configured an EndPoint in the WorkerRole configuration, which allows Input connections via tcp on port 10100.
    Here the ServiceDefinition.csdef file content:
    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="EmacCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2014-01.2.3">
    <WorkerRole name="TcpListenerWorkerRole" vmsize="Small">
    <Imports>
    <Import moduleName="Diagnostics" />
    <Import moduleName="RemoteAccess" />
    <Import moduleName="RemoteForwarder" />
    </Imports>
    <Endpoints>
    <InputEndpoint name="Endpoint1" protocol="tcp" port="10100" />
    </Endpoints>
    </WorkerRole>
    </ServiceDefinition>
    This WorkerRole is just creating a TcpListener object listening to the configured port (using the RoleEnvironment instance) and waits for an incoming connection. It receives a message and returns a hardcoded message (see code snippet below).
    namespace TcpListenerWorkerRole
    using System;
    using System.Net;
    using Microsoft.WindowsAzure.ServiceRuntime;
    using System.Net.Sockets;
    using System.Text;
    using Roche.Emac.Infrastructure;
    using System.IO;
    using System.Threading.Tasks;
    using Microsoft.WindowsAzure.Diagnostics;
    using System.Linq;
    public class WorkerRole : RoleEntryPoint
    public override void Run()
    // This is a sample worker implementation. Replace with your logic.
    LoggingProvider.Logger.Info("TcpListenerWorkerRole entry point called");
    TcpListener listener = null;
    try
    listener = new TcpListener(RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    LoggingProvider.Logger.Info(string.Format("TcpListener started at '{0}:{1}'", RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Address, RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Port));
    catch (SocketException ex)
    LoggingProvider.Logger.Exception("Unexpected exception while creating the TcpListener", ex);
    return;
    while (true)
    Task.Run(async () =>
    TcpClient client = await listener.AcceptTcpClientAsync();
    LoggingProvider.Logger.Info(string.Format("Client connected. Address='{0}'", client.Client.RemoteEndPoint.ToString()));
    NetworkStream networkStream = client.GetStream();
    StreamReader reader = new StreamReader(networkStream);
    StreamWriter writer = new StreamWriter(networkStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    while (true)
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    LoggingProvider.Logger.Info("This is what the host sent to you: " + input+". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    break;
    catch (Exception ex)
    LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    break;
    }).Wait();
    public override bool OnStart()
    // Set the maximum number of concurrent connections
    ServicePointManager.DefaultConnectionLimit = 12;
    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
    RoleEnvironment.Changing += RoleEnvironment_Changing;
    return base.OnStart();
    private void RoleEnvironment_Changing(object sender, RoleEnvironmentChangingEventArgs e)
    // If a configuration setting is changing
    LoggingProvider.Logger.Info("RoleEnvironment is changing....");
    if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))
    // Set e.Cancel to true to restart this role instance
    e.Cancel = true;
    As you can see, nothing special is being done. I've used the RoleEnvironment.CurrentRoleInstance.InstanceEndpoints to retrieve the current IPEndpoint.
    Running the Cloud Service in the Windows Azure Compute Emulator everything works fine, but when I deploy it in Azure, then I receive the following Exception:
    2014-08-06 14:55:23,816 [Role Start Thread] INFO EMAC Log - TcpListenerWorkerRole entry point called
    2014-08-06 14:55:24,145 [Role Start Thread] INFO EMAC Log - TcpListener started at '100.74.10.55:10100'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Client connected. Address='196.3.50.254:51934'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Buffer size: 65536
    2014-08-06 15:06:45,491 [9] FATAL EMAC Log - Unexpected exception while Reading the request
    System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    --- End of inner exception stack trace ---
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    at TcpListenerWorkerRole.WorkerRole.<>c__DisplayClass0.<<Run>b__2>d__0.MoveNext() in C:\Work\Own projects\EMAC\AzureCloudEmac\TcpListenerWorkerRole\WorkerRole.cs:line 60
    I've already tried to configure an internal port in the ServiceDefinition.csdef file, but I get the same exception there.
    As you can see, the client can connect to the service (the log shows the message: Client connected with the address) but when it tries to read the bytes from the stream, it throws the exception.
    For me it seems like Azure is preventing the retrieval of the message. I've tried to disable the Firewall in the VM in Azure and the same continues happening.
    I'm using Windows Azure SDK 2.3
    Any help will be very very welcome!
    Thanks in advance!
    Javier
    En caso de que la respuesta te sirva, porfavor, márcala como válida
    Muchas gracias y suerte!
    Javier Jiménez Roda
    Blog: http://jimenezroda.wordpress.com

    hi Javier,
    I changed your code like this:
    private AutoResetEvent connectionWaitHandle = new AutoResetEvent(false);
    public override void Run()
    TcpListener listener = null;
    try
    listener = new TcpListener(
    RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    catch (SocketException se)
    return;
    while (true)
    IAsyncResult result = listener.BeginAcceptTcpClient(HandleAsyncConnection, listener);
    connectionWaitHandle.WaitOne();
    The HandleAsync method is your "While (true)" code:
    private void HandleAsyncConnection(IAsyncResult result)
    TcpListener listener = (TcpListener)result.AsyncState;
    TcpClient client = listener.EndAcceptTcpClient(result);
    connectionWaitHandle.Set();
    NetworkStream netStream = client.GetStream();
    StreamReader reader = new StreamReader(netStream);
    StreamWriter writer = new StreamWriter(netStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    // LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    // LoggingProvider.Logger.Info("This is what the host sent to you: " + input + ". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    // LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    catch (Exception ex)
    //LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    Please try it. For this error message, I suggest you could refer to this thread (http://stackoverflow.com/questions/6173763/using-windows-azure-to-use-as-a-tcp-server
    ) and this post (http://stackoverflow.com/a/5420788).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Change Management & Change Transport Process in GRC AC RAR

    With RAR not being able to leverage the SAP ABAP Change Management Process (CTS) what is the best practise for controlling the changes for RAR rule set ? How do we acheive job segregation from 1. Making Changes to Rules in Dev RAR 2. Transporting (Im

  • Changing Fonts in Notes

    So, how do you do that? It's part of the new iOS update but I can't figure it out..... Any suggestions?

  • Adobe Drive CMIS connector and Authentication

    Hello, We have undertaken a project to make our DAM CMIS compliant and thus get connected with Adobe Drive using it's inbuilt CMIS connector. We will be following RESTful AtomPub binding of CMIS for this. CMIS spec doesn't talk a lot about the authen

  • Crash when changing WMV format settings - error code included

    Myself and a cowroker had this same issue happen in the same afternoon so I'm guessing it's not solely an Adobe issue, but our IT department said to contact Adobe. I'm hoping I can at least get something specific to take back to them even if  we don'

  • How can you stop slideshow from resizing the browser window iframe ?

    Does anyone know where the code is that causes the iweb slideshow to resize the browser window when it is opened? When it is placed on a page using <iframe src="http://homepage.mac.com/coreydee/slideshow/index.html" width="760" height="580" scrolling