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

825
1
03-11-2011 02:07 AM
FaiyazAhmad
New Contributor
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]
0 Kudos
1 Reply
RichardWatson
Frequent Contributor
You have a permission problem.  Remember that ASP.NET is not running using your account.
0 Kudos