Hanging dotnet application

Hi all,
I am using ODP.NET for database connectivity with oracle and ODBC.NET for SQL server. webservice build in C#.NET hangs up if I leave my application Idle for 5 secs only or minimizes for a while. Prior to this I was using ODBC api for both dbs which also giving same result. Oracle.Access is looking slower than System.Data.ODBC for oracle. How can I increase performance using ODP.NET. IS there any way to do this or ODP.NET is slower than ODBC.NET. Please give me suggestions.
I am using base Interface to make connection and create command ----
IDbConnection conn = new OracleConnection(strConnectionString);
IDbCommand command = new OracleCommand(strQuery, conn);
Thanks
Dharmendra

> webservice build in C#.NET hangs up if I leave my application
Idle for 5 secs only or minimizes for a while
I once developed desktop VB.NET app using ODP.NET which hang if we left it idle, the source of problem is not in ODP.NET, but because of bad network connection between client and databse server, and bad application code. No offense, I am not judging that your code is bad.
you should get better performance when using ODP.NET. below is a test code,
static void Main(string[] args)
    PerfTest("System.Data.OracleClient");    // first try
    PerfTest("System.Data.OracleClient");    // second try
    PerfTest("System.Data.OracleClient");    // third try
    PerfTest("System.Data.Odbc");    // first try
    PerfTest("System.Data.Odbc");    // second try
    PerfTest("System.Data.Odbc");    // third try
    PerfTest("Oracle.DataAccess.Client");    // first try
    PerfTest("Oracle.DataAccess.Client");    // second try
    PerfTest("Oracle.DataAccess.Client");    // third try
private static void PerfTest(string provider)
    DateTime start, finish;
    DbProviderFactory factory = DbProviderFactories.GetFactory(provider);
    // get oracle start timestamp
    start = DateTime.Now;
    // run oracle command
    using (DbConnection cn = factory.CreateConnection())
        DbCommand cm;
        DbDataReader dr;
        string tempstr;
        if (provider == "System.Data.Odbc")
            cn.ConnectionString = "Dsn=XE;uid=hr;pwd=hr";
        else
            cn.ConnectionString = "Data Source=XE;user ID=hr;Password=hr";
        cn.Open();
        cm = cn.CreateCommand();
        cm.CommandText =
            "select a.employee_id, a.first_name, " +
            "       a.last_name, a.salary " +
            "from employees a, employees b";
        dr = cm.ExecuteReader();
        while (dr.Read())
            tempstr = dr.GetDecimal(0).ToString();
            tempstr = dr.GetString(1);
            tempstr = dr.GetString(2);
            tempstr = dr.GetDecimal(3).ToString();
        cn.Close();
    // get oracle end timestamp
    finish = DateTime.Now;
    // display oracle info
    Console.WriteLine("{0}: {1}", provider, finish - start);
}tested using VS2005, ODP.NET 10.2 and remote OracleXE database accessed using wireless LAN. Output should similar to this,
System.Data.OracleClient: 00:00:00.7343750
System.Data.OracleClient: 00:00:00.4531250
System.Data.OracleClient: 00:00:00.4531250
System.Data.Odbc: 00:00:00.4218750
System.Data.Odbc: 00:00:00.3906250
System.Data.Odbc: 00:00:00.3437500
Oracle.DataAccess.Client: 00:00:00.3437500
Oracle.DataAccess.Client: 00:00:00.1406250
Oracle.DataAccess.Client: 00:00:00.1406250NH

Similar Messages

  • Crystal report close button hangs the application

    Dear All,
    I am working on 2005 B PL 46. we have developed an application to open a particular crystal report when a button is pressed in AR Invoice form. this works fine and the data is loaded properly. The problem is, when I close this report, this hangs the entire application and I have to kill the exe from the task manager then only I can go back to SAP. (one of the oldest problem we encountered with crystal report-SDK). this does not happen always. it does close the report 5 times out of 10 without hanging the application.one more thing is, if I debug the application with pressing F11, it never hangs the application and woks fine.
    The report is getting loaded in the Crystalreport Viewer control dragged on a windows form. any one has any idea? I have tried this on 2007 B version PL 08 and the same problem persists with lesser frequency.
    Thanks,
    Binita

    Yes Vasu. and on form close event of that windows's form, I am writing :
    System.Windows.Forms.Application.ExitThread()
    any idea?
    thanks,
    Binita

  • Exception in ADEP Workbench 10.0 service not thrown to the dotnet application.

    Our dotnet application is consuming a service that workbench is exposing. The service creates a pdf and also issues a print command to the printer. Exceptions are handled as part of the workbench activity.
    However, the exceptions are not bubbled up to the dotnet layer. Oftentimes the print doesn't work, but the dotnet process continues as if everything went well.
    Is there a way for the exception to be thrown up to the dotnet layer?

    I am getting also that kind of exception when using the upgrade assistant to upgrade from 10.3.6 to 12.1.1.

  • Best issue : using SDO_GEOMETRY in dotnet application

    Hi,
    I would like to use oracle spatial in my application.
    I h'ven't any experience about using oracle spatial in dotnet application.
    What's the best way ?
    Using XMLcommand for making spatial request and deserialize result ?
    Making stored procedure returning primitive types (int, string, bool, ...)
    Another way ?
    regards,

    Hi,
    There is currently no support in ODP.NET for SDO_GEOMETRY. I've not had an official response from any Oracle staff, but I've asked a few Oracle trainers and presenters and they all said that they didn't know of any plans to add this.
    That said, you can call PL/SQL procs from .NET which you can use to manipulate/create geometries (as you suggested). What you can't do is read sdo_geometry data into a .NET datatype.
    If you really need to get geometry data into .NET, you could try selecting the various sdo_geometry fields as separate columns and try and select them into varrays etc. and from there into .NET types. I've not tried this myself, but it should be possible.
    e.g.
    select
    a.geom.gtype,
    a.geom.srid,
    a.geom.sdo_ordinates
    from
    some_table a;
    Note: You have to alias the table name like this in order to select separate sdo_geometry fields. No idea why.
    I've not tried using XML for this. I'd be interested to know if that works.
    Good luck,
    Jeremy

  • Can a dotnet application talk with unix os using Oracle SOA Suit?

    how can a dotnet application talk with unix operating system using Oracle SOA Suite? I have to automate a process on unix server like create user through dotnet application.. is it possible?
    My dotnet application is used for creating users, granting access on the servers. Some servers are 21C servers and some are legacy servers. In this dotnet application a user make certain request for the rights on those servers e.g. create user, give access rights, change password. This application is treated as user interface and maintaining tool of all this information and later on the basis of that request it generates the job-sheet. This job sheet is forwarded to responsible engineer who further provisions the request manually by going to that specific server in the request. So I want to automate this process that when user put any access or create user request then the moment he puts the request, that request should be provisioned without any human intervention i.e. automatically users must be created or password must be changed. I believe you will get an enough idea about my problem from all above information. So please help me.

    Post your query at "SOA Suite Discussion Forum"
    SOA Suite

  • LOV retrieval hang the application on assignment window

    When i try to choose an organization using the LOV on the assignment window it hangs the application and i am force to close the application. I have done a trace on the form executed the sql statement directly from sqlplus i get the same effect.
    select distinct o.name, o.organization_id from
    per_organization_units o where o.business_group_id =361 order by o;name;
    When i run the above statement sqlplus hangs
    but when i do
    select distinct o.name, o.organization_id from
    per_organization_units o where o.business_group_id =361 order by o;name,oragnization_id;
    The records are retrieved
    I wanna why does it hangs when i do a sort only by the name which is the default statement executed from the assignment window.
    Is it because of a corrupted data block
    Any help would be greatly appreciated

    I have done a trace on the form executed the sql statement directly from sqlplus i get the same effect.What does the tkprof of the trace file show?
    Is it because of a corrupted data blockAny ORA-XXXXX errors in the alert_<SID>.log file?

  • JDev 10.1.2 - JSF 1.1_02 - error hangs entire application

    Hi,
    I'm building my first JSF application and an issue has arisen during testing which has us all stumped! Whenever an error occurs for a particular user, the entire application then falls over and all other users then see (different) error messages too.
    Let me try to describe the scenario in detail.
    1. 10 users are using the main page of the application quite happily.
    2. Another user logs in and visits a different page in the same application. This page contains a bug.
    3. The application serves the error page to this user as an unhandled exception was thrown when processing the request.
    4. The other 10 users also get the error page even though they have not visited the buggy page! The application has fallen over and requires the container to be restarted.
    Steps 1-3 are obvious, but I don't understand step 4 - why should the application fail to continue serving bug-free pages to all other users? Is this the expected behaviour for JSF applications? (Other platforms I've used don't behave this way.)
    I can easily replicate this issue by introducing a typo to a component's EL binding. The initial error message is
    javax.servlet.jsp.JspException: Error getting property 'thisisatypo' from bean of type com.mypackage.MyBeanAll other users then see a secondary error message:
    java.lang.IndexOutOfBoundsExceptionOther applications on the app server are not affected.
    Is there a way to configure or recode the application to better handle exceptions so that the application itself doesn't hang and other users can continue to use it? Is it a threading issue? Or is this an issue with the application server, which requires reconfiguration to fix it?
    A thread on Sun's JSF forum mentions a similar issue, but no-one has answered it: http://forums.sun.com/thread.jspa?forumID=881&threadID=5049367
    My environment:
    JSF: v1.1_02 (Sun JSF RI)
    IDE: JDeveloper 10.1.2.3.0
    Java: 1.4.2_06
    App Server: Oracle App Server 10g (OC4J 9.0.4.0.0)
    (Upgrading to more recent versions of JSF or application server are not options at the moment - my organisation has already scheduled upgrades sometime within the next 12 months or so, but I cannot bring them forward!)

    Hi Frank, thanks for your reply.
    I did indeed manually configure JSF for JDev 10.1.2 & Oracle App Server 10g (OC4J 9.0.4), following the instructions provided by Oracle at [http://www.oracle.com/technology/products/jdev/howtos/10g/jsf_howto/jsf.html|http://www.oracle.com/technology/products/jdev/howtos/10g/jsf_howto/jsf.html]
    I have just spent some time porting my application to JDev 10.1.3 & OC4J 10.1.3, as you suggest, and I can confirm that the issue does not appear using this platform.
    However, my organisation does not have this version of Oracle App Server in production. As I indicated in my first post, an upgrade from 9.0.4 to a newer version (tbc) should occur sometime in the next 12 months, but we undertook this project on the basis that JSF would work on Oracle App Server 10g (OC4J 9.0.4), as per the "how to" above.
    If this is not the correct forum to pursue this issue, where, or with whom, should I?
    Many thanks,

  • CBS WebUI hangs at application preprocessing

    Hi,
    when I want to open the CBS WebUI (CE 7.11) the HTTP worker Thread hangs at
    "processing of sap.com/tc.CBS.WebUI/WebUI: application preprocessing"
    I have already restarted the server without success. When I want to open the CBS WebUI, the application hangs.
    Before this issue an import in a cms track has failed.
    Hoping anybody can help me with this issue,
    Thanks ahead
    Bernd

    Hi Bernd,
    Please check the Default Trace log flle and check the URL of the CBS.
    try to access with http://host:port/devinf with fully qualified name.
    Hope it helps
    Regards
    Arun

  • Mass storage removable devices hangs my application

    Hello everyone,
    starting from Windows 8.1 connecting a USB mass storage device that are read only but doesn't have read only flag set in the volume descriptor would cause the system to enumerate the volumes very slowly. This could be solved by turning the Search/Do not
    allow locations on removable drives to be added to libraries Group policy on.
    This however hangs Windows 10 at startup and if any application tries to access the volume it hangs too for several minutes. And the group policy settings doesn't seem to fix the problem anymore.
    Sure this is the device's problem but the driver should not block the system or any other application and if set so it should not attempt to write to the MSC device.
    Does anyone experience similar problems, is there some other switch that would help me?
    Regards
    Honza R.

    Quote from: frederick.dhont on Today at 02:43:46
    All drivers are already all up-to-date
    I also want to stress that USB mass storage devices are not detected in BIOS, NOR as bootable USB device. So I can't upgrade BIOS even if I wanted to.
    have you done >>Clear CMOS Guide<< with power cord removed?
    have you tested with mainboard out of PC case placed over wooden table?

  • Measurements slow or even hangs the application. Acrobat Pro X and Reader X

    Products: Acrobat Professional X and Acrobat Reader 10.1.7 (and 10.1.5).
    During measurements in files (3 Mb large for instance) the application hangs. Tried on both Windows XP and Windows 7 (32+64bits). Using other freeware it works fine for the same pdf-files.

    Hi Rave, thanks for your reply.
    How do I go about posting the crash dump here?
    And to answer your questions; I just installed Reader 11 and its working fine. As for Acrobat 11, I must've used a trial last year before we got CS6 because it is asking me to license it, so I cant test that unfortunately.

  • JSF error hangs entire application

    Hi,
    I'm building my first JSF application and an issue has arisen during testing which has us all stumped! Whenever an error occurs for a particular user, the entire application then falls over and all other users then see (different) error messages too.
    I can easily replicate this issue by introducing a typo to a component's EL binding. The initial error message is
    javax.servlet.jsp.JspException: Error getting property 'thisisatypo' from bean of type com.mypackage.MyBeanOther users then see a secondary error message: java.lang.IndexOutOfBoundsExceptionOther applications on the app server are not affected.
    Is there a way to configure the application to better handle exceptions so that the application itself doesn't hang and other users can continue to use it? Would using an error page resolve this? (I'm currently catching exceptions in try...catch blocks and displaying the error messages using the <h:messages> component.)
    Or is this an issue with the application server, which requires reconfiguration to fix it?
    A previous thread mentions a similar issue, bit no-one has answered it: [http://forums.sun.com/thread.jspa?forumID=881&threadID=5049367|http://forums.sun.com/thread.jspa?forumID=881&threadID=5049367]
    My environment:
    JSF: v1.1_02 (Sun JSF RI)
    IDE: JDeveloper 10.1.2.3.0
    Java: 1.4.2_06
    App Server: Oracle App Server 10g (OC4J 9.0.4.0.0)
    (Upgrading to more recent versions of JSF or application server are not options at the moment - my organisation has already scheduled upgrades sometime within the next 12 months or so, but I cannot bring them forward!)

    Hi BalusC, thanks for your response!
    I am using try...catch blocks around my business & database code and I am already using an errorpage. My question is not so much "how to make errors more user friendly" as "how do I prevent the application producing errors for all users when a single user encounters a bug?"
    I'm having difficulty in clearly explaining my issue, probably as I don't understand the JSF architecture sufficiently!
    Let try to describe the scenario.
    1. 10 users are using the main page of the application quite happily.
    2. Another user logs in and visits a different page in the same application. This page contains a bug.
    3. The application serves the error page to this user as an unhandled exception was thrown when processing the request.
    4. The other 10 users also get the error page even though they have not visited the buggy page! The application has fallen over and requires the container to be restarted.
    Steps 1-3 are obvious, but I don't understand step 4 - why should the application fail to continue serving bug-free pages to all other users? Is this the expected behaviour for JSF applications? (Other platforms I've used don't behave this way.)
    When this app goes to production there will be 800+ users. Although I hope to have eliminated most bugs by then, I don't want the entire user base blocked from the app when a single error occurs for a single user.
    If you know what I might have done wrong or what I'm missing, please let me know!
    Thanks.

  • VPN Hang My Application

    Dear Gurus,
    Hope all will be fine.
    I have one issue which is now at my nerves.
    I have windows 7 Professional at my laptop. and Cisco VPN client 5.0.
    When i connect my VPN my application get hanged. And when i disconnect my VPN (means when i return to my office LAN) my application works fine.
    Thanks
    Malik Adeel Imtiaz

    Dear Jouni,
    Hope you are fine.
    Currently we have performed following tests for NetSol VPN issue.
    Scenario 1:- 
    •1)      Connected laptop on internet through USB Stick (Internet enabled).
    •2)      Connect VPN Cisco Systems VPN Client Version 5.0.07.0290 through laptop.
    •3)      Telnet on Application server (EA Server) and Database server is open.
    •4)      Connect NetSol application exe (production exe) with Netsol database and it connect successfully.
    Scenario 2:- 
    •1)      Connected laptop on internet through USB Stick (Internet enabled).
    •2)      Connect VPN Cisco Any Connect Secure Mobility Client Version 3.1.01065 through laptop.
    •3)      Telnet on Application server (EA Server) and Database server is open.
    •4)      Connect NetSol application exe (production exe) with Netsol database and it worked successfully.
    Please see that we have tested the NetSol application EXE on both tunneling mode in VPN (Full and Split) and it is working fine with the Netsol Application.
    But issue is our valuable client are facing connection issue with our application exe they are using Full Tunnling VPN.
    Please suggest what should we do.
    Regards
    Malik Adeel Imtiaz

  • My Ipod (4th gen) is hanging and applications are crashing what to do??

    Hanging a lot and the applications are crashing and not able to play subway surfers because of hanging...

    See:
    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site if only one app.
    Restore from backup. See:
    iOS: How to back up              
    Restore to factory settings/new iPod

  • How to access a Progress DB in a DotNet application?

    Hi,
    I'm new to this kind of database access......
    I need to read records from a Progress database into my VB .Net application.
    The application itself uses database MS-SQL( It's a DotNetNuke - DNN portal).
    I can access the Progress db within an Excel worksheet by using the wizzard for connecting to other data sources, and I get the records, so there is communication with Progress.
    But when I try to connect from my VB.Net application I get an error.
    I have this code:
    =========================
    Dim MRPConnection
    As OleDb.OleDbConnection
    Dim MRPAdapter
    As OleDb.OleDbDataAdapter
    'Fetch Data from MRP
    MRPConnection = New OleDb.OleDbConnection("DRIVER={Progress OpenEdge 10.1B driver}; Provider=SQLOLEDB; Data Source=mkg;HOST=mkgsrv;PORT=6000;DB=mkg;UID=xxx;PWD=yyy;")
    MRPConnection.Open()
    MRPAdapter = New OleDb.OleDbDataAdapter("select * from MKG.PUB.mgub mgub_0", MRPConnection)
    dsMRPRecords = New DataSet
    gridMRPGrid.DataSource = dsMRPRecords
    gridMRPGrid.DataBind()
    MRPConnection.Close()
    MRPConnection.Dispose()
    ====================================
    And I get this error:
    [DBNETLIB][ConnectionOpen   (Connect()).]SQL Server does not exist or access denied.

    Hi,
    It seems like that this is not SCOM replated issue, and it seems like a scripting issue. If so, I would like to suggest you post in the VB .net developing forum for further assistance.
    If there is any misunderstanding, feel free to let me know.
    Regards,
    Yan Li
    Regards, Yan Li

  • My DotNet application does not work after installing Framework 4.0 on My client PC

    HI 
    I created application in Visual 2010 therefore I need framework 4.0 to work my application on client PC but it is still not working. 
    I have few forms in my application. 
    Form contact has controls Textbox, labels, button on it. (This form works fine absolutely ) 
    Form Invoice has DatagridView, textbox, label,button . (This form is NOT working at all, give me an error) 
    Any bright suggestion will help me to NOT install whole carp of visual studio 2010 on my client pc and also save Space. 
    Thank you in advance

    Hi,
    You don’t install VS2010 on the client PC, then where did the Form Invoice not work? When you run it from another version of VS? Or when you run the application with application.exe?
    Based on your description, one form works well, another form does not. I assume that two forms are in two different projects, then please check the .Net Framework used by the two projects. If they are different, you can use the
    one used by the Form contact for Form Invoice.
    Because this issue is a project issue, I recommend you to consult it on some application forum such as Windows Forms General forum for better support.
    VS General Question forum mainly discusses
    the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help
    System and Visual Studio Editor.
    Thanks,
    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

  • Getting the name of the executing method

    Hello, I'm looking for a way to get, in one method, an String with its name. For example, if the method's name is "testOne", I'm looking for getting a String with the name "testOne" in a sentence of the method. Is there any way? Thx

  • TAXINN/TAXINJ

    Hello What is the advantage of TAXINN over TAXINJ??? Why SAP has recommended to use TAXINN? Reagrds Ashish

  • Tcode VT02N -- ShipmentNo-- Output-- Screen, O/P Type Y141, Y011

    System has been upgraded from 4.7 to 6.0 It prints the lines in DE and NL but not in EN. After analyzing it was found that the FMs HAZMATEDI_READ_DG_DATA_ have been upgraded and it's behaving differently. There is an FM READText_ which reads the Text

  • Transferable

    I have an application that uses Drag and Drop between two JLists. I have created a transferable that allows me to drag an individual element and drop it into another list correctly, but I would like to be able to drag multiple selections. Is there an

  • Headphones & Batteries..?

    Having read this forum for a while now, (full of lots of info, most of it usefull I think) I have seen a lot of posts regarding the duration/ running time of the 5th generation iPod... Some are reporting that it takes a few charge cycles of the batte