473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Intriguing MTA v STA bug

Excerpt as follows:

We have developed a .Net application that makes use of WebServices to access
a PeopleSoft (Oracle) database using the PeopleSoft 8.4 COM API. When the
application is tested by a single user, everything works fine and no errors
are generated. When multiple users test the system a number of different
and seemingly random errors begin to occur. We created an ASP based version
of the application that still calls the PeopleSoft COM API and it does not
generate any errors with one or many users testing it. The PeopleSoft COM
API is built as a TLB file named "PeopleSoft_PeopleSoft.tlb" from the
PeopleSoft Application Designer. A registry file is also generated and has
to be run to update the system registry before the COM API can be
referenced. Within the registry file there is an entry for another DLL call
"psapiadapter.dll" which has a parameter "Threadmodeling" that is set to
"Apartment". This means that the PeopleSoft COM API is set to run in an STA
(single threaded apartment) model. The default thread model for a .NET
application is MTA (Multiple Thread Apartment). Is it possible that our
errors are being caused by the fact that .NET is MTA and the PeopleSoft API
is STA? We tried setting the "Threadmodeling" registry parameter for the
PeopleSoft API to "Both" and found that all of the previous errors
disappeared, but a new error surfaced. The new error occurs intermittently
with multiply users testing the system. The error is a deadlock and
automatically causes the Web Server to reset. Our thought is that the
original errors have to do with the STA vs MTA situation and that when .NET
thought that it could run the PeopleSoft API in the MTA model those errors
went away, but the API was meant to be STA and so the thread deadlock
situations started to happen. We know that an ASPX page can be run in .NET
using the STA model by using aspcompat=true attribute in the <% Page ...%>
directive but we do not know how to make this adjustment for our application
that uses WebServices. The Webservices do not have page directives. We
think that a logical step would be to set the whole .NET architecture on our
server to run in some kind of STA model if that is even possible. Do you
have any ideas?
Nov 15 '05 #1
0 2022

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ghazan Haider | last post by:
I am posting this for the lack of a better newsgroup, and for the knowledge of people here, and because its only partially OT. We have a bunch of users with their computers at work. There are...
40
by: Xah Lee | last post by:
is it possible in Python to create a function that maintains a variable value? something like this: globe=0; def myFun(): globe=globe+1 return globe
10
by: Arno R | last post by:
Hi all, Is it possible to execute a command like 'CompileAndSaveAll' at runtime? In a new app I use a codelibrary. (The app is still changing, codelib also) I add this lib to the references at...
14
by: jojoba | last post by:
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I...
0
by: Diffident | last post by:
Hello All, I have coded a .NET method which encapsulates a oracle transaction operation. My transaction consists of series of operations and only if all the operations succeed I commit the...
10
by: ShaneO | last post by:
Aaron, One of my sons is completing his final year in Clinical Psychology and I thought you'd be pleased to know your on-going contributions to this NG have now become an important part of their...
28
by: Tony Johansson | last post by:
Hello! I can't figure out what point it is to use GetHashCode. I know that this GetHashCode is used for obtaining a unique integer value. Can somebody give me an example that prove the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.