Hi there,
Could someone help me with, this error:
I am trying to deploy some applications to a web server with II 6.0,
which contains a SharePoint Portal and a ASP .NET application. So far
so good, my problems start when i have to migrate an old application in
ASP with COM objects in VB 6.0.
This old web application has worked fine in IIS 5.0 with Isolation
Mode, but when I put it in IIS 6.0 i'm getting this error:
"Application object error 'ASP 0197 : 80004005'
Disallowed object use.
...../Root/FSE/global.asa, line 55
Cannot add object with apartment model behavior to the application
intrinsic object"
This is te code of my global.asa
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
'You can add special event handlers in this file that will get run
automatically when
'special Active Server Pages events occur. To create these handlers,
just create a
'subroutine with a name from the list below that corresponds to the
event you want to
'use. For example, to create an event handler for Session_OnStart, you
would put the
'following code into this file (without the comments):
'Sub Session_OnStart
'**Put your code here **
'End Sub
'EventName Description
' Runs the first time a user runs any page in your application
Sub Session_OnStart
set Session("objUserInfo") = CreateObject("DRFPUser.CUserInfo")
endSessionPage = Application("strWebSiteRoot") & "fimsessao.asp"
startPage = Application("strWebSiteRoot") & "sslredir.asp"
currentPage = Request.ServerVariables("SCRIPT_NAME")
Session("numRegsList")
' Do a case-insensitive compare, and if they
' don't match, send the user to the start page.
if strcomp(currentPage,startPage,1) then
if strcomp(currentPage,endSessionPage,1) then
Response.Redirect(endSessionPage)
end if
end if
End Sub
' Runs when a user's session times out or quits your application
Sub Session_OnEnd
' Liberta objecto com Info sobre o Utilizador Local
set Session("objUserInfo") = Nothing
End Sub
sub Application_OnStart 'Runs once when the first page of your
application is run for the first time by any user
Application.Lock()
' Guarda a root do WebSite
Application("strWebSiteRoot") = "/DRFPNet/"
' Guarda o DSN para a Base de Dados
Application("strBDLigacao") = "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID=nb;Password=.;Initial Catalog=.;Data Source=Ra"
' Inicializa objecto Role Manager
set Application("objRoleManager") =
CreateObject("NBCOMUR.CURoleManager") ' THIS IS LINE 55
' Efectua o Load de todos os Roles
call
Application("objRoleManager").LoadAllURoles(Applic ation("strBDLigacao"))
' Guarda o Mail do Gestor
Application("strMailRecipient") = ""
' Guarda o Profile do Exchange
Application("strMailProfile") = ""
' Guarda o nº máximo de tentativas de login
Application("strNumMaxLogin") = 3
'--Variaveis de Dimensionamento das Paginas (Tabs) -----------
' Altura de cada Pagina
Application("intPaginaAltura") = 285
' Margem de Topo de cada Pagina
Application("intPaginaMargemTopo") = 10
' Margem Esquerda de cada Pagina
Application("intPaginaMargemEsquerda") = 20
' Altura do Rodape de cada Pagina
Application("intPaginaAlturaRodape") = 30
' Altura da Separacao entre elementos das Paginas
Application("intPaginaAlturaSeparador") = 5
' Largura cada pagina
Application("intPaginaLargura") = "100%"
'--Variaveis de Dimensionamento das Paginas (Tabs) -----------
'--Altura Ocupada por um Report
Application("intReportAltura") = Application("intPaginaAltura") +
67
'--Altura Ocupada por uma QList
Application("intPaginaQListAltura") = 250
'--Ano inicial
Application("intAnoInicial") = 1994
'--Ano final
Application("intAnoFinal") = 2006
Application.UnLock()
end sub
'Application_OnEnd Runs once when the web server shuts down
</SCRIPT>
Thanks in advance,
João Fialho 1 2105
IIS problems can be posted here...
microsoft.public.inetserver.iis
<jf******@gmail.comwrote in message news:11*********************@m73g2000cwd.googlegro ups.com...
Hi there,
Could someone help me with, this error:
I am trying to deploy some applications to a web server with II 6.0,
which contains a SharePoint Portal and a ASP .NET application. So far
so good, my problems start when i have to migrate an old application in
ASP with COM objects in VB 6.0.
This old web application has worked fine in IIS 5.0 with Isolation
Mode, but when I put it in IIS 6.0 i'm getting this error:
"Application object error 'ASP 0197 : 80004005'
Disallowed object use.
...../Root/FSE/global.asa, line 55
Cannot add object with apartment model behavior to the application
intrinsic object"
This is te code of my global.asa
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
'You can add special event handlers in this file that will get run
automatically when
'special Active Server Pages events occur. To create these handlers,
just create a
'subroutine with a name from the list below that corresponds to the
event you want to
'use. For example, to create an event handler for Session_OnStart, you
would put the
'following code into this file (without the comments):
'Sub Session_OnStart
'**Put your code here **
'End Sub
'EventName Description
' Runs the first time a user runs any page in your application
Sub Session_OnStart
set Session("objUserInfo") = CreateObject("DRFPUser.CUserInfo")
endSessionPage = Application("strWebSiteRoot") & "fimsessao.asp"
startPage = Application("strWebSiteRoot") & "sslredir.asp"
currentPage = Request.ServerVariables("SCRIPT_NAME")
Session("numRegsList")
' Do a case-insensitive compare, and if they
' don't match, send the user to the start page.
if strcomp(currentPage,startPage,1) then
if strcomp(currentPage,endSessionPage,1) then
Response.Redirect(endSessionPage)
end if
end if
End Sub
' Runs when a user's session times out or quits your application
Sub Session_OnEnd
' Liberta objecto com Info sobre o Utilizador Local
set Session("objUserInfo") = Nothing
End Sub
sub Application_OnStart 'Runs once when the first page of your
application is run for the first time by any user
Application.Lock()
' Guarda a root do WebSite
Application("strWebSiteRoot") = "/DRFPNet/"
' Guarda o DSN para a Base de Dados
Application("strBDLigacao") = "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID=nb;Password=.;Initial Catalog=.;Data Source=Ra"
' Inicializa objecto Role Manager
set Application("objRoleManager") =
CreateObject("NBCOMUR.CURoleManager") ' THIS IS LINE 55
' Efectua o Load de todos os Roles
call
Application("objRoleManager").LoadAllURoles(Applic ation("strBDLigacao"))
' Guarda o Mail do Gestor
Application("strMailRecipient") = ""
' Guarda o Profile do Exchange
Application("strMailProfile") = ""
' Guarda o nº máximo de tentativas de login
Application("strNumMaxLogin") = 3
'--Variaveis de Dimensionamento das Paginas (Tabs) -----------
' Altura de cada Pagina
Application("intPaginaAltura") = 285
' Margem de Topo de cada Pagina
Application("intPaginaMargemTopo") = 10
' Margem Esquerda de cada Pagina
Application("intPaginaMargemEsquerda") = 20
' Altura do Rodape de cada Pagina
Application("intPaginaAlturaRodape") = 30
' Altura da Separacao entre elementos das Paginas
Application("intPaginaAlturaSeparador") = 5
' Largura cada pagina
Application("intPaginaLargura") = "100%"
'--Variaveis de Dimensionamento das Paginas (Tabs) -----------
'--Altura Ocupada por um Report
Application("intReportAltura") = Application("intPaginaAltura") +
67
'--Altura Ocupada por uma QList
Application("intPaginaQListAltura") = 250
'--Ano inicial
Application("intAnoInicial") = 1994
'--Ano final
Application("intAnoFinal") = 2006
Application.UnLock()
end sub
'Application_OnEnd Runs once when the web server shuts down
</SCRIPT>
Thanks in advance,
João Fialho This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jerome Lefebvre |
last post by:
Hello,
Hope this will interest a few. I been working with a friend on the
problems given out during the "International Collegiate Programming Contest"
(ICPC) http://icpc.baylor.edu/icpc/ ....
|
by: Jim Hubbard |
last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework?
Not if you are unaware of the 1,596 issues listed at KBAlertz
(http://www.kbalertz.com/technology_3.aspx).
If you are...
|
by: 3f |
last post by:
Hello;
We have made a web application that people can download from our web site
and installed on:
Windows XP
Windows 2000 Professional
Windows 2003 Server
Windows 2000 Server
|
by: Corky |
last post by:
This works:
db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS
INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID =
PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
|
by: Ellen Graves |
last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1.
Installing and running stored procedures is problematic. Stored
procedures I have used for years on V7 on WinNT are now failing...
| |
by: Jim |
last post by:
I have spent the past few weeks designing a database for my company.
The problem is I have started running into what I believe are stack
overflow problems. There are two tab controls on the form...
|
by: BBFrost |
last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net
2003. At first things were looking ok, now problems are starting to
appear.
So far ...
(1) ...
|
by: Dales |
last post by:
I have a custom control that builds what we refer to as "Formlets"
around some content in a page. These are basically content "wrapper"
sections that are tables that have a colored header and...
|
by: Brian |
last post by:
NOTE ALSO POSTED IN
microsoft.public.dotnet.framework.aspnet.buildingcontrols
I have solved most of my Server Control Collection property issues.
I wrote an HTML page that describes all of the...
|
by: Sergistm |
last post by:
Hello World, :D
I have a problem that it is making me crazy, I hope you can help me.
I'm trying to execute a .exe file with the Procces.Start, and there
is no problem when the file is on my...
|
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...
| |
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: 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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |