Unable to read iDisk Quota

I realise that this has been posted before, but I can't seem to get past this issue. I have tried for several days now to publish with no joy whatsoever. I keep getting the same error. I have tried everything I can think of to get around this.
Can anyone help, please?

Same error messages for me, trying to post a 30 meg iMovie - I have a few hundred megs of space left on .Mac. I have no clue how to resolve this. Hope someone can come up with some fix.

Similar Messages

  • Error reading iDisk quota

    I have found an article in the support area (http://docs.info.apple.com/article.html?artnum=303306) but it is not use and did not help the problem I am having now...
    When I try to publish, I get the "error reading iDisk quota" message and my site is not updated...
    Any help out there?

    When I try to publish, I get the "error reading iDisk
    quota" message and my site is not updated...
    me too!!!
    also sometimes i get a 'error could not read file blog' or something like that
    and sometimes i get a message saying 'network error, please check your network connection and try agian'

  • IWeb "failure reading disk quota"

    Every time I have tried to publish from iWeb to my .Mac account I have been met with the following error: " Failure reading iDisk quota". I can connect to my iDisk just fine otherwise and I have all my space allocated to it. I called Apple technical support and they said that they only offer email support for .Mac. This is ********! I have to get a website up soon and now I have to go back and forth with Apple (24hrs in between mailings) trying to get a solid answer from these people. I HATE APPLE SOMETIMES. What am I paying $99 a year for?

    They finally sent me a response and it worked! Here is the FINAL solution to the problem:
    From: [email protected]
    Subject: Re: iWeb; Follow-up: 13716549
    Date: January 26, 2006 6:31:13 AM PST
    To: [email protected]
    Dear Robin,
    Thank you for your patience while we researched the issue you reported with iWeb.
    We are currently investigating an issue affecting some users, who receive an error message while trying to publish a page or site to their .Mac account using iWeb. The error states: "There was an error reading your iDisk quota."
    Before we proceed with the steps to resolve this issue, we recommend that you back up iWeb's data file. If you already have this file backed up, you may skip to "Resolving the issue" below.
    To locate the file, select Go to Folder from the Finder's Go menu. Then type (or copy and paste) ~/Library/Application Support/iWeb into the field and click Go. You should now see a file named, Domain.
    If you have the Backup application that is included with .Mac, you can use this to back up the file to your iDisk, CD/DVD, or to another hard drive.
    Note: Though there is an iLife plan in Backup, it does not currently back up the files associated with iWeb. To back up up iWeb's files you will need to use either the Custom or Home Folder plan.
    If you do not have Backup, you can create a copy of the file, then place the copy in a safe place. To duplicate the Domain file, click the file once to highlight it, then select Duplicate from the File menu. This will create a copy of the file named, Domain copy. Move this file to the desktop or any other safe location.
    Resolving the issue:
    1. Quit iWeb, if it is open. Select Go to Folder from the Finder's Go menu. Then type (or copy and paste) ~/Library/Application Support/iWeb into the field and click Go. You should now see a file named, Domain. This is a Mac OS X package file. 
    Note: A package is a relatively common type of document in Mac OS X; it is essentially a sealed folder. It contains individual items, but cannot be opened in the same manner as a folder.
    2. To open the package, hold the Control Key and click on the Domain package file. 
    Note: If you have a two-button mouse, this [removed same] step can be accomplished by right-clicking the Domain package file.
    3. Select Show Package Contents from the contextual menu that appears.
    4. A new window will appear containing a folder named Contents.
    5. Open the Contents folder. Here you will see one, and possibly two files named assets.<membername>.groups.<groupname>.plist or assets.<membername>.plist, where <membername> and <groupname> correspond to your .Mac member name and .Mac Group name. 
    Note: Your .Mac member name is  the first part of your .Mac email address, before "@mac.com."
    6. If you have either or both of these files, move them to the trash. Then close the Contents window.
    7. Relaunch iWeb and try publishing again.
    Sincerely,
    Mike
    The .Mac Support Team
    Access a wealth of technical support information by visiting the .Mac Support website at <http://www.apple.com/support/dotmac>.
    To learn more about using .Mac, visit the .Mac Learning Center at <http://www.mac.com/learningcenter/>.
    I have no problems connecting to my iDisk. When I am in iWeb, I click "publish to .Mac" and when it gets about half way through the progress bar it halts and says, "There was an error reading your iDisk quota". I had a trial account before and it worked just fine. As soon as I purchased a full .Mac account I have been having this error. I've gone though your discussion boards and I found people that were having the same problem and according to them Apple repsonded that it was a problem server side and they corrected it within minutes. Something to do with too many people signing up for new accounts.
    Thanks,
    Robin
    On Friday, January 20, 2006, at 12:27PM, .Mac Support <[email protected]> wrote:
    Dear Robin,
    Thank you for contacting Apple.
    From your initial request, we understand that you are experiencing difficulty when trying to publish pages using iWeb. Currently, we are able to connect to your iDisk's Public folder, which suggests that it is working properly. We would like to request more information about the error you are experiencing in order to better assist you.
    Please reply to this message with a detailed description of the steps you are taking, including when the error occurs and the full text of the message. Additionally, please attempt to connect to your iDisk in Finder by selecting Go> iDisk> My iDisk>, and advise us of the results.
    Sincerely,
    Duffy
    The .Mac Support Team
    Access a wealth of technical support information by visiting the .Mac Support website at <http://www.apple.com/support/dotmac>.
    To learn more about using .Mac, visit the .Mac Learning Center at <http://www.mac.com/learningcenter/>.
    Customer First Name : Robin
    Customer Last Name : Buday
    email : [email protected]
    Web Order # :
    Support Subject : iWeb
    Sub Issue : Publishing to .Mac
    Comments : I just signed up for .mac today with the intention of publishing my iWeb website to it and it says: "There was an error reading your iDisk quota". Please help!
    -Robin
    --------------------- Additional Info -------------------------
    Alternate email: [email protected]
    ISP Name: Robin Buday
    OS Version: 10.4.4
    Connection Type: DSL/Cable
    TrackID: 1557711

  • Now i get "There was an error reading your iDisk quota."

    I have updated to 1.1.1 and while I had issues with publishing to my .Mac account, I never had the problem that was supposed to be SOLVED with this, not CREATED - I now get the infamous "There was an error reading your iDisk quota."
    Am I the only one? Any solution? Yes, I have reinstalled, yes, I have created a new site and copied the material. I am out of of options here.

    I, too, was getting the fatal "error reading your iDisk quota message" and I tried everything I could think of and every suggestion I could soak up here in these forums.
    What finally resolved the issue for me was to open the domain.sites package contents (by shift clicking on the file which is located in ~/Library/Applications Support/iWeb) and to delete not only the typical .plist files, but also the "assets.<membername>.groups.<groupname>.plist" file, and the "assets.<membername>.plist" file.
    This recommendation came to me by way of Artie from the .Mac Support Team, to whom I am forever grateful! I hope this works for you, too!
    Powerbook G4   Mac OS X (10.4.7)  

  • Unable to read from .csv having field in double quotes

    Hi to all,
    I am trying to reading data from .csv file using JDBC it was reading perfectly when fields are without quotes
    i.e. Field1 and unable to read with filedname as "Field" instead giving Exception Column Not Found, please help me out with this.
    Expecting your responses in this matter.
    Thanks in advance.
    khiz_eng

    So you really read the csv (ASCII) file over JDBC?
    Well, for DSNless connection there's a simple trick:
    1) configure a DSN exactly like your actual (system or user DSN), but as a file DSN.
    This can't be used for JDBC conections, but it contains all the params in a very clear format which you have to set for your JDBC connection just with the same values.
    2) Code your connect string:Connection con = DriverManager.getConnection( "jdbc:odbc:Driver=valueForDriverInFileDSN;Database=valueForDatabaseInFileDSN", user, pw );Look, if you succeed this way.
    If not, please post:
    * your connect string
    * the DBException's informations
    * the content of your FileDSN file

  • Publish Error: There was an error reading your iDisk quota

    While trying publish to my .Mac account, iWeb gives me this message: Publish Error: There was an error reading your iDisk quota.
    I published earlier to a group and it worked. I even went to my .Mac/iDisk system preferences on the web and alocated more space for my group site.
    No Dice.
    I just tried publishing to .Mac without the group.
    No dice.
    I even tried ellimanting some pages
    No Dice.
    Hmmm. Frustrating. It worked before, now what?

    i followed these steps recommended by mac support and it solved my problem. try it.
    We are currently investigating an issue affecting some users who receive an error message while trying to publish a page or site using iWeb. The error states: "There was an error reading your iDisk quota."
    Before we proceed with the steps to resolve this issue, we recommend that you back up the iWeb data file. If you already have this file backed up, you may skip to "Resolving the issue" below.
    To locate the iWeb data file:
    1. From the Finder menu bar, select Go > Go to Folder.
    2. Type (or copy and paste) ~/Library/Application Support/iWeb into the field and click Go. You should now see a file named Domain. This file may also appear as Domain.sites, but we will refer to it as Domain throughout these instructions.
    If you have the Backup application that is included with .Mac, you can use this to back up the file to your iDisk, CD/DVD, or to an external hard disk.
    Note: Though there is an iLife plan in Backup, it does not currently back up the files associated with iWeb. To back up iWeb files, you will need to use either the Custom or Home Folder plan.
    If you do not have Backup, you can create a copy of the file and place the copy in a safe place. To duplicate the Domain file, click the file once to highlight it, then select Duplicate from the File menu. This will create a copy of the file named, "Domain copy." Move this file to the desktop or any other safe location.
    Resolving the issue:
    1. Quit iWeb if it is open.
    2. From the Finder menu bar, select Go > Go to Folder.
    3. Type (or copy and paste) ~/Library/Application Support/iWeb into the field and click Go. You should now see a file named Domain. This is a Mac OS X package file.
    Note: A package is a relatively common type of document in Mac OS X; it is essentially a sealed folder. It contains individual items, but cannot be opened in the same manner as a folder.
    4. To open the package, hold down the Control key and click on the Domain package file.
    Note: If you have a two-button mouse, this step can be accomplished by right-clicking the Domain package file.
    5. Select Show Package Contents from the contextual menu that appears.
    6. A new window titled Domain will appear showing the contents of the package. Here you will see one file (or possibly two files) named "assets.<membername>.groups.<groupname>.plist" or "assets.<membername>.plist" where <membername> and <groupname> correspond to your .Mac member name and .Mac Group name.
    Note: Your .Mac member name is the first part of your .Mac email address, before "@mac.com."
    7. If you have either or both of these files, move them to the trash. Then close the Domain window.
    8. Open iWeb and try publishing again.

  • Tomcat unable to read accented characters from MySQL

    Folks,
    Can anyone help with me this problem?
    It seems that my version of Tomcat is unable to read accented characters from my MySQL Database.
    I've checked in the Database and the characters are all correctly represented there. But when, in my servlet code, I do:
    String author = results.getString("author_surname");If the String contains any accented character then the character shows as a '?'. (Even before it gets to the JSP - I'm writing the results straight to catalina.out).
    Looking around these forums I found that some people suggested adding
    ?useUnicode=TRUE&characterEncoding=UTF-8;to the end of my jdbc url. As in:
    <ResourceParams name="jdbc/connection">
    //a whole load of other params
      <parameter>
        <name>url</name>
         <value>jdbc:mysql://localhost:3306/bookshop?useUnicode=TRUE&characterEncoding=UTF-8</value>
      </parameter>
    </ResourceParams>inside my server.xml
    But it doesn't seem to make any difference. In addition, I doubt I even need to use Unicode as the accents I need are only: ����� etc.
    (Incidentally, writing that line into my server.xml, tomcat complains that it should finish with a semi-colon. Is that correct? Even if I put in the semi-colon, it still complains!!)
    Any suggestions on this would be much appreciated. Thank you.

    user13109986 wrote:
    HI,
    From http://download.oracle.com/docs/cd/B10501_01/server.920/a96529/ch9.htm
    My understanding is the JDBC Api converts the string from the database to UTF-16.. If so is there any way to disable the UTF-16 encoding at JDBC API?That's exactly what it's supposed to do. There isn't even any concept of what it would mean to disable that: Java characters are UTF-16 representations of Unicode code-points, so there isn't anything else it could do.
    I still suspect the JDBC part is working correctly and your writing-to-file isn't. I found this quote in the Wikipedia article on Windows-1256:
    Windows-1256 is a code page used to write Arabic (and possibly some other languages that use Arabic script, like Persian) under Microsoft Windows. This code page is not compatible with ISO 8859-6 and MacArabic encodings.So was there a particular reason you chose Cp1256 and not ISO-8859-6 as the charset to write to the file with?

  • System unable to read table in Adhoc Query

    Hi Experts,
    I am trying to extract a report based on Infotype 0022 through Adhoc query. Even after maintaining data for IT0022 for a few employees the system is unable to read the educational details of those employees.
    I am unable to trace the defect . can anybody please tell me what could be the reason. I have checked the table PA0022, there the data is been stored.
    Thanks & Regards,
    Smitha

    Hi paul and experts
    actuall im reading data from 0022 infotype .  im using  macro
    rp_provide_from_last p0022 '11' pn-begda pn-endda.
    no data found for this.
    but in pa30 for that particular employee data is there.
    please help me out of this.
    thanks a lot

  • Bridge CC. on opening message says unable to read cache, purge cache. This does not help.

    On opening message says unable to read cache, purge cache. Purging the cache does not help and Bridge continues to hang. Was working fine before.

    Mac?  REad this http://forums.adobe.com/thread/1237168

  • Install Software HANA unable to read repository

    Hello,
    I'm new to Eclipse. I'm trying to get up the trial Cloud environment for SAP HANA. I have Eclipse Juno installed. When I attempt to do an install of the HANA software on top of Eclipse I receive error "Unable to read Repository".
    We do not use a proxy, so network was set to "DIRECT". I can get to the SAP site from the browser tools.hana.ondemand.com/luna. I downloaded the certificate for that site and added it to the cacerts file for JDK1.6.0_45.
    The error message in full says:
    Unable to read repository at tools.hana.ondemand.com/luna/content.xml.
    Using the browser, tools.hana.ondemand.com/luna/content.xml returns a 404 error. If I change it to tools.hana.ondemand.com/luna/content.jar, it gives me a download.
    As far as I can tell, there's no way to make Eclipse point to content.jar. Can someone tell me where this is going wrong?
    Thanks.
    Danny Hearn

    On 06/26/2015 08:52 AM, Danny Hearn wrote:
    > Hello,
    >
    > I'm new to Eclipse. I'm trying to get up the trial Cloud environment
    > for SAP HANA. I have Eclipse Juno installed. When I attempt to do an
    > install of the HANA software on top of Eclipse I receive error "Unable
    > to read Repository".
    > We do not use a proxy, so network was set to "DIRECT". I can get to the
    > SAP site from the browser tools.hana.ondemand.com/luna. I downloaded
    > the certificate for that site and added it to the cacerts file for
    > JDK1.6.0_45.
    >
    > The error message in full says:
    > Unable to read repository at tools.hana.ondemand.com/luna/content.xml.
    >
    > Using the browser, tools.hana.ondemand.com/luna/content.xml returns a
    > 404 error. If I change it to tools.hana.ondemand.com/luna/content.jar,
    > it gives me a download.
    > As far as I can tell, there's no way to make Eclipse point to
    > content.jar. Can someone tell me where this is going wrong?
    >
    > Thanks.
    >
    > Danny Hearn
    Likely the best support for SAP/HANA would come from SAP/HANA.

  • PI 7.3 - AEX "unable to read configuration data" and login problems

    Hello Friends,
    after installation of AEX, i'm facing some problems.
    1.I'm not able to login with any user, i created during installation wizard. So i cannot check any user in NWA -> User Administration.
    2.Once more, while opening http://<host>:<port>/rep or http://<host>:<port>/dir, i get the following error message.
    Can somebody help me?
    I think, there is a problem with the users, which have been created during installation. How can i check this? Is there any chance?
    Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    PI (http://<host>:<port>/dir/start/index.jsp). Below is the part of the error message that is showing up. Appreciate your suggestions:
    Exception class: com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed
    Message
    Unable to read configuration data (ExchangeProfile/aii.properties)
    Stacktrace
    Thrown:
    com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed: Unable to read configuration data (ExchangeProfile/aii.properties)
    at com.sap.aii.utilxi.prop.api.PropertySourceFactory.initServerMode(PropertySourceFactory.java:220)
    at com.sap.aii.utilxi.prop.api.AIIProperties.initServerMode(AIIProperties.java:518)
    at com.sap.aii.ib.server.applcomp.StartupServerProperties.initPropertiesForServer(StartupServerProperties.java:97)
    at com.sap.aii.ibdir.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:151)
    at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:43)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:438)
    at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:203)
    Please let me know if I am not clear.
    Edited by: Clarence on Feb 6, 2012 3:28 PM
    Edited by: Clarence on Feb 6, 2012 3:28 PM

    hi,
    >>>>Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    if you have java stack only there is no exchange profile anymore...
    https://weblogs.sdn.sap.com/pub/wlg/28334
    Regards,
    Michal Krawczyk

  • Error: Unable to read footer file

    Hoping someone out there can help me. I get this error on
    everypage in my site and have no idea how to stop it.
    Error: Unable to read footer file
    The error does not show up when I preview inside dreamweaver
    but only rears its ugly head after I post the site up on the
    internet. I have searched for hours through the Dreamweaver menus
    and can not find these elusive footers and have no idea where they
    are coming from or what footer file it is trying to read.. Please
    help. This probably has a simple solution and I am just not able to
    understand it. Thank you.

    sdrouillard wrote:
    > This probably has a simple solution and I am just not
    able to understand
    > it.
    Possibly, but without a URL we can't comment. Post it, and
    we'll see.
    At a guess, sounds like an include file is missing. Are you
    on some sort of
    free hosting plan where the host puts some adverts in the
    footer? If that
    file is removed from your site directory you might get the
    error you've
    mentioned (at least, that was the case on the only other time
    I've seen this
    error)
    Regards,
    Pete.
    Peter Connolly
    http://www.acutecomputing.co.uk
    Derby
    UK
    Skype ID: acutecomputing

  • Unable to read DVD video

    I unable to read DVD video discs, although I can read DVD-R and CD.
    I try to change the region using regionset but with no change.
    here is the output of vlc, when I try to open DVD:
    VLC media player 0.8.6b Janus
    libdvdnav: Using dvdnav version 0.1.10 from http://dvd.sf.net
    libdvdread: Using libdvdcss version 1.2.9 for DVD access
    libdvdread: Could not open /dev/hdc with libdvdcss.
    libdvdread: Can't open /dev/hdc for reading
    libdvdnav: vm: faild to open/read the DVD
    [00000291] dvdread demuxer error: DVDRead cannot open source: /dev/hdc
    [00000294] vcd access error: could not read TOCHDR
    [00000294] vcd access error: no movie tracks found
    [00000294] access_file access error: file /dev/hdc is empty, aborting
    [00000294] cdda access error: could not read TOCHDR
    [00000294] cdda access error: no audio tracks found
    [00000289] main input error: no suitable access module for `dvd:///dev/hdc'
    [00000278] main playlist: nothing to play
    signal 2 received, terminating vlc - do it again in case it gets stuck
    [00000278] main playlist: stopping playback

    whats in your
    /etc/fstab
    yours is probably
    /dev/dvd         /mnt/dvd    auto      ro,user,noauto,unhide   0      0
    mine is
    /dev/dvd        /mnt/dvd    udf,iso9660      ro,user,noauto,unhide   0      0
    i had issues with some dvd's till i changed from auto to udf

  • Unable to read the dictionary of the application or extension...

    I had previously installed the HP Color LaserJet 3600 driver from the install CD under Tiger. I recently did an archive and install of Leopard, then ran all the system updates. (Currently at 10.5.5)
    When I insert the 3600 CD, though, I get a bunch of jibberish (parts of images, etc.) and a MAC OS X directory. The installer inside that directory attempts to be opened with Script Editor, though, and gives an error: "Unable to read the dictionary of the application or extension because it is not scriptable." followed by "The document 'HP Color LaserJet v5.6.1.069' could not be opened."
    Previously this would launch the HP installation program that would install the driver. Now, it's like it's not a recognized program or something. I downloaded the driver from the HP website to try it that way (clj3600MacOSX.dmg) with the same result. The .dmg file opens a disk image with the "HP Color LaserJet v.5.6.1.069" file in it...same result. Cannot open.
    I know this program ran fine under Tiger...and a co-worker got it to run after doing an upgrade to Leopard (instead of archive and install.)
    When I downloaded the HP 4300 installer dmg, it launches a .mpkg file and Get Info says it's set to open with "Installer (default)". The 3600 file, though is set to open with "Script Editor (default)". I've looked to set it to Installer, but don't know where it is...it's not in Applications or Utilities folder.
    I then right clicked on the installer file and selected "Show Package Contents". In the window that was displayed, there was a Contents folder. Inside that folder was a file called "HP Color LaserJet v5.6" with no file extension (Get Info doesn't show an extension either,) but it has a VISE logo. Opening that file launches the VISE installer and performs the setup.
    So, by jumping through hoops and getting lucky, I was able to install the driver.
    The bigger issue, though, is why the installation CD and/or .dmg file downloaded from HP's website cannot run the installer as usual...why are they set to open with Script Editor as the default application...and how can I fix it so that other disks won't have the same problem?
    [I originally posted this in the Printers forum, but it appears it's not a printing problem...it's an OS problem...]

    Installer.app is in /System/Library/CoreServices/

  • 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