COM connector fails under load

lee
Member Posts: 14
Good afternoon.
I'm having some problems with using the COM connector to connect my ASP.NET page to Axapta. It fails if I try to create too many records too quickly but is fine if I do it slowly.
AxaptaConn.TTSBegin()
Dim updateRec As AxaptaCOMConnector.IAxaptaRecord
updateRec = AxaptaConn.CreateRecord(TableName)
updateRec.ExecuteStmt(<MY SELECT QUERY HERE>)
If updateRec.Found Then
updateRec.field("Field1") = "ABC"
<etc>
End If
updateRec.DoUpdate()
AxaptaConn.TTSCommit()
It logs on OK and everything works fine, as long as I do not try to create
more than about one record per second. If however I start to send the records very quickly, I get an exception when the code reaches AxaptaConn.TTSBegin().
The exception is of type InteropServices.COMException. The message is "The remote procedure call failed. (Exception from HRESULT: 0x800706BE).
Additionally, when this occurs, I get an event in the Application log for
the OS of EventId 110.
The text is :
Axapta COM Connector Session 65535.
Exception 0xc0000005 occured in thread 0xcf8 handling session 65535.
Basically what I hoped someone could point out is
A) Does the COM connector have known limitations when it comes to handling this kind of high-load request (ie. rapidly creating many records).
or
Is there perhaps some obvious way in which I could re-configure my server / IIS / COM to accomodate this high load?
or
C) Is there some obvious problem with my code? Am I misusing TTSBegin()?
I have read that the COM connector will not cope with more than 250
simultaneous web connections. Is this possibly another kind of limitation of
the connector?
Thanks in advance for any ideas, I'm under high pressure to come up with
some kind of solution.
Lee.
I'm having some problems with using the COM connector to connect my ASP.NET page to Axapta. It fails if I try to create too many records too quickly but is fine if I do it slowly.
AxaptaConn.TTSBegin()
Dim updateRec As AxaptaCOMConnector.IAxaptaRecord
updateRec = AxaptaConn.CreateRecord(TableName)
updateRec.ExecuteStmt(<MY SELECT QUERY HERE>)
If updateRec.Found Then
updateRec.field("Field1") = "ABC"
<etc>
End If
updateRec.DoUpdate()
AxaptaConn.TTSCommit()
It logs on OK and everything works fine, as long as I do not try to create
more than about one record per second. If however I start to send the records very quickly, I get an exception when the code reaches AxaptaConn.TTSBegin().
The exception is of type InteropServices.COMException. The message is "The remote procedure call failed. (Exception from HRESULT: 0x800706BE).
Additionally, when this occurs, I get an event in the Application log for
the OS of EventId 110.
The text is :
Axapta COM Connector Session 65535.
Exception 0xc0000005 occured in thread 0xcf8 handling session 65535.
Basically what I hoped someone could point out is
A) Does the COM connector have known limitations when it comes to handling this kind of high-load request (ie. rapidly creating many records).
or

or
C) Is there some obvious problem with my code? Am I misusing TTSBegin()?
I have read that the COM connector will not cope with more than 250
simultaneous web connections. Is this possibly another kind of limitation of
the connector?
Thanks in advance for any ideas, I'm under high pressure to come up with
some kind of solution.
Lee.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions