erik l

erik l

  • NA
  • 4
  • 0

System.IO.FileLoadException

Feb 21 2006 11:23 PM

 Hello all!

i am receiving this nasty error that i can not shake.. I starting getting this error when starting working with the runtime code access security policy’s. Now i can not see and this is still not fixed.

Can someone please tell me the place to look to find the source of this error and how to go about fixing this. I have googled the hell out this error and nothing has come about...

any help at all is greatly appreciated!
Erik



Server Error in '/Yes' Application.

Could not load file or assembly 'Classy' 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 'Classy' 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 'Classy' could not be loaded.

Assembly manager loaded from:  E:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  e:\windows\microsoft.net\framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = A-70F371A855CA4\ASPNET
LOG: DisplayName = Classy
 (Partial)
LOG: Appbase = file:///e:/inetpub/wwwroot/Yes/
LOG: Initial PrivatePath = e:\inetpub\wwwroot\Yes\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: e:\inetpub\wwwroot\Yes\web.config
LOG: Using host configuration file: e:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from E:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///E:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/yes/35f48301/33fe9daa/Classy.DLL.
LOG: Attempting download of new URL file:///E:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/yes/35f48301/33fe9daa/Classy/Classy.DLL.
LOG: Attempting download of new URL file:///e:/inetpub/wwwroot/Yes/bin/Classy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

Stack Trace:

[FileLoadException: Could not load file or assembly 'Classy' or one of its dependencies. Access is denied.]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
   System.Reflection.Assembly.Load(String assemblyString) +25
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'Classy' or one of its dependencies. Access is denied.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3479081
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +267
   System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +36
   System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +429
   System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +73
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +580
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Answers (1)