Application domain unloads

  • Thread starter Thread starter Pelle
  • Start date Start date
P

Pelle

Hi

I get an System.AppDomainUnloadedException: Automation error
error when the webserver has been running for a while.

I'm running on windows 2000 Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573.

I've changed in machine config <processmodel>, it will not time out.


The page header <%@ Page Language="vb" validateRequest=false aspcompat=true AutoEventWireup="false" ...

On one server it occurs randomly, while on the other server it fails everytime after the first time.

Its accessing an vb 6 dll through interop using early binding.

here is a stack trace for one of them

[AppDomainUnloadedException: Automation error]
Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +895
IS4Wrapper.IS4Wrapper.GetUserName(String strUserGuid)
StepEditor.WebForm1.rptStep_ItemDataBound(Object sender, RepeaterItemEventArgs e)
System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +110
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +139
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +475
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +49
System.Web.UI.WebControls.Repeater.DataBind() +23
StepEditor.WebForm1.initPage()
StepEditor.WebForm1.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


What could be wrong?

regards Pelle
 
as your VB6 component run in STA mode ,
you must declare
<%@ page AspCompat = true %>
on head of your .aspx file;

or you can set "this.AspCompatMode = true" in page OnInit event handler

"Pelle" <[email protected]> ????
Hi

I get an System.AppDomainUnloadedException: Automation error
error when the webserver has been running for a while.

I'm running on windows 2000 Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version:1.1.4322.573.

I've changed in machine config <processmodel>, it will not time out.


The page header <%@ Page Language="vb" validateRequest=false aspcompat=true
AutoEventWireup="false" ...

On one server it occurs randomly, while on the other server it fails
everytime after the first time.

Its accessing an vb 6 dll through interop using early binding.

here is a stack trace for one of them

[AppDomainUnloadedException: Automation error]
Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type
objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack) +895
IS4Wrapper.IS4Wrapper.GetUserName(String strUserGuid)
StepEditor.WebForm1.rptStep_ItemDataBound(Object sender,
RepeaterItemEventArgs e)
System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs
e) +110
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex,
ListItemType itemType, Boolean dataBind, Object dataItem) +139
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean
useDataSource) +475
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +49
System.Web.UI.WebControls.Repeater.DataBind() +23
StepEditor.WebForm1.initPage()
StepEditor.WebForm1.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


What could be wrong?

regards Pelle
 
Hi
well its already there
<%@ Page Language="vb" validateRequest=false aspcompat=true
AutoEventWireup="false"
 
maybe you should check your vb6 component.
do the components work well in classic asp application?

Pelle said:
Hi
well its already there
<%@ Page Language="vb" validateRequest=false aspcompat=true
AutoEventWireup="false"



coollzh said:
as your VB6 component run in STA mode ,
you must declare
<%@ page AspCompat = true %>
on head of your .aspx file;

or you can set "this.AspCompatMode = true" in page OnInit event handler

"Pelle" <[email protected]> ????
Hi

I get an System.AppDomainUnloadedException: Automation error
error when the webserver has been running for a while.

I'm running on windows 2000 Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version:1.1.4322.573.

I've changed in machine config <processmodel>, it will not time out.


The page header <%@ Page Language="vb" validateRequest=false aspcompat=true
AutoEventWireup="false" ...

On one server it occurs randomly, while on the other server it fails
everytime after the first time.

Its accessing an vb 6 dll through interop using early binding.

here is a stack trace for one of them

[AppDomainUnloadedException: Automation error]
Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type
objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack) +895
IS4Wrapper.IS4Wrapper.GetUserName(String strUserGuid)
StepEditor.WebForm1.rptStep_ItemDataBound(Object sender,
RepeaterItemEventArgs e)
System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs
e) +110
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex,
ListItemType itemType, Boolean dataBind, Object dataItem) +139
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean
useDataSource) +475
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +49
System.Web.UI.WebControls.Repeater.DataBind() +23
StepEditor.WebForm1.initPage()
StepEditor.WebForm1.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


What could be wrong?

regards Pelle
 
Back
Top