faiz.faiyaz

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly

Discussion created by faiz.faiyaz on Mar 11, 2011
Latest reply on Mar 13, 2011 by rlwatson
Hi,

I have created an C# Exe (Console application) to change MXD Layer color. When i call this exe click button event of Asp.net control in IIS. it give the following error.

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'ESRI.ArcGIS.System, Version=9.3.0.1770, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. Access is denied.
File name: 'ESRI.ArcGIS.System, Version=9.3.0.1770, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'
at ChangeMXDLayerColor.ChangeLayerColor.ChangeColor(String strLayercolor, String strMxdPath, String strLayerName, String strLayerID, String strMxdType, String strLyrTransp)
at ChangeMXDLayerColor.ChangeLayerColor.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]

Outcomes