473,785 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Application intrinsic object -

Hi,

we have a component developed with VB6 (compiled as a single threaded dll),
which we have used as Application level object for several years in classic
asp without problems. Yet now, when we are trying to use this same component
in Win2003 + IIS6 environment, we get following error:
-----------
Application object, ASP 0197 (0x80004005)
Cannot add object with apartment model behavior to the application intrinsic
object.
-----------

I emphasize that the component IS NOT apartment threaded, it's single
threaded!

I even tried to reprogram this component using dotnet C# (to make it
multithreaded), but unfortunately ended up getting this same error message
when trying to add the component in Application intrinsic object (classic
asp, not ASP.NET).

Any ideas? Why is this? What has changed since IIS4/IIS5?

The application that is using this component is quite a big one, several
hundreds of thousands of lines of VB+stored procs code and more than 1000
asp pages, and each page depending on this single threaded component. We
really need to find a more commercially viable solution than rewriting all
these asp-pages! Help!

/Pexi
Jun 7 '06 #1
3 5670

"Pexi" <heimonen@medit errumdotnospamd otcom> wrote in message
news:O7******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

we have a component developed with VB6 (compiled as a single threaded dll), which we have used as Application level object for several years in classic asp without problems. Yet now, when we are trying to use this same component in Win2003 + IIS6 environment, we get following error:
-----------
Application object, ASP 0197 (0x80004005)
Cannot add object with apartment model behavior to the application intrinsic object.
-----------

I emphasize that the component IS NOT apartment threaded, it's single
threaded!
It's still an apartment model it's just that all objects will be created in
a single apartment which has one thread.

A phrase containing the words Creek and Paddle comes to mind I'm afraid.

You could set IIS to use 5.0 isolation mode perhaps it will put the
application object to a compatible state with your code. However you loose
many of the IIS 6 benefits.

I even tried to reprogram this component using dotnet C# (to make it
multithreaded), but unfortunately ended up getting this same error message
when trying to add the component in Application intrinsic object (classic
asp, not ASP.NET).

Any ideas? Why is this? What has changed since IIS4/IIS5?

The application that is using this component is quite a big one, several
hundreds of thousands of lines of VB+stored procs code and more than 1000
asp pages, and each page depending on this single threaded component. We
really need to find a more commercially viable solution than rewriting all
these asp-pages! Help!

/Pexi

Jun 7 '06 #2
OK, thanks Anthony,

does this also mean that there is no way for me to rewrite the component
with dotnet - are dotnet COM interop components unusable with classic asp
(when used in Application object scope)?

I'm also curious to know what has changed since IIS4/5? I mean, is this IIS6
incompatibility with previous versions "by design"?

Thanks again,
Pexi

"Anthony Jones" <An*@yadayadaya da.com> wrote in message
news:uB******** ******@TK2MSFTN GP03.phx.gbl...

"Pexi" <heimonen@medit errumdotnospamd otcom> wrote in message
news:O7******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

we have a component developed with VB6 (compiled as a single threaded dll),
which we have used as Application level object for several years in

classic
asp without problems. Yet now, when we are trying to use this same

component
in Win2003 + IIS6 environment, we get following error:
-----------
Application object, ASP 0197 (0x80004005)
Cannot add object with apartment model behavior to the application

intrinsic
object.
-----------

I emphasize that the component IS NOT apartment threaded, it's single
threaded!


It's still an apartment model it's just that all objects will be created

in a single apartment which has one thread.

A phrase containing the words Creek and Paddle comes to mind I'm afraid.

You could set IIS to use 5.0 isolation mode perhaps it will put the
application object to a compatible state with your code. However you loose many of the IIS 6 benefits.

I even tried to reprogram this component using dotnet C# (to make it
multithreaded), but unfortunately ended up getting this same error message when trying to add the component in Application intrinsic object (classic asp, not ASP.NET).

Any ideas? Why is this? What has changed since IIS4/IIS5?

The application that is using this component is quite a big one, several
hundreds of thousands of lines of VB+stored procs code and more than 1000 asp pages, and each page depending on this single threaded component. We
really need to find a more commercially viable solution than rewriting all these asp-pages! Help!

/Pexi


Jun 7 '06 #3
Pexi wrote:
I'm also curious to know what has changed since IIS4/5? I mean, is
this IIS6 incompatibility with previous versions "by design"?

http://technet2.microsoft.com/Window...06bf51033.mspx
http://www.microsoft.com/windowsserv...ogies/iis.mspx
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 7 '06 #4

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

Similar topics

5
3924
by: Jeremy Cowles | last post by:
I have been reading a book that focuses on understanding the intrinsic types of C++ in depth. The author's mentality is this: "Understand the intrinsic types, then learn the std types as needed later", but I have been reading the stroustrup (spelling?) book and he says that it is much better to learn the standard library first as a beginner, and then worry about the intrinsic types afterwards. So there is no doubt that you need to have a...
11
1926
by: milkyway | last post by:
Hello, I have an HTML page that I am trying to import 2 .js file (I created) into. These files are: row_functions.js and data_check_functions.js. Whenever I bring the contents of the files into this HTML file, all is OK but whenever the functions are separated (as it is now), when I run the page, I get the following error: Line 73, object expected.
33
2869
by: abs | last post by:
Hi all. My list: <ul> <li id="a" onclick="show(this)">Aaaaaaaa</li> <li id="b" onclick="show(this)">Bbbbbbbb</li> <li id="c" onclick="show(this)">Cccccccc <ul> <li id="d" onclick="show(this)">111111</li>
2
2013
by: Mel | last post by:
This may be a stupid question, but here goes... I have created a NameValueCollection in my website's application state. If, during a page request, I add a string key and string value to the collection, how are they stored? Strings are objects so I'm really only passing references, right? Now I assume that request handlers run in different threads with their own memory spaces, and when the request ends, the memory space is unaloted,...
7
2919
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the database into classes, which are used throughout the application. I have made class collections which, upon reading from the DB, create an instance of the class and store the DB values in there temporarily. My problem is that if user1 looks at...
7
1644
by: A Traveler | last post by:
Hello all, i was just curious if anyone whos been playing with VS2005 could tell me... In javascript (and java??) you can alter the prototypes for an object in your project. I dont remember the syntax exactly, but basically you do something like: function String.prototype.mySplit(myArgs){...do something...}
0
1100
by: albean | last post by:
I I have a number of VB COM components used in ASP pages that access some intrinsic ASP objects. Basically we would get the context from COMSVCSLib and from there get the ASP Request and Response objects. With the Request object we would extract Form variables, do some processing, create an XML file and then write an XML file to the Response object. Something like: ------------------------------ Private Sub _Activate()
8
1701
by: Matthew Wells | last post by:
Hello, How do I tell if a variable dim'd as an Access.Application has something in it. dim mApp as Access.Application set mApp = new Access.Application mApp.OpenCurrentDatabase mydb.mdb
0
1704
by: =?Utf-8?B?RmFicml6aW8gQ2lwcmlhbmk=?= | last post by:
I need to access classic ASP intrinsic objects and their properties from a ..net assembly wrapped to COM. The COM .net assembly is then instanciated from a classic ASP page with Server.CreateObject(). I'm trying to use the Microsoft Transaction Server this way: Type typeMtx = Type.GetTypeFromProgID("MTxAS.AppServer.1"); object mtxobject = Activator.CreateInstance(typeMtx); // Getting classic ASP object context
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10151
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.