Unable to read application data record. / Translation cancelled
Hi all
urgently need to sync my BB with outlook (v. 2002), using desktop manager 5 / pack one.
BB is set up as corporate w. wireless synch, which i disabled to have synch configuration done. then when syncing it would go over all 900 handheld records fine. afterwards it would go though contact records (again?) and stop somewhere around record 700, returning the above error message.
can someone help ? need to urgently get that data from corp bb onto my private outlook.
thanks in advance
malte
I'm having the same problem. I have Outlook 2007 and BBM Desktop 6.2010 (Bundle 21). The only way I was able to fix it was to delete all my contacts from my BB and resync. That worked great for the first few syncs, and then it started giving me the same problem again.
I have a BB Torch.
Similar Messages
-
One way sync from Outlook Express gets Unable to read application data error
I have a BB Flip, 8220, and am trying to use Outlook Express as my Contacts organizer. I have started Outlook express "vanilla" and only have one records in Outlook Express. I have 34 records in my BB Contacts. When I run synchronize (and again, I am trying to do this one way, from Express to BB) I get the error "Unable to read application data", "Processing Device Address Book", "Record 34 of 34 Records".
I have read many of the threads. I have checked the RIM.log file and it says one way sync. Any clues on how to fix this? I am on Desktop 4.6, do I need to upgrade to 4.7?
Please advise.
Thank you.
Solved!
Go to Solution.Well I fixed the problem. What I did was run a Backup using the desktop mgr software, I then ran a restore, but I used the Advanced option so that I could open the ipd backup file and then select just the contacts database and push that from my computer to the device (using the right arrow copy button in the middle of the Advanced window thingy). I then reran the Sync and it WORKED!
Doing the backup and restore must have fixed the corrupted record on my phone. Wonderful. I was nervous, but it worked jst fine. -
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 PMhi,
>>>>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 -
ORA-29400: data cartridge error/IMG-00703: unable to read image data error
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
ORA-29400: data cartridge error
IMG-00703: unable to read image data
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65
ORA-06512: at "ORDSYS.ORDIMG_PKG", line 37
ORA-06512: at "ORDSYS.ORDIMAGE", line 927
is raised when the following trigger is processing certain JPGs (example). Other JPGs are handled as expected:
create or replace trigger photo_size_trg
before insert or update on photos
for each row
declare
photo_width integer;
begin
-- Check to see if the new photograph is different from the old one... --
if dbms_lob.compare(:old.photo, :new.photo) != 0
then
-- ...if so, check to see if it's wider than the desired 250 pixel --
-- maximum... --
photo_width := to_number(ordImage.getMetadata(:new.photo)(1).extract('/ordImageAttributes/width/text()').getStringVal());
if photo_width > 250
then
-- ...and if so, apply an image transform that will resize to the photo --
-- to a maximum of 250 pixels wide, keeping the original aspect ratio. --
-- There doesn't seem to be an elegant way of specifying a constraint --
-- in one dimension like this, so the height is specifed as a large --
-- enough value to cover all practical contingencies. --
ordImage.process(:new.photo, 'maxScale=250 10000');
end if;
end if;
end;Any thoughts/suggestions?hi,
I am getting following error,kindly help me out to rectify this ..
thank you
ORA-29400: data cartridge error
ORA-00600: internal error code, arguments: [kokbCollTerminate], [13], [], [], [], [], [], [] -
Unable to read configuration data (ExchangeProfile/aii.properties)
Pls anybody can help me in solving this issue
Unable to read configuration data (ExchangeProfile/aii.properties)look at this two threads
Exchange Profile Error
XI 3.0 Problem on Java startup
Thanks -
Unable to read E$ table records into excel file in linux machine
Hi
I am using below code in ODI procedure to read E$ table record and store it in excel file
ODI Procedure: Technology=Java Beanshall and Command on Target I written below code and placed it in CKM Oracle KM
<@
String OS = System.getProperty("os.name").toLowerCase();
String v_path="";
if((OS.indexOf("win") >= 0))
v_path="D:\Unload_Dir\<%=snpRef.getSession("SESS_NO")%>.xlsx";
else if (OS.indexOf("mac") >= 0)
v_path="path details";
else if (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0 )
v_path="/odi_a/oracle/Middleware/logs/wcds/odi_logs/<%=snpRef.getSession("SESS_NO")%>.xlsx";
else if (OS.indexOf("sunos") >= 0)
v_path="soliaris path";
@>
OdiSqlUnload "-FILE=<@=v_path@>" "-DRIVER=<%=odiRef.getInfo("DEST_JAVA_DRIVER")%>" "-URL=<%=odiRef.getInfo("DEST_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("DEST_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("DEST_ENCODED_PASS")%>" "-FILE_FORMAT=VARIABLE" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
select * from <%=odiRef.getTable("L","ERR_NAME", "W")%>
But is not reading the data into .xlsx file ,
Please help me it is very urgent
Can I use below code
String os = "";
if (System.getProperty("os.name").toLowerCase().indexOf("windows") > -1) {
os = "windows";
} else if (System.getProperty("os.name").toLowerCase().indexOf("linux") > -1) {
os = "linux";
} else if (System.getProperty("os.name").toLowerCase().indexOf("mac") > -1) {
os = "mac";
T
his is high priority, please help me urgent
Regards,
Phanikanth
Edited by: Phanikanth on Feb 28, 2013 5:43 AM
Edited by: Phanikanth on Feb 28, 2013 6:00 AM
Edited by: Phanikanth on Feb 28, 2013 7:42 AMHi,
can you describe what is happening when you run the ODI procedure described below:
- Does the procedure fail with an error, if yes, which error(full details)?
- Does the procedure pass but no xslx file is been created?
- Does the procedure pass and an xslx file is been created, but Excel can't read it? If yes, what is the structure of the xslx file when read in an editor?
What I can see from your code below is that you have choosen -FILE_FORMAT=VARIABLE, but the XSLX format is supposed to be XML.
Regards,
Alex -
FCP error message: Unable to read the data on your source tape!
Hey,
So I have been editing on the MacPro now for over a year and I have never seen this message before...the message reads:
_*"Capture encountered a problem reading the data on your source tape. This could be due to a problem with the tape."*_
Has anyone got this message and could help me out please? I need to edit these tapes A.S.A.P.
Thank You,
Erickwhy would it start a month later giving me problems instead of when it was updated?
That is a good point. Anything change since the time it worked to when it didn't? How about trying another firewire cable. Those can go south without notice, might cause this.
Shane -
ME_PROCESS_PO_CUST "IMPLEMENTING CLASS
IF_EX_ME_PROCESS_PO_CUST " INTERFACE
POST "METHOD
POST HAS TWO PARAMETERS
IM_EBELN
IM_HEADER TYPE REF TO IF_PURCHASE_ORDER_MM
IF_PURCHASE_ORDER_MM "INTERFACE
GET_DATA "METHOD , WORKIG FINE
GET_ITEMS "METHOD
GETI_ITEMS HAS PARAMETER REITEMS
REITEMS IS TABLE TYPE PURCHASE_ORDER_ITEMS
WHICH IS LINE TYPE PURCHASE_ORDER_ITEM
AND THIS LINE TYPE HAS FIELD
ITEM WHICH IS TYPE IF_PURCHASE_ORDER_ITEM_MM
AND AGAIN IN THIS INTERFACE THERE IS METHOD GET_DATA TO GET ITEM DATA.
PLEASE SUGGEST ME HOW TO ACCESS ITEM DATA ,
IF POSSIBLE PLEASE WRITE THE CODE AS I AM VERY POOR AT 'OOPS' AND ITS VERY VERY URGENT.
THANKS AND REGARDS
Edited by: TRY-N-TRY on Jan 7, 2008 6:23 PMHello
If you had searched the SDN forums you would have found plenty of answers to your question.
Following is some sample coding:
method IF_EX_ME_PROCESS_PO_CUST~POST.
DATA:
ls_header TYPE mepoheader,
lt_items TYPE purchase_order_items,
ls_item TYPE purchase_order_item,
ls_item TYPE mepoitem.
ls_header = im_header->get_data( ).
lt_items = im_header->get_items( ).
LOOP AT items INTO ls_item.
ls_item = line_item-item->getdata( ).
" process item data...
ENDLOOP.
ENDMETHOD.
Regards,
Uwe
PS: Do not use such kind of pseudonyms instead of your real name. Because my impression is that a nobody (in term of ABAP development competence) tries to claim to be a somebody who fills his knowledge gaps via SDN. Using pseudonyms significantly decreases your changes to get any answers at the SDN forums. -
WorkStation 11 shared VM's suddenly get a red X and "unable to read configuration data"
This will usually follow a re-boot of the host machine, running Windows Server 2012.
I can then REMOVE the machine(s)
And open the .vmx file from the file manager ...
After which I can again share the file.
What can I do to prevent this? Has anyone else seen the problem?
Thanks!I'm seeing this as well. With Win7 as host OS. Not sure what causes it yet...
Highly annoying!
Update: Restarting "VMware Workstation Server" service seems to solve it. Tried setting the service to Automatic Start (Delayed), but that didn't help.
Update2: For now I've implemented a script (based on http://csi-windows.com/toolkit/csi-vmwsautoshutdown) that restarts the service with some delay after system startup (Scheduled Task) and forcefully starts all VM's. This seems to help ensuring the VM's Auto-Start.
VMwareHostdrestart.bat (call this from Scheduled Task)
@echo off
net stop VMwareHostd
net start VMwareHostd
%~dp0vmstartup.bat >%~dp0VMwareHostdrestart-vmstartup.log 2>&1
vmstartup.bat (modify to contain credentials for an user with sufficient rights in VMware Workstation)
@echo off
set PROGROOT=%ProgramFiles%
if not "%ProgramFiles(x86)%" == "" set PROGROOT=%ProgramFiles(x86)%
set HOST=127.0.0.1
set LOCALUSER=%COMPUTERNAME%\<username>
set LOCALPWD=<userpass>
set LOGGING=1
if not exist "%PROGROOT%\VMware\VMware VIX\vmrun.exe" (
echo VMware VIX Not Installed, aborting...
if %LOGGING% EQU 1 (
eventcreate /T ERROR /ID 1 /L APPLICATION /D "VMware VIX not installed, aborting..."
goto :ALLDONE
set VMRUN="%PROGROOT%\VMware\VMware VIX\vmrun.exe"
rem start, stop, reset, suspend, pause, unpause
set VMACTION=start
setlocal EnableDelayedExpansion
echo searching for vms...
set STOPPEDVMCOUNT=0
for /f "tokens=*" %%i in ('%VMRUN% -T ws-shared -h %HOST% -u %LOCALUSER% -p %LOCALPWD% listRegisteredVM ') do (
echo %%i |findstr /I /C:"["
if !ERRORLEVEL! EQU 0 (
echo Processing %VMACTION% for VM: %%i
%VMRUN% -T ws-shared -h %HOST% -u %LOCALUSER% -p %LOCALPWD% %VMACTION% "%%i"
if %ERRORLEVEL% EQU 0 (
if %LOGGING% EQU 1 (
eventcreate /T INFORMATION /ID 1 /L APPLICATION /D "Successful %VMACTION% of VM: %%i"
set /a STOPPEDVMCOUNT=!STOPPEDVMCOUNT!+1
) else (
if %LOGGING% EQU 1 (
eventcreate /T ERROR /ID 2 /L APPLICATION /D "Failed %VMACTION% of VM: %%i"
echo %STOPPEDVMCOUNT% VMs Started
rem if %LOGGING% EQU 1 (
rem eventcreate /T INFORMATION /ID 1000 /L APPLICATION /D "%STOPPEDVMCOUNT% VMs Started"
rem )
endlocal
:ALLDONE
REM pause -
Read Master Data for Process order status change (REL to CRTD)
I am unable to read master data and thus change the status of process order from REL to CRTD. (COR2)
The reason it says, error in BOM reading, Transport Requirement (TR) already generated.
Even after deleting the TR (LB02), the issue still exists.
Is there another way of changing the status or some more steps are needed for the TR deletion?
Thnx!
Abhi.Order header Status-
REL Released
MSPT Material shortage
PRT Printed
PRC Pre-costed
BASC Batch assignment complete
BCRQ Order to be handled in batches
SETC Settlement rule create.
In the error log it gives-
Diagnosis
Transfer requirements have already been generated, so therefore the bill of material cannot be read.
System Response
The system does not execute the action.
Then I deleted the TR (LB02), but still I cannot reread the master data.
The MSPT was for only 2 materials out of 6 and there is no GMPS status.
There is prod supply area and control cycle used.
and the TR generated at order release. -
How to read the data from an internal table,when column names are known
Hi All
I have a specific requirement. I got an internal table with many fields (let it be my_tab). Some of the fieldnames (column names in internal table my_tab) are stored in separate internal table(let it be my_fields).
I need to store/read data corresponding to the fields (whose name is stored in my_fields) from my_tab.
I am able to build dynamic table (referred by field-symbol) with respect to the given field names in my_fields.
But i am unable to read the data corresponding to the fieldnames from my_tab.
Please provide me some pointer in this regard.
Regards
Swetabh ShuklaHI All
Thanks for the prompt response. I got solution for my question. Please check below thread. For quick reponse i posted my question in one more category. Thanks to all of you.
How to read internal table w.r.t. fieldnames stored in other table -
Unable to read the freq and amplitude
if you could look at the prog.s attached and if you can explain why i am unable to read the data output from "scalled data vs seconds" into tone measurments.
it must have something to do with the conversion from the cluster of 3 elements to the DBL waveform can anyone see the mistake in the conversion!!Please re-post your VI "problem" with default values saved on both graphs.
Thanks -
Problem while reading xml data
private var _xlimData:XML=
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master>sample-layout</fo:layout-master>
</fo:root>
var fo:Namespace = new Namespace(http://www.w3.org/1999/XSL/Format);
public function readXlim():void
Alert.show(_xlimData..fo::layout-master);
I am unable to read the data because of Hyphen(-) in 'layout-master' .But placing Hyphen(-) is must .Please solve my problemvar fo:Namespace = new Namespace("http://www.w3.org/1999/XSL/Format");
Alert.show(String(_xlimData.fo::["layout-master"]));
Off topic: Please don't spam my blog next time. If you are facing a problem, please post your questions here so that others can also learn from the example in case they run into the same problem. Thanks. -
Satellite Pro M40: DVD/CD multi recorder - unable to read or burn film data
Hi,
this recorder for satellite pro m-40, is strange; i am able to boot from dvd, read dvd data, burn cd but, unable to read or burn film data (original); i have already try it with few dvd film without success!
Any idea?
thanks!
ronaldTo malossi:
You dont have the similar problem because the user above cannot read and burn ONLY the original DVD movies!
> i am able to boot from dvd, read dvd data, burn cd but, unable to read or burn film data (original);
In your case possibly the drive is dead or not compatible with the media (but I dont think so).
Check this Microsoft site for some general ideas:
http://support.microsoft.com/kb/321641/en-us
I have read also that someone was having this problem, and found that going into hardware profiles for the CD Rom that wasn't reading, clicking on the advanced tab, and selecting "PIO only" instead of "DMA if Available" worked in win XP sp2. Maybe you will try these. -
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.comhi 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
-
I'm having a problem reading from a file in Fort�. My program works in TextPad, but when I try running it with Fort�, it throws a FileNotFoundException... I was wondering if I have to include it in a project or something like that? Any help would be
-
Please let me know how to upload my ITunes Library to my Cloud
Please let me know how to upload my PC based ITunes libray to my Cloud. Thank you.
-
HT1926 I still cannot launch appl.???
I am totally lost. Not knowing I entered my MasterCard and it charged me for a game?? Or movie I did not want!! I thought I had to have a credit card to use I.Tunes. I cannot launch games for my family member? My husband and I thought it wanted our c
-
Connected webpart - add item with selected data
Hi! I have a page with connected web parts. Example: List one: Companies a address List with companies List two: Employees A list with employees and a relation to companies (Company name). On the view item on companies i have list Employees connected
-
Who is visiting my under construction web in Business Catalyst?
Wow, I didn't expect it! I'm building a web in Muse and I uploaded it in Business Catalyst. Got very surprised about statistics in BC. People from six or seven different locations have viewed the project. I have not shown it yet to my client. Is it