Select to view content in your preferred language

Could not load assembly ESRI.ArcGIS.ADF.Connection.Local

6409
12
Jump to solution
11-28-2012 07:07 AM
LAFOSSE_CATELAnnick
Occasional Contributor
Hi,


I have Console Application that I need to migrate from 9.3 to 10.1.
I have done :
- Changed framework 2.0 to 3.5
- Put the new reference of ArcGis in 10.1
- Compile with platform target "Any CPU"

The problem is when i execute my console application on windows server 2008
I have this error : "Could not load ESRI.ArcGIS.ADF.Connection.Local".

On my server ArcGIser 10.1 and ArcSDE 10.1 are installed.

Thanks for your help.
Tags (2)
0 Kudos
12 Replies
LAFOSSE_CATELAnnick
Occasional Contributor
I was afraid of that.
Thanks for your explanation.

In version 9.3, our console application works on server and desktop.

I can't use the method "ComReleaser.ReleaseCOMObject(parameterObjects)" from "ESRI.ArcGis.ADF.Connection.Local on my server.

Do you think that it is enough if i release my cursor with the .NET method ?
System.Runtime.InteropServices.Marshal.ReleaseComObject(parameterObjects);

Thank you for your help
0 Kudos
RichardWatson
Deactivated User
This is what the ESRI code is doing:

public static void ReleaseCOMObject(object o)
{
    if ((o != null) && Marshal.IsComObject(o))
    {
        while (Marshal.ReleaseComObject(o) > 0)
        {
        }
    }
}
0 Kudos
AndrewLitchfield
New Contributor
We had this problem and it turned out to be that 32-bit applications were not enabled on the IIS application pool.
0 Kudos