Error "An exception occurred within the external code..." when stopping LabView

I am having an error "An exception occurred within the external code called by a Call Library Node...", see the attached image, when I am trying to stop LabView. As a result of the error, the tag engine doesn't close normally.
I am using LabView 7.1 with DSC. I read values from a LNS (LON) OPC-server.
Is this a known issue and is there any way to repair it? I haven't noticed any direct consequences because of the error except that when I re-start LabView and the close it again without having first rebooted the computer, tag engine sometimes starts again when it should stop. This is fixed by always rebooting the computer before restarting LabView. I am getting suspicious that there might be some strange behaviour because the error says "it might have corrupted LabView's memory".
For example, sometimes when I have made a copy of an input number field to another, they follow each other's value changes even though there is no connections between them.
Simo Martikainen
Message Edited by Simo Martikainen on 12-17-2008 03:11 AM
Attachments:
LabView stop error.JPG ‏45 KB
TAGENGINE.JPG ‏16 KB

Especially in earlier versions of LV these sorts of errors were common if the call wasn't made just right or the parameters were set up incorrectly.
Where did you get the DLL from? Was it written internally or did it come from another vendor?
Try building a DLL call into a very small, simple application. Do you see the same issue?
Are there multiple calls to the same DLL in your code? If so, is there problems with all of them?
Can you track it down to a specific function that you are trying to access that is causing the problem?
Is there any indication of a memory leak?
Finally any additional information you can provide would helpful.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • An exception occured within the external code called by a Call Library function Node

    Good Morning,
    I built a VI that contains Matlab nodes in Labview 8.0.  I made an executable and gave it to a colleage to use who is running Windows XP.  I see in the folder C:\Program Files\National Instruments\Shared\LabVIEW Run-Time that she has 7.1 and 8.0 run time engines installed.
    On Friday the executable ran great on her machine.  Today, when she tried running it I received the following error.  "LabVIEW:  An exception occured within the external code called by a Call Library Function Node.  This might have corrupted LabVIEW's memory.  Save any work to a new location and restart LabVIEW.  'my vi' was stopped at node 0x0 of subVI "NI_AALBase.lvlib:Real A x B.vi:1".  This error occured after part of the program ran properly.  More specifically, two of the matlab nodes ran perfectly.  I am unsure about the third because the program stopped too early.  I do have to multiply two matrices using the subvi Real A x B.  Is this causing the error?
    I also saw this error when I installed it on another computer.  However I do not see this error when I run the executable or the main vi on my machine  I know there are other discussions on this topic, however I do not know why it would affect some machines and not others.  Also, I do not know why it would work on Friday and not on Monday.  Should I have checked the box that said "Enable Debugging" under the advanced section when building the executable?
    If anyone could help, I would be very appreciative.
    Thanks,
    -Richard

    molecularvisions wrote:
    Good Morning,
    I built a VI that contains Matlab nodes in Labview 8.0.  I made an executable and gave it to a colleage to use who is running Windows XP.  I see in the folder C:\Program Files\National Instruments\Shared\LabVIEW Run-Time that she has 7.1 and 8.0 run time engines installed.
    On Friday the executable ran great on her machine.  Today, when she tried running it I received the following error.  "LabVIEW:  An exception occured within the external code called by a Call Library Function Node.  This might have corrupted LabVIEW's memory.  Save any work to a new location and restart LabVIEW.  'my vi' was stopped at node 0x0 of subVI "NI_AALBase.lvlib:Real A x B.vi:1".  This error occured after part of the program ran properly.  More specifically, two of the matlab nodes ran perfectly.  I am unsure about the third because the program stopped too early.  I do have to multiply two matrices using the subvi Real A x B.  Is this causing the error?
    This is most likely an error with the use of the Call Library Node, but not in the Real A x B.vi itself. This is a VI that comes with LabVIEW and has been tried and tested many times and unless your LabVIEW installation is messed up simply shouldn't fail in such a way on its own.
    However you do include Matlab code somewhere and that might be more likely to cause this. Are you using the built in MathScript node or some other way to communicate directly to a Matlab DLL or such?
    Are you using anywhere Call Library Nodes that you have created or that did at least not come standard with LabVIEW?
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • SO Wait causes exception occurred within external code called by call library node

    when trying to run some old code that used to work ok, i now get this error message:
    exception occurred within external code called by call library node
    and the vi flagged as calling the exception is SO Wait. the error occurs with different soundcards. does anyone know what is causing this problem?

    Hi Kreuters
    It sounds as if you have a case of memory corruption. Which version of LabVIEW and DAQ (traditonal or DAQmx) are you running and also on which operating system?
    would it be possible for you to post your VI on this thread? in some cases there are ways to fix the problem
    Regards
    YatinM
    NIUK

  • An exception occurred in the visualization framework.(error: RWI 00621) in BI Launchpad

    Hello,
    I am facing this error " an exception occurred in the visualization framework.(error: RWI 00621)" while running/opening a webi report from BI launchpad. Please see the attached screen shot.
    Please help me in getting this resolved.
    Thanks a lot in advance.
    Arun

    Hello Arun,
    Seems its a known issue while using complex formulas in graph. SAP has provided a note for some similar issue. Can you try below note and see if there is any change?
    SAP Note 1584024 - Error webi submitReport error ERR_WIS_30270 when complex formula is added in the stacked…
    Please see if it can give any useful information.
    Regards,
    Nikhil Joy

  • 500 Internal Server Error  Servlet error: An exception occurred.

    Hi All,
    I was trying to access oracle applications. I installated R12 on Linux through VM Ware. I started Database Listener , Database and Finally Application Tier using adstrtal.sh. Every thing went fine with exit status as zero. I installed mozillla firefox and jre 1.6.0_07 but when I gave URL and tried to access applications i was getting 500 Internal server error.
    Below is the error
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.

    I've a situation that, we have to add some pages into the APPS environment. For that, what we generally do is,
    1. Stop the Apache server.
    2. Add the pages.
    3. Start the Apache server again
    And it should start.
    But, In our case it's giving an internal server error.
    And as we run autoconfig its working fine.But as it is a test server, we've got to add the pages several times. Each and every time we add pages we have to run autoconfig.
    our environment is
    OS: IBM AIX 6
    APPS: release 11.5.10.2
    we can't understand what the problem is!!!
    Is the there any solution for that?
    Please do suggest, if any one experienced the same...
    Edited by: badri on Nov 9, 2011 6:17 PM

  • [URGENT] 500 Internal Server Error  Servlet error: An exception occurred

    I have Oracle ebs 12 running on unix , and i do clone from production to Development ,
    after execute adstrtal.sh , i do check with adapcctl.sh status
    and the result is :
    Checking status of OPMN managed Oracle HTTP Server (OHS) instance ...
    /oracle/UATGG/inst/apps/UATGG_smjkt-tsfn01/ora/10.1.3/opmn/bin/opmnctl[31]: unlimited: 0403-009 The specified number is not valid for this command.
    Processes in Instance: UATGG_smjkt-tsfn01.smjkt-tsfn01.corp.sm.co.id
    --------------------------------------------------------------+---------
    ias-component | process-type | pid | status
    --------------------------------------------------------------+---------
    OC4JGroup:default_group | OC4J:oafm | 285084~ | Alive
    OC4JGroup:default_group | OC4J:forms | 224143~ | Alive
    OC4JGroup:default_group | OC4J:oacore | 124518~ | Alive
    HTTP_Server | HTTP_Server | 167123~ | Alive
    but when im open the url , i have face with error : "500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details "
    I check the apche log and have error= "
    [Tue Apr 24 15:42:22 2012] [error] [client 172.16.101.37] [ecid: 1335300142:172.16.4.167:20841248:0:1,0] mod_oc4j: Failed to find a failover oc4j process for session request for
    destination: application://oacore (no island or jgroup).
    [Tue Apr 24 15:42:48 2012] [error] [client 172.16.101.37] [ecid: 1335300168:172.16.4.167:20841248:0:2,0] File does not exist: /oracle/UATGG/inst/apps/UATGG_smjkt-tsfn01/portal/f
    avicon.ico
    and then im do shutdown application and running autoconfig in DB tier dan APPS tier , and the result is succesfully,
    i meet with noted "R12: Resolving error mod_oc4j Failed To find A Failover OC4J Process For Session Request For Destination [ID 785296.1] " and do all step with autoconfig again , and autoconfig run sucessfully , and then im start apps and check adapcctl.sh status , running well
    but when im open URL login , i have same problem with before is "500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details "
    can u help me :(

    Did AutoConfig complete successfully?
    Please see these docs.
    What is the Significance of Error Message Opmnctl[20]: Unlimited: 0403-009? [ID 555406.1]
    Unlimited: The Specified Number Is Not Valid For This Command [ID 224223.1]
    Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 [ID 761566.1]
    Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86 [ID 761564.1]
    Thanks,
    Hussein

  • N unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    some one can help me please
    i have no idea what i must to do.
    an unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    The Exception Handler gave all the info that you need. No need to print the whole stack trace.
    The exception handler says
    Exception Details: java.lang.IllegalArgumentException
    TABLE1.NAME
    Look in the session bean (assuming that is where your underlying rowset is). Look in the _init() method for statements similar to the following:
    personRowSet.setCommand("SELECT * FROM TRAVEL.PERSON");
    personRowSet.setTableName("PERSON");
    What do you have?

  • BI scheduler error, 1064: An exception occurred in the service

    I am getting an error below while trying to restart BI scheduler,
    "could not start the oracle bi scheduler service on local computer, error 1064: An exception occurred in the service when handling the control request".
    Obiee is running on windows 2003 server. Scheduler was working fine until env went down, when l tried to restart it, suddenly i get this error message. The other services restart fine. Answers, dboard work fine. Its only the scheduler.
    I tried a couple suggested things on the Forum,
    1) l tried to connect the scheduler user using sqlplus, i get an error, ORA-12560: TNS:protocol adapter error. i cant connect. checked with the DB the user is not locked.
    2) I checked the tnsnames.ora everything is fine.
    3) I tried tns ping the user from cmd line i get an error TNS-03505: Failed to resolve the name.
    The scheduler log details are below
    2010-09-24 07:44:01
    [68008] Scheduler Error:
    Current Table: S_NQ_JOB.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_JOB_PARAM.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_INSTANCE.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_ERR_MSG.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    If enable tracing on sqlnet.ora i get
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: entry
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: system names file is E:\oracle\product\10.2.0\client_1\network\admin\tnsnames.ora
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: exit
    (4472) [24-SEP-2010 09:10:14:390] nnftboot: exit
    (4472) [24-SEP-2010 09:10:14:390] nnftrne: entry
    (4472) [24-SEP-2010 09:10:14:390] nnftrne: Original name: S_NQ_SCHED
    (4472) [24-SEP-2010 09:10:14:390] nnfttran: entry
    (4472) [24-SEP-2010 09:10:14:390] nnfgrne: Query unsuccessful, skipping to next adapter
    (4472) [24-SEP-2010 09:10:14:390] nnfgrne: exit
    (4472) [24-SEP-2010 09:10:14:390] nnfun2a: address for name "S_NQ_SCHED" not found
    (4472) [24-SEP-2010 09:10:14:390] niqname: Return code from nnfsn2a is 1
    (4472) [24-SEP-2010 09:10:14:390] nigtrm: Count in the NI global area is now 0
    Thanks
    Farai

    hi,
    I tried tns ping the user from cmd line i get an error TNS-03505: Failed to resolve the name.Is there any whitespaces in your DSN name or in tnsnames(.ora) file ? please check it once
    Confirm this ,are you using same DB connection in Job manager and connection pool settings ??
    thanks,
    Saichand.v

  • Error "Internal error occurred checking the external " while creating a job

    Hi All,
            I am getting an error while trying to schedule a job, Im not very shure abt what the job does, the user tried it and she got an error and asked me to do it.
            A similer kind of job has been created in an other system and it works fine there. This job should run monthly and belowis the job step
            The job runs on an external command and following are the paramerters
             Name           SAA_TP_CHECK                                          
             Parameters     /usr/sap/transTCluster/bin/TP_DOMAIN_TD1.PFL          
             Operating sys. UNIX                                                  
             Target server  saptp1
            This gives an error "Internal error occurred checking the external "
    A similer kind of job that runs in a different system has the parameters as follows
            Name           SAA_TP_CHECK
            Parameters     /usr/sap/trans/bin/TP_DOMAIN_YD4.PFL
            Operating sys. UNIX
            Target server  sapyp4
    What might be causing the error, and how can this be solved. Please help!!!!

    Hi,
    I think the issue is with the server .
    Please check whether the Server name you are giving has the all the RFC connections.
    I mean Remote Connection with the Server is establised or not.
    Regards
    Arbind

  • An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. mail will not be sent.

    Hii all,
    I have a subscription which used to send report email daily 10 am morning 
    now today it does not sent an email the status i s showing above error message ..
    why this occurs ?? at the time of subscription running time ??
    i have checked there is not error of subscription it runs fine ..
    only today errored ..
    Kindly , help me
    Dilip Patil..

    Hi Dilip,
    Based on the error message "An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database." it seems the issue is caused by the Report Server catalog databases are
    corrupted.
    To fix this issue, I suggest that you use the Reporting Services Configuration Manager to recreate the Report Server catalog databases. In addition, please make sure report server instance can connect to the report server database. For more details about Configure
    a Report Server Database Connection (SSRS Configuration Manager), please see the following document:
    http://msdn.microsoft.com/en-IN/library/ms159133.aspx
    Besides, if the issue is caused by the connection to the SQL Server Reporting Services Report Server catalog database is timeout. Please refer to the following thread:
    http://social.technet.microsoft.com/Forums/en-US/db4ca6c2-5445-4ff9-9f63-e20f3859cc70/error-throwing-microsoftreportingservicesdiagnosticsutilitiesreportserverstorageexception-an?forum=sqlreportingservices
    If the problem is still existed, I would appreciate it if you could give us detailed error log, it will help us move more quickly toward a solution.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Error 1064 An exception occurred in the service when handling the control

    Hi all,
    I downloaded Oracle Business Intelligence 10.1.3.4.1 on windows XP successfully, once I try to start any service of Oracle BI [scheduler/server]. This error is shown *1064 An exception occurred in the service when handling the control request*.
    Could anyone help me out?
    Thanks in advance
    Maitha

    I checked the file
    [68008] Scheduler Error: [nQSError: 67042] The Scheduler Configuration is incorrect.
    [nQSError: 67004] Registry value for SchedulerScriptPath not set.
    How the issue can be resolved ?

  • Error Message: An Exception occured in the module:  ibstdc++.6dylib

    Hi,
    I am just trying to open a cracked VST effect plugin in Cubase, when I get this message:
    "An Exception occured in the module:libstdc++.6dylib". This effect plug-in is iLok protected, so you usually have to extent the expiry every 14 days with a ilok rester, which I tried but haven't been able to do yet. Now the cubase crashes every time I try to open this plug-in, popping up this error message. Can someone help me out?
    Thanks
    BTW; you can spare me with buying the product speech etc. I can't afford a $7000 plug-in bundle in this life time.

    Wrong place if you want someone to help you hack a 3rd-party thingy.

  • An unexpected exception occurred in the script.script section:run.caused by

    here I have created a script My Function and I wrote My Functions within a function InputData.
    I also created another script saidkamel it called a method IinputData in MyFonction script.
    here is the script code on the My Function script :
    import oracle.oats.scripting.modules.basic.api.*;
    import oracle.oats.scripting.modules.browser.api.*;
    import oracle.oats.scripting.modules.functionalTest.api.*;
    import oracle.oats.scripting.modules.utilities.api.*;
    import oracle.oats.scripting.modules.utilities.api.sql.*;
    import oracle.oats.scripting.modules.utilities.api.xml.*;
    import oracle.oats.scripting.modules.utilities.api.file.*;
    import oracle.oats.scripting.modules.webdom.api.*;
    public class script extends IteratingVUserScript {
         @ScriptService oracle.oats.scripting.modules.utilities.api.UtilitiesService utilities;
         @ScriptService oracle.oats.scripting.modules.browser.api.BrowserService browser;
         @ScriptService oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService ft;
         @ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
         public void initialize() throws Exception {
         * Add code to be executed each iteration for this virtual user.
         public void run() throws Exception {
         * @param vObjPath
         * @param vValue
         public boolean InputData(@Arg("vObjPath")
         String vObjPath, @Arg("vValue")
         String vValue) throws Exception {
              web.textBox(vObjPath).setText(vValue);
              return true;
         public void finish() throws Exception {
    code of Said Kamel script who uses the method InputData is:
    import oracle.oats.scripting.modules.basic.api.*;
    import oracle.oats.scripting.modules.browser.api.*;
    import oracle.oats.scripting.modules.functionalTest.api.*;
    import oracle.oats.scripting.modules.utilities.api.*;
    import oracle.oats.scripting.modules.utilities.api.sql.*;
    import oracle.oats.scripting.modules.utilities.api.xml.*;
    import oracle.oats.scripting.modules.utilities.api.file.*;
    import oracle.oats.scripting.modules.webdom.api.*;
    public class script extends IteratingVUserScript {
         @ScriptService oracle.oats.scripting.modules.utilities.api.UtilitiesService utilities;
         @ScriptService oracle.oats.scripting.modules.browser.api.BrowserService browser;
         @ScriptService oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService ft;
         @ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
         public void initialize() throws Exception {
              browser.launch();
         * Add code to be executed each iteration for this virtual user.
         public void run() throws Exception {
              getDatabank("Converted_CreateQuote_DF").getNextDatabankRecord();
              beginStep(" No Title", 0);
                   getScript("My Functions").callFunction("Default","Default","SystemComponents","InputData","/web:window[@index='0'or @title='Rentacar Connexion']/web:document[@name='Login' or index='0']/web:input_text[@name='login_user_id' or @index='0']",{{Db.Converted_CreateQuote_DF.login_user_id}}" );
                   web
                   .textBox(
                   "{{obj.OR.txtUserID}}")
                   .setText("{{Db.Converted_CreateQuote_DF.login_user_id}}");
              endStep();
         public void finish() throws Exception {
         here is the error message that appears:
    An unexpected exception Occurred In The script.script Section: run.caused by: NullPointerException Occurred
    look at the code if it is fair and more how to solve the problem of the error that gives me!
    thankssssssssssssssssss

    Hello Bala
    What is your Java version? JInitiator or Sun?
    When exactly does this error occur?
    What is your OATS version?
    Have you ran a Diagnose Tool (Help Menu in OpenScript)?
    Thx
    JB

  • An XSD Exception occurred. The kind 'Note' does not exist in the CMS. (FWM

    Hi,
    I am trying to get the Know Rights for a report object without any success. Everytime my code hits this method it throws an exception
    An XSD Exception occurred. The kind 'Note' does not exist in the CMS. (FWM 04030) (WBP 42029)
    I am stuck with this problem for past two days and am not able to figure out any solution
    Can anyone please help me in this issue?
    Public Function GetObjectRights(ByVal CUID As String) As RightInfo()
            Try
                Dim m_BiPlatform As BusinessObjects.DSWS.BIPlatform.BIPlatform
                Dim urls() As String = _Session.GetAssociatedServicesURL("BIPlatform")
                m_BiPlatform = BusinessObjects.DSWS.BIPlatform.BIPlatform.GetInstance(_Session, urls(0))
                Dim _RightInfo() As RightInfo = m_BiPlatform.GetKnownRights(CUID)
                Return _RightInfo
            Catch ex As DSWSException
            End Try
        End Function
    Thanks,

    Hmm... I can't think of anything else that could be causing the problem.
    I don't know of any way to exclude the 'note' right since GetKnownRights() returns all known rights (RightInfo) for the type of object passed into the method.
    A suggestion might be to try getting the knownRights using the BOE .NET SDK (not web services) to see if the same error occurs.  There is some simple sample code that you can use as a test in the [BOE .NET SDK developers guide|http://help.sap.com/businessobject/product_guides/boexir31/en/boesdk_net_dg_12_en.chm].
    If this fails as well, then I can only assume that there is some problem with your install of Enterprise as I have tried many ways to reproduce the error you are getting, but cannot.

  • System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.

    When I run my app on device and the internet is connected its ok, but if I use the emulator (althought the internet is connected):
    $exception{System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.  Check InnerException for exception details. ---> System.Net.WebException: The remote server returned
    an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
       at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.<EndGetResponse>b__d(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.<BeginOnUI>b__0(Object sendState)
       --- End of inner exception stack trace ---
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
       at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
       --- End of inner exception stack trace ---
       at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
       at System.Net.DownloadStringCompletedEventArgs.get_Result()
       at FitnessApp.BL.ServerConnection.wc_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)}
    System.Exception {System.Reflection.TargetInvocationException}
    this is the stack trace:
       at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
       at System.Net.DownloadStringCompletedEventArgs.get_Result()
       at FitnessApp.BL.ServerConnection.wc_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
    this is my code:
    void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
    try
    if (e.Error != null)
    string error = e.Error.Message;
    string functionCall = e.UserState.ToString();
    if (!string.IsNullOrEmpty(e.Result)) //this line throws an exception
    if (functionCall == "getProductCode")
    ProductsList productsList = JsonConvert.DeserializeObject<ProductsList>(e.Result);
    if (productsList.products != null)
    serverProducts = productsList.products.Select(p =>
    new BE.Product
    Product_code = p.PID,
    Product_name = p.Name
    }).ToList();
    else
    serverProducts.Clear();
    if (DataDownloadCompleted != null)
    if(functionCall =="getProductCode")
    DataDownloadCompleted(this, new BE.StringEventArgs("getProductCode"));
    catch (Exception)
    throw;
    public void searchProductCode(string productName)
    try
    if (DeviceNetworkInformation.IsNetworkAvailable && DeviceNetworkInformation.IsCellularDataEnabled)
    wc.DownloadStringAsync(new Uri(baseURI + "get_products_json.php?search=" + productName), "getProductCode");
    else
    throw new Exception(FitnessApp.Resources.AppResources.ErrorServerConnection);
    catch (Exception )
    throw ;
    Any solution?
    thank you..

    The server did not find the resource you asked for.
    You might want to make sure your emulator is connected to the internet and can go online.
    http://blogs.msdn.com/b/wsdevsol/archive/2013/10/01/why-can-t-the-windows-phone-emulator-go-online.aspx

Maybe you are looking for

  • Uninstall Chinese version

    I installed the Chinese version of Adobe (instead of requesting "Chinese support" as instructed).  I can't uninstall it because I can't read the Chinese text on the buttons. I also cannot install the English version.  Just need help with which button

  • Is it possible that rename table captured by streams

    is there any way that i can capture rename table??

  • Yet another  prob ... Non-stop spinning ball after pic selection.

    Chose my Docs page then a pic. Screen fixed. Couldn't use Force Quit. Finally found that by selecting Safari I got back the proper cursor and could use Force Quit but it didn't show the page I wished to quit. Finally relaunched Finder and found that

  • Audio channels uneven - tin sound - help

    I aplogize if this answer is out there but I can't find info as easily on this new format.  My audio from a shoot has one channel fine the other sound waves are not as rich or full.  I tried to bring the level up - it helps but not enough that it's s

  • WRT160Nv3 drops WiFi and Hardwired connections simultaneously

    I've been using the WRT160N for about 4-5 months now. I'm running the most up-to-date firmware available for the router. I haven't had any real issues with it's performance until recently. The router handles PPPoE and usually only has two computers c