Wednesday, July 9, 2008

Problem while loading the Assembly In web application

Yesterday I came across a below problem in my web application. After lots of search on google I couldn't figure out the reason .After some investigation I found that this problem appeared after machine poweroff because of power cut .

After reinstalling my .net framework version below problem get resolved .


Could not load file or assembly 'myinterface or one of its dependecies .The Parameter is incorrect (Exception From HRresult : 0x80070057(E_INVALIDARG))

Could not load file or assembly 'myinterface, Version=4.0.0.9185, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileLoadException: Could not load file or assembly 'myinterface, Version=4.0.0.9185, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Assembly Load Trace: The following information can be helpful to determine why the assembly 'myinterface, Version=4.0.0.9185, Culture=neutral, PublicKeyToken=null' could not be loaded.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].Stack Trace: [FileLoadException: Could not load file or assembly 'myinterface, Version=4.0.0.9185, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.] mYWebsite..LOGINPage_Load(Object sender, EventArgs e) +0 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061--------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 --------------------------------------------------

1 comment:

indiroma said...

Thanks for the sharing this website. it is very useful professional knowledge. Great idea you know about company background.
web application development